All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JMenuItem
|
+----xu.xu_MenuItem
A JMenuItem which has an attribute list. Its purpose is to be created from an XML configuration file with an arbitrary list of attributes, which can be interrogated by the action which it invokes. The benefit of this is that several menu items can be associated with a single action, but the behaviour of the action can be different for each one. (For example, the menu item may include the pathname of a file upon which it is to operate - such as for displaying help).
xu_MenuItem objects can be treated exactly the same as JMenuItem objects - this class offers exactly the same set of constructors. The *only* difference is the ability to set and retrieve an attribute list.
protected xg_AttList MenuItemAttList
public xu_MenuItem()
public xu_MenuItem(Icon InputIcon)
public xu_MenuItem(String InputText)
public xu_MenuItem(String InputText,
Icon InputIcon)
public xu_MenuItem(String InputText,
int InputKeyboardMnemonic)
public void setAttList(xg_AttList InputAttList)
public xg_AttList getAttList()
All Packages Class Hierarchy This Package Previous Next Index