|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.MenuComponent
java.awt.MenuItem
net.xoetrope.awt.XMenuItem
public class XMenuItem
A wrapper for menu items
Copyright: Copyright (c) Xoetrope Ltd., 2002-2003
| 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 |
|---|
public XMenuItem()
| Method Detail |
|---|
public void setAction(java.lang.Object action)
setAction in interface XAction
action - the action objectpublic void setText(java.lang.String newText)
setText in interface XTextHolder
newText - the new textpublic java.lang.String getText()
getText in interface XTextHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||