|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.control.SwtPopupMenu
This is the "SWT" implementation of the
interface. Due to "SWT" restrictions this class does not extend the PopupMenuMarkup
class but instead contains an instance of this class accessible through the
Menu method.
getMenuInstance()
| Constructor Summary | |
SwtPopupMenu(org.eclipse.swt.widgets.Control parent)
Initializes the local instance.
|
|
SwtPopupMenu(org.eclipse.swt.widgets.Decorations parent,
int style)
Initializes the local instance.
|
|
SwtPopupMenu(org.eclipse.swt.widgets.Menu parentMenu)
Initializes the local instance.
|
|
SwtPopupMenu(org.eclipse.swt.widgets.MenuItem parentItem)
Initializes the local instance.
|
|
| Method Summary | |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
void |
dispose()
Disposes the local instance.
|
int |
getHeight()
Returns the height of the component in pixels. |
org.eclipse.swt.widgets.Menu |
getMenuInstance()
Returns the local instance. |
BasicComponent |
getParentComponent()
Returns the parent Component of this instance. |
int |
getWidth()
Returns the width of the component in pixels. |
void |
installEvList()
Tells the component to setup its internal state. |
void |
removeAll()
Removes all menu items from the Menu instance.
|
void |
repaint()
Triggers a repaint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwtPopupMenu(org.eclipse.swt.widgets.Control parent)
Initializes the local instance.
Menu
parent - a control which will be the parent of the local Menu
instance (cannot be null)
public SwtPopupMenu(org.eclipse.swt.widgets.Decorations parent,
int style)
Initializes the local instance.
Menu
parent - a decorations control which will be the parent of the local
Menu instance (cannot be null)style - the style of menu to constructpublic SwtPopupMenu(org.eclipse.swt.widgets.Menu parentMenu)
Initializes the local instance.
Menu
parentMenu - a menu which will be the parent of the local Menu
instance (cannot be null)public SwtPopupMenu(org.eclipse.swt.widgets.MenuItem parentItem)
Initializes the local instance.
Menu
parentItem - a menu item which will be the parent of the local Menu
instance (cannot be null)| Method Detail |
public final org.eclipse.swt.widgets.Menu getMenuInstance()
Menu instance.
Menu instance.public int getHeight()
BasicComponent
getHeight in interface BasicComponentBasicComponent.getHeight()public BasicComponent getParentComponent()
BasicComponent
getParentComponent in interface BasicComponentnull if no parent exists.BasicComponent.getParentComponent()public int getWidth()
BasicComponent
getWidth in interface BasicComponentBasicComponent.getWidth()public void repaint()
BasicComponent
repaint in interface BasicComponentBasicComponent.repaint()public void applyEvList()
EvaluableUIItemEvaluationList.
applyEvList in interface EvaluableEvaluable.applyEvList()public void installEvList()
Evaluable
installEvList in interface EvaluableEvaluable.installEvList()public void dispose()
Disposes the local instance.
See Menu.
Widget.dispose()
public void removeAll()
Removes all menu items from the Menu instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||