OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.amp.util

class MenuItem

Object
->jsx3.lang.Object
  ->jsx3.amp.util.MenuItem

Direct Known Subclasses:

jsx3.amp.util.Menu

class MenuItem
extends jsx3.lang.Object
A managed menu item. Provided by the jsx3.amp.util.menumgr plug-in.

See Also:

jsx3.amp.util.MenuManager

Constructor Summary
void
init(objExt : jsx3.amp.Ext, objData : jsx3.amp.XML)
The instance initializer.
Method Summary
String
attr(strKey : String)
Returns an attribute of the XML declaration of this menu item.
void
Executes this menu item.
jsx3.amp.Ext
Returns the extension that defined this menu item.
String
Returns the accelerator key code of this menu item.
String
Returns the full ID of this menu item.
String
Returns the resolved image path of this item.
String
Returns the label of this menu item.
jsx3.amp.util.Menu
Returns the menu that contains this menu item.
String
Returns the path of this menu item.
jsx3.amp.util.Menu
String
Returns the tip of this menu item.
boolean
Returns whether this menu item is enabled.
boolean
Returns whether this menu item is selected.
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Constructor Detail

init

void init(objExt : jsx3.amp.Ext, objData : jsx3.amp.XML)
The instance initializer.

Parameters:

objExt
objData
Method Detail

attr

String attr(strKey : String)
Returns an attribute of the XML declaration of this menu item.

Parameters:

strKey

Returns:

 

execute

void execute()
Executes this menu item. If the execute attribute is not empty then the plug-in that declared this menu item is loaded. Once the plug-in loads the contents of the execute attribute are execute in the context of the extension that defined this menu item.

getExt

jsx3.amp.Ext getExt()
Returns the extension that defined this menu item.

Returns:

 

getHotKey

String getHotKey()
Returns the accelerator key code of this menu item.

Returns:

 

getId

String getId()
Returns the full ID of this menu item.

Returns:

 

getImg

String getImg()
Returns the resolved image path of this item.

Returns:

 

getLabel

String getLabel()
Returns the label of this menu item.

Returns:

 

getMenu

jsx3.amp.util.Menu getMenu()
Returns the menu that contains this menu item.

Returns:

 

getPath

String getPath()
Returns the path of this menu item.

Returns:

 

getRootMenu

jsx3.amp.util.Menu getRootMenu()

Returns:

 

getTip

String getTip()
Returns the tip of this menu item.

Returns:

 

isEnabled

boolean isEnabled()
Returns whether this menu item is enabled. This implementation interprets bind expressions in the enabled attribute of the item definition. Otherwise this method returns true.

Returns:

 

isSelected

boolean isSelected()
Returns whether this menu item is selected. This implementation interprets bind expressions in the selected attribute of the item definition. Otherwise this method returns false.

Returns: