org.eclipse.graphiti.tb
Class ContextMenuEntry

java.lang.Object
  extended by org.eclipse.graphiti.tb.AbstractContextEntry
      extended by org.eclipse.graphiti.tb.ContextMenuEntry
All Implemented Interfaces:
IContextEntry, IContextMenuEntry

public class ContextMenuEntry
extends AbstractContextEntry
implements IContextMenuEntry

The Class ContextMenuEntry.


Field Summary
private  java.util.ArrayList<IContextMenuEntry> children
           
private static IContextMenuEntry[] NO_CONTEXT_MENU_ENTRIES
           
private  boolean submenu
           
 
Constructor Summary
ContextMenuEntry(IFeature feature, IContext context)
          Creates a new ContextMenuEntry.
 
Method Summary
 void add(IContextMenuEntry entry)
          Adds the.
 IContextMenuEntry[] getChildren()
          Gets the children.
 boolean isSubmenu()
          Checks if is submenu.
 void setSubmenu(boolean submenu)
          Sets the submenu.
 
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

NO_CONTEXT_MENU_ENTRIES

private static final IContextMenuEntry[] NO_CONTEXT_MENU_ENTRIES

children

private java.util.ArrayList<IContextMenuEntry> children

submenu

private boolean submenu
Constructor Detail

ContextMenuEntry

public ContextMenuEntry(IFeature feature,
                        IContext context)
Creates a new ContextMenuEntry.

Parameters:
feature - the feature
context - the context
Method Detail

getChildren

public IContextMenuEntry[] getChildren()
Description copied from interface: IContextMenuEntry
Gets the children.

Specified by:
getChildren in interface IContextMenuEntry
Returns:
the children

add

public void add(IContextMenuEntry entry)
Description copied from interface: IContextMenuEntry
Adds the.

Specified by:
add in interface IContextMenuEntry
Parameters:
entry - the entry

isSubmenu

public boolean isSubmenu()
Description copied from interface: IContextMenuEntry
Checks if is submenu.

Specified by:
isSubmenu in interface IContextMenuEntry
Returns:
true, if is submenu

setSubmenu

public void setSubmenu(boolean submenu)
Sets the submenu.

Parameters:
submenu - the new submenu


Copyright (c) SAP AG 2005, 2010.