@StudioAction(target="com.haulmont.cuba.gui.components.PickerField",
description="Clears the picker field value")
@ActionType(value="picker_clear")
public class ClearAction
extends io.jmix.ui.action.entitypicker.EntityClearAction
implements PickerField.PickerFieldAction
Should be defined for PickerField or its subclass in a screen XML descriptor.
io.jmix.ui.action.BaseAction.EnabledRuleio.jmix.ui.action.Action.ActionPerformedEvent, io.jmix.ui.action.Action.AdjustWhenScreenReadOnly, io.jmix.ui.action.Action.ExecutableAction, io.jmix.ui.action.Action.HasPrimaryState, io.jmix.ui.action.Action.HasSecurityConstraint, io.jmix.ui.action.Action.HasTarget, io.jmix.ui.action.Action.MainTabSheetAction, io.jmix.ui.action.Action.ScreenOpeningAction, io.jmix.ui.action.Action.SecuredAction, io.jmix.ui.action.Action.Status| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
componentProperties, editable, icons, messages, valuePicker| Constructor and Description |
|---|
ClearAction() |
ClearAction(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
editableChanged(PickerField pickerField,
boolean editable) |
void |
setPickerField(PickerField pickerField) |
execute, getEntityPicker, setEntityPicker, setPickeractionPerform, afterPropertiesSet, editableChanged, isEditable, setEditable, setIcons, setMessages, setUiComponentPropertiesaddActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutaddOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteditableChanged, setEntityPickeraddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisiblepublic static final java.lang.String ID
public ClearAction()
public ClearAction(java.lang.String id)
public void setPickerField(@Nullable
PickerField pickerField)
setPickerField in interface PickerField.PickerFieldActionpublic void editableChanged(PickerField pickerField, boolean editable)
editableChanged in interface PickerField.PickerFieldAction