@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.BaseAction.EnabledRuleAction.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAware| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE| Constructor and Description |
|---|
ClearAction(PickerField pickerField) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerform(Component component)
Invoked by owning component when an action occurs.
|
static PickerField.ClearAction |
create(PickerField pickerField) |
setEditableaddEnabledRule, getTarget, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setTarget, setVisible, setVisibleByUiPermissions, withCaption, withDescription, withHandler, withIcon, withShortcutaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombinationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setShortcut, setShortcutCombinationpublic ClearAction(PickerField pickerField)
public static PickerField.ClearAction create(PickerField pickerField)
public void actionPerform(Component component)
ActionactionPerform in interface ActionactionPerform in class BaseActioncomponent - invoking component