|
||||||||||
| 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.Menu
net.xoetrope.swt.XMenu
public class XMenu
A wrapper for menus
Copyright (c) Xoetrope Ltd., 1998-2004
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.MenuItem |
cascadeMenu
|
| Fields inherited from class org.eclipse.swt.widgets.Menu |
|---|
handle |
| Constructor Summary | |
|---|---|
XMenu(XMenuBar parent)
Create a new menu |
|
| Method Summary | |
|---|---|
void |
addSeparator()
Adds a separator to this item. |
void |
append(java.lang.Object o,
java.lang.String name)
Appends the object o to this item |
protected void |
checkSubclass()
Suppress the subclassing exception |
org.eclipse.swt.widgets.MenuItem |
getCascadeMenu()
Get the cascade menu |
java.lang.Object |
getObject(java.lang.String name)
Get a child object by name |
java.lang.String |
getText()
Get the text/label of a component |
void |
setAction(java.lang.Object instance)
Set an action object |
void |
setName(java.lang.String name)
Set the name of this object |
void |
setText(java.lang.String text)
Set the text/label of a component |
void |
setup()
Do any final setup needed |
| Methods inherited from class org.eclipse.swt.widgets.Menu |
|---|
addHelpListener, addMenuListener, getDefaultItem, getEnabled, getItem, getItemCount, getItems, getParent, getParentItem, getParentMenu, getShell, getVisible, indexOf, isEnabled, isVisible, removeHelpListener, removeMenuListener, setDefaultItem, setEnabled, setLocation, setLocation, setVisible |
| 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 |
| Field Detail |
|---|
protected org.eclipse.swt.widgets.MenuItem cascadeMenu
| Constructor Detail |
|---|
public XMenu(XMenuBar parent)
parent - parent MenuBar| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.Widgetpublic org.eclipse.swt.widgets.MenuItem getCascadeMenu()
public void setAction(java.lang.Object instance)
setAction in interface XActionablesetAction in interface XAppenderinstance - the action objectpublic void setup()
setup in interface XAppender
public void append(java.lang.Object o,
java.lang.String name)
append in interface XAppendero - the appended itemname - the name of the menupublic void addSeparator()
addSeparator in interface XAppenderpublic java.lang.Object getObject(java.lang.String name)
getObject in interface XAppendername - the item name
public void setText(java.lang.String text)
setText in interface XTextHoldertext - the new textpublic java.lang.String getText()
getText in interface XTextHolderpublic void setName(java.lang.String name)
setName in interface XAppendername - the item name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||