Class ModelingActionGroup

java.lang.Object
se.conciliate.extensions.ui.ModelingAction
se.conciliate.extensions.ui.ModelingActionGroup
Direct Known Subclasses:
LazyModelingActionGroup

public class ModelingActionGroup extends ModelingAction
A group of modeling actions. The UI will choose how to show this group, e.g. a list of menu items with separators, a sub-menu etc.
  • Constructor Details

    • ModelingActionGroup

      public ModelingActionGroup(String name, Icon icon, List<ModelingAction> children, boolean enabled)
    • ModelingActionGroup

      public ModelingActionGroup(List<ModelingAction> children, boolean enabled)
    • ModelingActionGroup

      public ModelingActionGroup(String name, Icon icon, boolean enabled)
    • ModelingActionGroup

      public ModelingActionGroup(boolean enabled)
    • ModelingActionGroup

      protected ModelingActionGroup(Action action)
  • Method Details

    • addModelingAction

      public void addModelingAction(ModelingAction action)
    • getAlignment

    • setAlignment

      public void setAlignment(ModelingActionGroup.PreferredAlignment alignment)
    • clear

      public void clear()
    • isEnabled

      public boolean isEnabled()
      Tells if this group of actions should be enabled.
    • getChildren

      public List<ModelingAction> getChildren()
      Returns the child actions.
    • hasTitle

      public boolean hasTitle()
      The UI can choose to show the group differently depending on if it has a title, e.g. grouped with separator if it has no titles and as a sub-menu if it has one.
    • isSelectWithNumKeys

      public boolean isSelectWithNumKeys()
    • setSelectWithNumKeys

      public void setSelectWithNumKeys(boolean selectWithNumKeys)
      Set this to true if the group contains a group of actions which can be selected with the numeric keys, starting with '1' for the first action in the group.