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 SummaryNested classes/interfaces inherited from class io.jmix.ui.action.BaseActionBaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.ActionAction.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
- 
Field SummaryFieldsFields inherited from class io.jmix.ui.action.valuepicker.ValueClearActioncomponentProperties, editable, icons, messages, valuePickerFields inherited from class io.jmix.ui.action.AbstractActioncaption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.ActionPROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLEFields inherited from interface io.jmix.ui.component.ValuePicker.ValuePickerActionPROP_EDITABLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ValueClearActionactionPerform, afterPropertiesSet, editableChanged, isEditable, setEditable, setIcons, setMessages, setUiComponentPropertiesMethods inherited from class io.jmix.ui.action.BaseActionaddActionPerformedListener, 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.AbstractActionaddOwner, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.ActionaddOwner, 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.ValuePickerActioneditableChanged, isEditable
- 
Field Details- 
ID- See Also:
 
 
- 
- 
Constructor Details- 
EntityClearActionpublic EntityClearAction()
- 
EntityClearAction
 
- 
- 
Method Details- 
setEntityPicker- Specified by:
- setEntityPickerin interface- EntityPicker.EntityPickerAction
 
- 
setPickerDescription copied from interface:ValuePicker.ValuePickerActionSets aValuePickerinstance associated with this action.- Specified by:
- setPickerin interface- EntityPicker.EntityPickerAction
- Specified by:
- setPickerin interface- ValuePicker.ValuePickerAction
- Overrides:
- setPickerin class- ValueClearAction
- Parameters:
- valuePicker- a- ValuePickerinstance to set
 
- 
getEntityPicker
- 
executepublic void execute()Executes the action.- Specified by:
- executein interface- Action.ExecutableAction
- Overrides:
- executein class- ValueClearAction
 
 
-