|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.swt.widgets.MenuItem
net.xoetrope.swt.XMenuItem
public class XMenuItem
A wrapper for menu items
Copyright (c) Xoetrope Ltd., 1998-2004
| Constructor Summary | |
|---|---|
XMenuItem(XMenu parent)
Create a new menuitem |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
void |
setAction(java.lang.Object instance)
Set an action object |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
| Methods inherited from class org.eclipse.swt.widgets.MenuItem |
|---|
addArmListener, addHelpListener, addSelectionListener, getAccelerator, getEnabled, getMenu, getParent, getSelection, isEnabled, removeArmListener, removeHelpListener, removeSelectionListener, setAccelerator, setEnabled, setImage, setMenu, setSelection, setText |
| Methods inherited from class org.eclipse.swt.widgets.Item |
|---|
getImage, getText |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.xoetrope.xui.XTextHolder |
|---|
getText, setText |
| Constructor Detail |
|---|
public XMenuItem(XMenu parent)
parent - parent menu| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.MenuItempublic void setAction(java.lang.Object instance)
setAction in interface XActionableaction - the action object
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the name of the attributeattribValue - the value of the attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||