|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.skeleton.swt.SwtGraphPanelPopupMenuSource
This class provides the popup menus for the drawing areas. Note that since
the application frame only holds one instance of popup menu source shared
among all the GraphPanels the destroy method
overridden in this class does nothing. Override the destroyBeforeCreating()
method instead in order to ensure that the UIMap does not get overloaded
when doing Look And Feel switches.
| Field Summary | |
protected ApplicationFrame |
applicationFrame
applicationFrame reference |
protected SwtPopupMenu |
popupmenu
popupmenu reference |
| Constructor Summary | |
SwtGraphPanelPopupMenuSource(ApplicationFrame applicationFrame)
Initializes the SwtGraphPanelPopupMenuSource instance. |
|
| Method Summary | |
void |
create()
This callback triggers a (re)creation of the popup menu. |
void |
destroy()
This callback triggers cleanup and destroying of the popup menu. |
protected void |
destroyBeforeCreating()
Called from the create() method it disposes and sets to
null the local instance.
|
PopupMenuMarkup |
getPopupMenu(java.lang.Object eventObject)
Returns the current popup menu of the popup source. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final ApplicationFrame applicationFrame
protected SwtPopupMenu popupmenu
| Constructor Detail |
public SwtGraphPanelPopupMenuSource(ApplicationFrame applicationFrame)
SwtGraphPanelPopupMenuSource instance.
applicationFrame - Application context for this MenuSource.| Method Detail |
public PopupMenuMarkup getPopupMenu(java.lang.Object eventObject)
JPopupMenuSource
getPopupMenu in interface JPopupMenuSourceeventObject - the mouse-event that triggered the request.
JPopupMenuSource.getPopupMenu(java.lang.Object)public void create()
JPopupMenuSourceWithUpdateUI
create in interface JPopupMenuSourceWithUpdateUIpublic void destroy()
JPopupMenuSourceWithUpdateUI
destroy in interface JPopupMenuSourceWithUpdateUIcom.tensegrity.gui.swt.SwtPopupMenuSourceWithUpdateUI#destroy()protected void destroyBeforeCreating()
Called from the create() method it disposes and sets to
null the local instance.
SwtPopupMenu
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||