Package io.jmix.flowui.kit.action
Class AbstractAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
BaseAction
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected EventBus
protected String
protected final String
protected KeyCombination
protected String
protected ActionVariant
protected boolean
Fields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addPropertyChangeListener
(Consumer<PropertyChangeEvent> listener) protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) protected EventBus
getIcon()
getId()
getText()
protected boolean
hasListener
(Class<? extends EventObject> eventType) boolean
boolean
void
setDescription
(String description) void
setEnabled
(boolean enabled) void
void
setShortcutCombination
(KeyCombination shortcutCombination) void
void
setVariant
(ActionVariant variant) void
setVisible
(boolean visible) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
actionPerform, refreshState
-
Field Details
-
id
-
text
-
enabled
protected boolean enabled -
visible
protected boolean visible -
icon
-
description
-
variant
-
shortcutCombination
-
eventBus
-
-
Constructor Details
-
AbstractAction
-
-
Method Details
-
getId
-
getText
-
setText
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceAction
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceAction
-
getIcon
-
setIcon
-
getDescription
- Specified by:
getDescription
in interfaceAction
-
setDescription
- Specified by:
setDescription
in interfaceAction
-
getVariant
- Specified by:
getVariant
in interfaceAction
-
setVariant
- Specified by:
setVariant
in interfaceAction
-
getShortcutCombination
- Specified by:
getShortcutCombination
in interfaceAction
-
setShortcutCombination
- Specified by:
setShortcutCombination
in interfaceAction
-
addPropertyChangeListener
public com.vaadin.flow.shared.Registration addPropertyChangeListener(Consumer<PropertyChangeEvent> listener) - Specified by:
addPropertyChangeListener
in interfaceAction
-
getEventBus
-
hasListener
-
firePropertyChange
-