Class ListAction

All Implemented Interfaces:
Action, Action.HasPrimaryState, Action.HasTarget, Action.SecuredAction
Direct Known Subclasses:
AddAction, CreateAction, EditFetchPlanAction, ExecutionHistoryAction, ExportAction, RefreshAction, ResetRememberMeTokenAction, RunReportAction, SecuredListAction, ShowPivotAction

public class ListAction extends BaseAction implements Action.HasTarget
  • Field Details

  • Constructor Details

    • ListAction

      public ListAction(String id)
    • ListAction

      public ListAction(String id, @Nullable String shortcut)
  • Method Details

    • getTarget

      @Nullable public ListComponent getTarget()
      Specified by:
      getTarget in interface Action.HasTarget
    • setTarget

      public void setTarget(@Nullable ListComponent target)
      Specified by:
      setTarget in interface Action.HasTarget
    • withCaption

      public ListAction withCaption(@Nullable String caption)
      Set caption using fluent API method.
      Overrides:
      withCaption in class BaseAction
      Parameters:
      caption - caption
      Returns:
      current instance of action
    • withDescription

      public ListAction withDescription(@Nullable String description)
      Set description using fluent API method.
      Overrides:
      withDescription in class BaseAction
      Parameters:
      description - description
      Returns:
      current instance of action
    • withIcon

      public ListAction withIcon(@Nullable String icon)
      Set icon using fluent API method.
      Overrides:
      withIcon in class BaseAction
      Parameters:
      icon - icon
      Returns:
      current instance of action
    • withShortcut

      public ListAction withShortcut(@Nullable String shortcut)
      Set shortcut using fluent API method.
      Overrides:
      withShortcut in class BaseAction
      Parameters:
      shortcut - shortcut
      Returns:
      current instance of action
    • withHandler

      public ListAction withHandler(Consumer<Action.ActionPerformedEvent> handler)
      Set action performed event handler using fluent API method. Can be used instead of subclassing BaseAction class.
      Overrides:
      withHandler in class BaseAction
      Parameters:
      handler - action performed handler
      Returns:
      current instance of action
    • withPrimary

      public ListAction withPrimary(boolean primary)
      Set whether this action is primary using fluent API method. Can be used instead of subclassing BaseAction class.
      Overrides:
      withPrimary in class BaseAction
      Parameters:
      primary - primary
      Returns:
      current instance of action