Package io.jmix.flowui.kit.action
Class AbstractAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
- All Implemented Interfaces:
Action,HasShortcutCombination
- Direct Known Subclasses:
BaseAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected EventBusprotected com.vaadin.flow.component.icon.Iconprotected final Stringprotected KeyCombinationprotected Stringprotected ActionVariantprotected booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddPropertyChangeListener(Consumer<PropertyChangeEvent> listener) protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) protected EventBuscom.vaadin.flow.component.icon.IcongetIcon()getId()getText()protected booleanhasListener(Class<? extends EventObject> eventType) booleanbooleanvoidsetDescription(String description) voidsetEnabled(boolean enabled) voidsetIcon(com.vaadin.flow.component.icon.Icon icon) voidsetShortcutCombination(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
protected com.vaadin.flow.component.icon.Icon 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
@Nullable public com.vaadin.flow.component.icon.Icon getIcon() -
setIcon
public void setIcon(@Nullable com.vaadin.flow.component.icon.Icon icon) -
getDescription
- Specified by:
getDescriptionin interfaceAction
-
setDescription
- Specified by:
setDescriptionin interfaceAction
-
getVariant
- Specified by:
getVariantin interfaceAction
-
setVariant
- Specified by:
setVariantin interfaceAction
-
getShortcutCombination
- Specified by:
getShortcutCombinationin interfaceHasShortcutCombination
-
setShortcutCombination
- Specified by:
setShortcutCombinationin interfaceHasShortcutCombination
-
addPropertyChangeListener
public com.vaadin.flow.shared.Registration addPropertyChangeListener(Consumer<PropertyChangeEvent> listener) - Specified by:
addPropertyChangeListenerin interfaceAction
-
getEventBus
-
hasListener
-
firePropertyChange
-