Packagecom.ericfeminella.ui
Interfacepublic interface IConfigurableContextMenu extends IDynamicContextMenu, ICloneableContextMenu
ImplementorsConfigurableContextMenu

Defines the contract for classes which must provide an API which allows users to configure a custom ContextMenu

See also

IDynamicContextMenu
ICloneableContextMenu


Public Methods
 MethodDefined by
  
addContextMenuItem(contextMenuItem:ContextMenuItem, listener:Function = null):Boolean
Adds a new ContextMenuItem to the ConfigurableContextMenu which contains an associated listener that handles the item when selected
IConfigurableContextMenu
 Inherited
cloneContextMenu():ContextMenu
Clones the ContextMenu of an ConfigurableContextMenu instance
ICloneableContextMenu
 Inherited
disableContextMenuItem(caption:String):void
Disables a ContextMenuItem in a ConfigurableContextMenu
IDynamicContextMenu
 Inherited
enableContextMenuItem(caption:String):void
Enables a ContextMenuItem in a ConfigurableContextMenu
IDynamicContextMenu
 Inherited
getContextMenuItem(caption:String):ContextMenuItem
Retrieves a ContextMenuItem from a ConfigurableContextMenu
ICloneableContextMenu
 Inherited
Retrieves all ContextMenuItems for a ConfigurableContextMenu
ICloneableContextMenu
 Inherited
hasContextMenuItem(caption:String):Boolean
Determines if the current ConfigurableContectMenu instance has the specified ContextMenuItem
IDynamicContextMenu
 Inherited
hideContextMenuItem(caption:String):void
Hides a specific ContextMenuItem in the view
IDynamicContextMenu
  
removeContextMenuItem(caption:String):void
Removes a specific ContextMenuItem which has been added to a ConfigurableContextMenu
IConfigurableContextMenu
  
Removes all valid built-in default ContextMenuItems which are allowed to be removed from a ContextMenuItem as well as each additional ContextMenuItem which has been added
IConfigurableContextMenu
  
Removes all valid built-in default ContextMenuItems which are allowed to be removed from a ContextMenuItem
IConfigurableContextMenu
 Inherited
showContextMenuItem(caption:String):void
Shows a specific ContextMenuItem in the view
IDynamicContextMenu
Method detail
addContextMenuItem()method
public function addContextMenuItem(contextMenuItem:ContextMenuItem, listener:Function = null):Boolean

Adds a new ContextMenuItem to the ConfigurableContextMenu which contains an associated listener that handles the item when selected

Parameters
contextMenuItem:ContextMenuItem — specifies if an item seperator is to be added, default is false
 
listener:Function (default = null) — specifies if item is enabled or disabled, default is enabled

Returns
Boolean — true if the ContextMenuItem has successfully been added

Throws
removeContextMenuItem()method 
public function removeContextMenuItem(caption:String):void

Removes a specific ContextMenuItem which has been added to a ConfigurableContextMenu

Parameters
caption:String — identifier for the item which is to be removed
removeContextMenuItems()method 
public function removeContextMenuItems():void

Removes all valid built-in default ContextMenuItems which are allowed to be removed from a ContextMenuItem as well as each additional ContextMenuItem which has been added

See also

flash.ui.ContextMenu
removeDefaultItems()method 
public function removeDefaultItems():void

Removes all valid built-in default ContextMenuItems which are allowed to be removed from a ContextMenuItem

See also

flash.ui.ContextMenu