Package io.jmix.ui.action.valuepicker
Class ValueClearAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.valuepicker.ValueClearAction
- All Implemented Interfaces:
Action,Action.ExecutableAction,Action.HasPrimaryState,Action.SecuredAction,ValuePicker.ValuePickerAction,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
EntityClearAction
@StudioAction(target="io.jmix.ui.component.ValuePicker",
description="Clears the value picker value")
@ActionType("value_clear")
public class ValueClearAction
extends BaseAction
implements ValuePicker.ValuePickerAction, org.springframework.beans.factory.InitializingBean, Action.ExecutableAction
Standard value picker action for clearing the field value.
Should be defined for ValuePicker or its subclass in a screen XML descriptor.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UiComponentPropertiesprotected booleanprotected Iconsstatic final Stringprotected Messagesprotected ValuePickerFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLEFields inherited from interface io.jmix.ui.component.ValuePicker.ValuePickerAction
PROP_EDITABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(Component component) Invoked by owning component to execute the action.voidvoideditableChanged(boolean editable) Called byValuePickerto inform about its editable state.voidexecute()Executes the action.booleanprotected voidsetEditable(boolean editable) protected voidprotected voidsetMessages(Messages messages) voidsetPicker(ValuePicker valuePicker) Sets aValuePickerinstance associated with this action.protected voidsetUiComponentProperties(UiComponentProperties componentProperties) Methods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutMethods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.Action
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
valuePicker
-
icons
-
messages
-
componentProperties
-
editable
protected boolean editable
-
-
Constructor Details
-
ValueClearAction
public ValueClearAction() -
ValueClearAction
-
-
Method Details
-
setUiComponentProperties
-
setMessages
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setPicker
Description copied from interface:ValuePicker.ValuePickerActionSets aValuePickerinstance associated with this action.- Specified by:
setPickerin interfaceValuePicker.ValuePickerAction- Parameters:
valuePicker- aValuePickerinstance to set
-
editableChanged
public void editableChanged(boolean editable) Description copied from interface:ValuePicker.ValuePickerActionCalled byValuePickerto inform about its editable state.- Specified by:
editableChangedin interfaceValuePicker.ValuePickerAction- Parameters:
editable- aValuePickereditable state
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceValuePicker.ValuePickerAction- Returns:
- whether this action is editable
-
setEditable
protected void setEditable(boolean editable) -
setIcons
-
actionPerform
Description copied from interface:ActionInvoked by owning component to execute the action.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classBaseAction- Parameters:
component- invoking component
-
execute
public void execute()Executes the action.- Specified by:
executein interfaceAction.ExecutableAction
-