Package io.jmix.ui.action.entitypicker
Class EntityClearAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.valuepicker.ValueClearAction
io.jmix.ui.action.entitypicker.EntityClearAction
- All Implemented Interfaces:
Action,Action.ExecutableAction,Action.HasPrimaryState,Action.SecuredAction,EntityPicker.EntityPickerAction,ValuePicker.ValuePickerAction,org.springframework.beans.factory.InitializingBean
@StudioAction(target="io.jmix.ui.component.EntityPicker",
description="Clears the entity picker value")
@ActionType("entity_clear")
public class EntityClearAction
extends ValueClearAction
implements EntityPicker.EntityPickerAction
Standard entity picker action for clearing the field value.
Should be defined for EntityPicker 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
FieldsFields inherited from class io.jmix.ui.action.valuepicker.ValueClearAction
componentProperties, editable, icons, messages, 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 TypeMethodDescriptionvoidexecute()Executes the action.protected EntityPickervoidsetEntityPicker(EntityPicker entityPicker) voidsetPicker(ValuePicker valuePicker) Sets aValuePickerinstance associated with this action.Methods inherited from class io.jmix.ui.action.valuepicker.ValueClearAction
actionPerform, afterPropertiesSet, editableChanged, isEditable, setEditable, setIcons, setMessages, setUiComponentPropertiesMethods 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, setVisibleMethods inherited from interface io.jmix.ui.component.ValuePicker.ValuePickerAction
editableChanged, isEditable
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
EntityClearAction
public EntityClearAction() -
EntityClearAction
-
-
Method Details
-
setEntityPicker
- Specified by:
setEntityPickerin interfaceEntityPicker.EntityPickerAction
-
setPicker
Description copied from interface:ValuePicker.ValuePickerActionSets aValuePickerinstance associated with this action.- Specified by:
setPickerin interfaceEntityPicker.EntityPickerAction- Specified by:
setPickerin interfaceValuePicker.ValuePickerAction- Overrides:
setPickerin classValueClearAction- Parameters:
valuePicker- aValuePickerinstance to set
-
getEntityPicker
-
execute
public void execute()Executes the action.- Specified by:
executein interfaceAction.ExecutableAction- Overrides:
executein classValueClearAction
-