net.xoetrope.awt
Class XMenuItem

java.lang.Object
  extended by java.awt.MenuComponent
      extended by java.awt.MenuItem
          extended by net.xoetrope.awt.XMenuItem
All Implemented Interfaces:
java.io.Serializable, javax.accessibility.Accessible, XAction, XTextHolder

public class XMenuItem
extends java.awt.MenuItem

    
implements XTextHolder, XAction

    

A wrapper for menu items

Copyright: Copyright (c) Xoetrope Ltd., 2002-2003

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.MenuItem
java.awt.MenuItem.AccessibleAWTMenuItem
 
Nested classes/interfaces inherited from class java.awt.MenuComponent
java.awt.MenuComponent.AccessibleAWTMenuComponent
 
Constructor Summary
XMenuItem()
          Create a new menu item
 
Method Summary
 java.lang.String getText()
          Gets the text/caption
 void setAction(java.lang.Object action)
          Set an Action for the menu - does nothing
 void setText(java.lang.String newText)
          Set the menu item text
 
Methods inherited from class java.awt.MenuItem
addActionListener, addNotify, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getAccessibleContext, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, paramString, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
 
Methods inherited from class java.awt.MenuComponent
dispatchEvent, getFont, getName, getParent, getPeer, getTreeLock, postEvent, removeNotify, setFont, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMenuItem

public XMenuItem()
Create a new menu item

Method Detail

setAction

public void setAction(java.lang.Object action)
Set an Action for the menu - does nothing

Specified by:
setAction in interface XAction
Parameters:
action - the action object

setText

public void setText(java.lang.String newText)
Set the menu item text

Specified by:
setText in interface XTextHolder
Parameters:
newText - the new text

getText

public java.lang.String getText()
Gets the text/caption

Specified by:
getText in interface XTextHolder
Returns:
the text value