Class BaseAction

java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
LogoutAction, SecuredBaseAction

public class BaseAction extends AbstractAction
  • Field Details

    • enabledExplicitly

      protected boolean enabledExplicitly
    • visibleExplicitly

      protected boolean visibleExplicitly
  • Constructor Details

    • BaseAction

      public BaseAction(String id)
  • Method Details

    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface Action
      Overrides:
      setVisible in class AbstractAction
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface Action
      Overrides:
      setEnabled in class AbstractAction
    • refreshState

      public void refreshState()
    • actionPerform

      public void actionPerform(com.vaadin.flow.component.Component component)
    • addActionPerformedListener

      public com.vaadin.flow.shared.Registration addActionPerformedListener(Consumer<ActionPerformedEvent> listener)
    • withText

      public BaseAction withText(@Nullable String text)
    • withEnabled

      public BaseAction withEnabled(boolean enabled)
    • withVisible

      public BaseAction withVisible(boolean visible)
    • withIcon

      public BaseAction withIcon(@Nullable String icon)
    • withIcon

      public BaseAction withIcon(@Nullable com.vaadin.flow.component.icon.VaadinIcon icon)
    • withTitle

      public BaseAction withTitle(@Nullable String title)
    • withVariant

      public BaseAction withVariant(ActionVariant actionVariant)
    • withShortcutCombination

      public BaseAction withShortcutCombination(@Nullable KeyCombination shortcutCombination)
    • withHandler

      public BaseAction withHandler(@Nullable Consumer<ActionPerformedEvent> handler)
    • setVisibleInternal

      protected void setVisibleInternal(boolean visible)
    • setEnabledInternal

      protected void setEnabledInternal(boolean enabled)
    • isApplicable

      protected boolean isApplicable()