API DocumentationAll Packages | All Classes | Index | Frames
Interface IDynamicContextMenu
 
Packagecom.ericfeminella.ui
Interfacepublic interface IDynamicContextMenu
SubinterfacesIConfigurableContextMenu

Defines the contract for an IConfigurableContextMenu implementation which requires the flexability to dynamically control ContextMenuItems

See also

IConfigurableContextMenu


Public Methods
 MethodDefined by
  
disableContextMenuItem(caption:String):void
Disables a ContextMenuItem in a ConfigurableContextMenu
IDynamicContextMenu
  
enableContextMenuItem(caption:String):void
Enables a ContextMenuItem in a ConfigurableContextMenu
IDynamicContextMenu
  
hasContextMenuItem(caption:String):Boolean
Determines if the current ConfigurableContectMenu instance has the specified ContextMenuItem
IDynamicContextMenu
  
hideContextMenuItem(caption:String):void
Hides a specific ContextMenuItem in the view
IDynamicContextMenu
  
showContextMenuItem(caption:String):void
Shows a specific ContextMenuItem in the view
IDynamicContextMenu
Method detail
disableContextMenuItem()method
public function disableContextMenuItem(caption:String):void

Disables a ContextMenuItem in a ConfigurableContextMenu

Parameters
caption:String — caption of the ContextMenuItem to disable
enableContextMenuItem()method 
public function enableContextMenuItem(caption:String):void

Enables a ContextMenuItem in a ConfigurableContextMenu

Parameters
caption:String — caption of the ContextMenuItem to enable
hasContextMenuItem()method 
public function hasContextMenuItem(caption:String):Boolean

Determines if the current ConfigurableContectMenu instance has the specified ContextMenuItem

Parameters
caption:String — caption to use as an identifier for the item

Returns
Boolean — true if the item exists, otherwise false
hideContextMenuItem()method 
public function hideContextMenuItem(caption:String):void

Hides a specific ContextMenuItem in the view

Parameters
caption:String — in the ContextMenuItem to hide
showContextMenuItem()method 
public function showContextMenuItem(caption:String):void

Shows a specific ContextMenuItem in the view

Parameters
caption:String — in the ContextMenuItem to show