Class AbstractAction

  • All Implemented Interfaces:
    Action

    public abstract class AbstractAction
    extends java.lang.Object
    implements Action
    Introduces a basic implementation of the Action interface and simplifies further actions development.
    Author:
    Alex
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: Action
        Returns action display name.
        Specified by:
        getDisplayName in interface Action
        Returns:
        action display name
      • getPropertyDescription

        public java.lang.String getPropertyDescription​(java.lang.String propertyName)
        Description copied from interface: Action
        Returns action property description. Used for creating action properties help panel in Manager GUI.
        Specified by:
        getPropertyDescription in interface Action
        Parameters:
        propertyName - the property name
        Returns:
        property description text
      • getPropertyExample

        public java.lang.String getPropertyExample​(java.lang.String propertyName)
        Description copied from interface: Action
        Returns action property usage example. Used for creating action properties help panel in Manager GUI.
        Specified by:
        getPropertyExample in interface Action
        Parameters:
        propertyName - the property name
        Returns:
        property usage example
      • getGroup

        public java.lang.String getGroup()
        Description copied from interface: Action
        Returns action group name.
        Specified by:
        getGroup in interface Action
        Returns:
        action group name
      • isLogAction

        public boolean isLogAction()
        Description copied from interface: Action
        Returns action loggable flag.
        Specified by:
        isLogAction in interface Action
        Returns:
        true if action should be logged; false otherwise
      • setLogAction

        public void setLogAction​(boolean value)
        Description copied from interface: Action
        Sets action loggable flag.
        Specified by:
        setLogAction in interface Action
        Parameters:
        value - if true action will be logged
      • getTriggerName

        public java.lang.String getTriggerName()
        Description copied from interface: Action
        Returns parent trigger name.
        Specified by:
        getTriggerName in interface Action
        Returns:
        parent trigger name
      • getResultMessage

        public java.lang.String getResultMessage()
        Description copied from interface: Action
        Returns result message for logging.
        Specified by:
        getResultMessage in interface Action
        Returns:
        a result message
      • getResult

        public java.lang.Object getResult()
        Specified by:
        getResult in interface Action
      • getTriggerErrorMessage

        public java.lang.String getTriggerErrorMessage()
        Description copied from interface: Action
        Returns an error message passed to Trigger Error Event.
        Specified by:
        getTriggerErrorMessage in interface Action
        Returns:
        an error message
      • setTriggerErrorMessage

        public void setTriggerErrorMessage​(java.lang.String value)
      • isSuccess

        public boolean isSuccess()
        Description copied from interface: Action
        Returns action success flag.
        Specified by:
        isSuccess in interface Action
        Returns:
        true if action was successful executed; false otherwise
      • getPriority

        public int getPriority()
        Description copied from interface: Action
        Returns the action priority.
        Specified by:
        getPriority in interface Action
        Returns:
        the action priority
      • setPriority

        public void setPriority​(int value)
        Description copied from interface: Action
        Sets the action priority.
        Specified by:
        setPriority in interface Action
        Parameters:
        value - the action priority