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
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected EventBus
protected com.vaadin.flow.component.icon.Icon
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_COMBINATION, 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
com.vaadin.flow.component.icon.Icon
getIcon()
getId()
getText()
protected boolean
hasListener
(Class<? extends EventObject> eventType) boolean
boolean
void
setDescription
(String description) void
setEnabled
(boolean enabled) void
setIcon
(com.vaadin.flow.component.icon.Icon icon) 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
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:
setEnabled
in interfaceAction
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in 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:
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 interfaceHasShortcutCombination
-
setShortcutCombination
- Specified by:
setShortcutCombination
in interfaceHasShortcutCombination
-
addPropertyChangeListener
public com.vaadin.flow.shared.Registration addPropertyChangeListener(Consumer<PropertyChangeEvent> listener) - Specified by:
addPropertyChangeListener
in interfaceAction
-
getEventBus
-
hasListener
-
firePropertyChange
-