Class ContextButtonEntry

java.lang.Object
org.eclipse.graphiti.tb.AbstractContextEntry
org.eclipse.graphiti.tb.ContextButtonEntry
All Implemented Interfaces:
IContextButtonEntry, IContextEntry

public class ContextButtonEntry extends AbstractContextEntry implements IContextButtonEntry
The Class ContextButtonEntry.
  • Constructor Details

    • ContextButtonEntry

      public ContextButtonEntry(IFeature feature, IContext context)
      Creates a context button entry.
      Parameters:
      feature - feature that will be triggered on click
      context - the context used with the feature
  • Method Details

    • addContextButtonMenuEntry

      public void addContextButtonMenuEntry(IContextButtonEntry contextButtonEntry)
      Add a menu feature. Will be triggered when you click the button.
      Parameters:
      contextButtonEntry - the context button entry
    • getContextButtonMenuEntries

      public List<IContextButtonEntry> getContextButtonMenuEntries()
      Gets the context button menu entries.
      Returns:
      returns the menu features
    • addDragAndDropFeature

      public void addDragAndDropFeature(IFeature dragAndDropFeature)
      add a drag and drop feature. gets triggered when you drag from the button and drop on an arbitrary part of the screen
      Parameters:
      dragAndDropFeature - the drag and drop feature
    • getDragAndDropFeatures

      public List<IFeature> getDragAndDropFeatures()
      Gets the drag and drop features.
      Returns:
      returns the drag and drop features