@Component(value="cuba_ClearAction") @Scope(value="prototype") public static class PickerField.ClearAction extends PickerField.StandardAction
In order to provide your own implementation globally, create a subclass and register it in web-spring.xml
,
for example:
<bean id="cuba_ClearAction" class="com.company.sample.gui.MyClearAction" scope="prototype"/>Also, use
create()
static methods instead of constructors when creating the action programmatically.io.jmix.ui.action.BaseAction.EnabledRule
io.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 |
NAME |
editable, pickerField, properties
Constructor and Description |
---|
ClearAction(PickerField pickerField) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(io.jmix.ui.component.Component component) |
static PickerField.ClearAction |
create(PickerField pickerField) |
editableChanged, getPropertyDatasource, isEditable, setEditable, setPickerField
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, setEntityPicker
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setShortcut, setShortcutCombination
public ClearAction(PickerField pickerField)
public static PickerField.ClearAction create(PickerField pickerField)
public void actionPerform(io.jmix.ui.component.Component component)
actionPerform
in interface io.jmix.ui.action.Action
actionPerform
in class io.jmix.ui.action.BaseAction