Class AbstractToggleAction

    • Constructor Detail

      • AbstractToggleAction

        public AbstractToggleAction()
    • Method Detail

      • perform

        public ActionResult<java.lang.Object> perform​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Performs the action.
        Parameters:
        ctx - context containing the data and other information
        Returns:
        the action result
      • restoreOutputValue

        protected java.lang.Object restoreOutputValue​(ActionContext<java.lang.Object> ctx)
        Reads action's output value from parent's widget model.
        Parameters:
        ctx - action context
        Returns:
        value read from model
      • getOutputSocket

        protected abstract java.lang.String getOutputSocket​(ActionContext<java.lang.Object> ctx)
        Parameters:
        ctx - action context
        Returns:
        name of output socket for action value