com.tssap.util.ui.menu.context
Class ContextMenu
java.lang.Object
|
+--com.tssap.util.ui.menu.context.ContextMenu
- All Implemented Interfaces:
- IContextMenu, IContextMenuPart
- Direct Known Subclasses:
- DynamicContextMenu, MixedContextMenu, StaticContextMenu
- public abstract class ContextMenu
- extends java.lang.Object
- implements IContextMenu, IContextMenuPart
- Since:
- 12.07.2002
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMenu
public ContextMenu()
show
public void show(org.eclipse.swt.widgets.Control parent,
IContext context)
- Specified by:
show in interface IContextMenu
- See Also:
com.tssap.util.ui.menu.IContextMenu#show(Control, IContext)
getMenu
public IMenu getMenu(IContext context)
- Specified by:
getMenu in interface IContextMenuPart
- See Also:
com.tssap.util.ui.menu.IContextMenuPart#getContextMenuPart(IContext)
setDefaultDynamicContextMenuToStructuredViewer
public static void setDefaultDynamicContextMenuToStructuredViewer(org.eclipse.jface.viewers.StructuredViewer viewer)
- Connects a default implementation of a dynamic context menu to any
JFace structured viewer. So context menu will pop up if right mouse
button or corresponding key is pressed on JFace structured viewer.
- Parameters:
viewer - viewer on which context menu should work/pop up- See Also:
DynamicContextMenu
setContextMenuToControl
public static void setContextMenuToControl(org.eclipse.swt.widgets.Control control,
IContextMenu contextMenu,
IContextProvider contextProvider)
- Connects a context menu to any SWT control.
So context menu will pop up if right mouse button
or corresponding key is pressed on that SWT control.
- Parameters:
control - SWT control on which context menu should workcontextMenu - according context menu objectcontextProvider - has to provide the corresponding context- See Also:
IContext
setContextMenuToStructuredViewer
public static void setContextMenuToStructuredViewer(org.eclipse.jface.viewers.StructuredViewer viewer,
IContextMenu contextMenu)
- Connects a context menu to any JFace structured viewer.
So context menu will pop up if right mouse button
or corresponding key is pressed on JFace structured viewer.
- Parameters:
viewer - viewer on which context menu should work/pop upcontextMenu - according context menu object
performDefault
public void performDefault(IContext context)
- Specified by:
performDefault in interface IContextMenu
addDescriptionIndicator
public boolean addDescriptionIndicator(IDescriptionIndicator descriptionIndicator)
- Specified by:
addDescriptionIndicator in interface IContextMenu
- See Also:
IContextMenu.addDescriptionIndicator(com.tssap.util.ui.IDescriptionIndicator)
removeDescriptionIndicator
public boolean removeDescriptionIndicator(IDescriptionIndicator descriptionIndicator)
- Specified by:
removeDescriptionIndicator in interface IContextMenu
- See Also:
IContextMenu.removeDescriptionIndicator(com.tssap.util.ui.IDescriptionIndicator)
Copyright © 2005 SAP AG. All Rights Reserved.