@StudioAction(target="io.jmix.ui.component.EntityPicker", description="Clears the entity picker value") @ActionType(value="entity_clear") public class EntityClearAction extends ValueClearAction implements EntityPicker.EntityPickerAction
Should be defined for EntityPicker
or its subclass in a screen XML descriptor.
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
componentProperties, editable, icons, messages, valuePicker
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_EDITABLE
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
EntityClearAction() |
EntityClearAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
protected EntityPicker |
getEntityPicker() |
void |
setEntityPicker(EntityPicker entityPicker) |
void |
setPicker(ValuePicker valuePicker)
Sets a
ValuePicker instance associated with this action. |
actionPerform, afterPropertiesSet, editableChanged, isEditable, setEditable, setIcons, setMessages, setUiComponentProperties
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
editableChanged, isEditable
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
public EntityClearAction()
public EntityClearAction(java.lang.String id)
public void setEntityPicker(@Nullable EntityPicker entityPicker)
setEntityPicker
in interface EntityPicker.EntityPickerAction
public void setPicker(@Nullable ValuePicker valuePicker)
ValuePicker.ValuePickerAction
ValuePicker
instance associated with this action.setPicker
in interface EntityPicker.EntityPickerAction
setPicker
in interface ValuePicker.ValuePickerAction
setPicker
in class ValueClearAction
valuePicker
- a ValuePicker
instance to setprotected EntityPicker getEntityPicker()
public void execute()
execute
in interface Action.ExecutableAction
execute
in class ValueClearAction