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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected EventBusprotected Stringprotected final Stringprotected KeyCombinationprotected Stringprotected ActionVariantprotected booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddPropertyChangeListener(Consumer<PropertyChangeEvent> listener) protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) protected EventBusgetIcon()getId()getText()protected booleanhasListener(Class<? extends EventObject> eventType) booleanbooleanvoidsetDescription(String description) voidsetEnabled(boolean enabled) voidvoidsetShortcutCombination(KeyCombination shortcutCombination) voidvoidsetVariant(ActionVariant variant) voidsetVisible(boolean visible) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setEnabledin interfaceAction
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceAction
-
getIcon
-
setIcon
-
getDescription
- Specified by:
getDescriptionin interfaceAction
-
setDescription
- Specified by:
setDescriptionin interfaceAction
-
getVariant
- Specified by:
getVariantin interfaceAction
-
setVariant
- Specified by:
setVariantin interfaceAction
-
getShortcutCombination
- Specified by:
getShortcutCombinationin interfaceAction
-
setShortcutCombination
- Specified by:
setShortcutCombinationin interfaceAction
-
addPropertyChangeListener
public com.vaadin.flow.shared.Registration addPropertyChangeListener(Consumer<PropertyChangeEvent> listener) - Specified by:
addPropertyChangeListenerin interfaceAction
-
getEventBus
-
hasListener
-
firePropertyChange
-