Class ContextButtonEntry

    • Constructor Detail

      • 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 Detail

      • 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 java.util.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 java.util.List<IFeature> getDragAndDropFeatures()
        Gets the drag and drop features.
        Returns:
        returns the drag and drop features