|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.tb.AbstractContextEntry
org.eclipse.graphiti.tb.DynamicContextMenuEntry
public class DynamicContextMenuEntry
The Class DynamicContextMenuEntry.
Field Summary | |
---|---|
private ArrayList<IContextMenuEntry> |
children
|
private int |
minimumSubmenuEntries
|
private static IContextMenuEntry[] |
NO_CONTEXT_MENU_ENTRIES
|
Constructor Summary | |
---|---|
DynamicContextMenuEntry(IFeature feature,
IContext context)
Creates a new DynamicContextMenuEntry . |
Method Summary | |
---|---|
void |
add(IContextMenuEntry entry)
Adds the. |
IContextMenuEntry[] |
getChildren()
Gets the children. |
int |
getMinimumSubmenuEntries()
Gets the minimum submenu entries. |
boolean |
isSubmenu()
Checks if is submenu. |
void |
setMinimumSubmenuEntries(int minimumSubmenuEntries)
Sets the minimum submenu entries. |
Methods inherited from class org.eclipse.graphiti.tb.AbstractContextEntry |
---|
canExecute, execute, getContext, getDescription, getFeature, getIconId, getText, setDescription, setIconId, setText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.tb.IContextEntry |
---|
canExecute, execute, getContext, getDescription, getFeature, getIconId, getText, setDescription, setIconId, setText |
Field Detail |
---|
private static final IContextMenuEntry[] NO_CONTEXT_MENU_ENTRIES
private int minimumSubmenuEntries
private ArrayList<IContextMenuEntry> children
Constructor Detail |
---|
public DynamicContextMenuEntry(IFeature feature, IContext context)
DynamicContextMenuEntry
.
feature
- the featurecontext
- the contextMethod Detail |
---|
public IContextMenuEntry[] getChildren()
IContextMenuEntry
getChildren
in interface IContextMenuEntry
public void add(IContextMenuEntry entry)
IContextMenuEntry
add
in interface IContextMenuEntry
entry
- the entrypublic boolean isSubmenu()
IContextMenuEntry
isSubmenu
in interface IContextMenuEntry
public void setMinimumSubmenuEntries(int minimumSubmenuEntries)
minimumSubmenuEntries
- the new minimum submenu entriespublic int getMinimumSubmenuEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |