Class AbstractFlowEditorMenuItem

    • Constructor Detail

      • AbstractFlowEditorMenuItem

        protected AbstractFlowEditorMenuItem()
        Initializes the menu item.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the menu item.
      • newAction

        protected abstract AbstractBaseAction newAction()
        Creates the action to use.
        Returns:
        the action
      • setOwner

        public void setOwner​(FlowEditorPanel value)
        Sets the owning flow editor.
        Parameters:
        value - the owner
      • getOwner

        public FlowEditorPanel getOwner()
        Returns the owner.
        Returns:
        the owner, null if none set
      • getAction

        public AbstractBaseAction getAction()
        Returns the action to add to the flow editor menu.
        Returns:
        the action to add
      • updateAction

        public abstract void updateAction()
        Updating the action, based on the current status of the owner.
      • compareTo

        public int compareTo​(AbstractFlowEditorMenuItem o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Uses the name of the menu item text for comparison.
        Specified by:
        compareTo in interface Comparable<AbstractFlowEditorMenuItem>
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
      • equals

        public boolean equals​(Object o)
        Returns whether the two objects are the same.

        Only compares the menu item text of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one
      • getMenuItems

        public static Class[] getMenuItems()
        Returns a list with classnames of menu items.
        Returns:
        the menu item classnames