|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.control.SwtMenuBar
This class provides a default implementation of the
interface to be used in a SWT context. Since the SWT API specifies that the
class MenuBar is not intended to
be subclassed, a Menu
instance is herein encapsulated. One can access it through the Menu
method.
getSwtMenuBar()
| Constructor Summary | |
SwtMenuBar(org.eclipse.swt.widgets.Shell shell)
Default constructor which creates the internal instance.
|
|
| Method Summary | |
void |
addMenu(Menu menu)
As a container for Menu instances all implementation must provide an entry point to add these. |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
int |
getHeight()
Returns the height of the component in pixels. |
BasicComponent |
getParentComponent()
Returns the parent Component of this instance. |
org.eclipse.swt.widgets.Menu |
getSwtMenuBar()
This method provides access to the internal
instance held within this class. |
int |
getWidth()
Returns the width of the component in pixels. |
void |
installEvList()
Tells the component to setup its internal state. |
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 SwtMenuBar(org.eclipse.swt.widgets.Shell shell)
Default constructor which creates the internal
instance.
Menu
shell - a menu which will be the parent of the internal
Menu instance
(cannot be null)| Method Detail |
public void addMenu(Menu menu)
MenuBar
addMenu in interface MenuBarmenu - the Menu to add to this MenuBar.MenuBar.addMenu(com.tensegrity.gui.component.Menu)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 final org.eclipse.swt.widgets.Menu getSwtMenuBar()
Menu
instance held within this class.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||