Package io.jmix.flowui.kit.action
Class BaseAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
- All Implemented Interfaces:
Action
,HasShortcutCombination
- Direct Known Subclasses:
LogoutAction
,SecuredBaseAction
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerform
(com.vaadin.flow.component.Component component) com.vaadin.flow.shared.Registration
protected boolean
void
void
setEnabled
(boolean enabled) protected void
setEnabledInternal
(boolean enabled) void
setVisible
(boolean visible) protected void
setVisibleInternal
(boolean visible) withEnabled
(boolean enabled) withHandler
(Consumer<ActionPerformedEvent> handler) withIcon
(com.vaadin.flow.component.icon.Icon icon) withIcon
(com.vaadin.flow.component.icon.VaadinIcon icon) withShortcutCombination
(KeyCombination shortcutCombination) withVariant
(ActionVariant actionVariant) withVisible
(boolean visible) Methods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariant
-
Field Details
-
enabledExplicitly
protected boolean enabledExplicitly -
visibleExplicitly
protected boolean visibleExplicitly
-
-
Constructor Details
-
BaseAction
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceAction
- Overrides:
setVisible
in classAbstractAction
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceAction
- Overrides:
setEnabled
in classAbstractAction
-
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
-
withEnabled
-
withVisible
-
withIcon
-
withIcon
-
withTitle
-
withVariant
-
withShortcutCombination
-
withHandler
-
setVisibleInternal
protected void setVisibleInternal(boolean visible) -
setEnabledInternal
protected void setEnabledInternal(boolean enabled) -
isApplicable
protected boolean isApplicable()
-