org.jdesktop.wonderland.client.contextmenu
Class ContextMenuInvocationSettings

java.lang.Object
  extended by org.jdesktop.wonderland.client.contextmenu.ContextMenuInvocationSettings

public class ContextMenuInvocationSettings
extends java.lang.Object

Wrapped by a ContextMenuEvents, stores the temporary settings of the context menu. Context menu listeners can adjust whether standard menu items (from the ContextMenuManager) and cell-standard menu items (from the cell's ContextMenuComponent) are displayed using booleans, and add new menu items. None of the changes made will carry over to the next display of the context menu. To make a persistent change, operate on the ContextMenuManager or ContextMenuComponent.

Author:
mabonner

Constructor Summary
ContextMenuInvocationSettings(Cell cell)
           
 
Method Summary
 void addTempFactory(ContextMenuFactorySPI factory)
          Add a new menu item to be displayed for this context menu opening only
 java.util.List<ContextMenuFactorySPI> getFactoryList()
           
 java.lang.String getMenuName()
           
 boolean isDisplayCellStandard()
           
 boolean isDisplayStandard()
           
 boolean isDisplayTemporaryFactories()
           
 void setDisplayCellStandard(boolean displayCellStandard)
           
 void setDisplayStandard(boolean displayStandard)
           
 void setFactoryList(java.util.List<ContextMenuFactorySPI> factoryList)
           
 void setMenuName(java.lang.String menuName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextMenuInvocationSettings

public ContextMenuInvocationSettings(Cell cell)
Method Detail

addTempFactory

public void addTempFactory(ContextMenuFactorySPI factory)
Add a new menu item to be displayed for this context menu opening only

Parameters:
factory - the factory to add the temporary item

isDisplayCellStandard

public boolean isDisplayCellStandard()

isDisplayStandard

public boolean isDisplayStandard()

getFactoryList

public java.util.List<ContextMenuFactorySPI> getFactoryList()

getMenuName

public java.lang.String getMenuName()

setDisplayCellStandard

public void setDisplayCellStandard(boolean displayCellStandard)

setDisplayStandard

public void setDisplayStandard(boolean displayStandard)

setFactoryList

public void setFactoryList(java.util.List<ContextMenuFactorySPI> factoryList)

setMenuName

public void setMenuName(java.lang.String menuName)

isDisplayTemporaryFactories

public boolean isDisplayTemporaryFactories()


Open Wonderland - http://openwonderland.org