public class SelectAction extends AbstractAction
This action is automatically added to a screen if it is open via the openLookup()
method.
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.BeforeActionPerformedHandler, Action.DisabledWhenScreenReadOnly, Action.ExecutableAction, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected AbstractLookup |
window |
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
SelectAction(AbstractLookup window) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component to execute the action.
|
protected LookupComponent |
getLookupComponent() |
protected java.util.Collection |
getSelectedItems(LookupComponent lookupComponent) |
protected void |
handleSelection() |
protected void |
removeListeners(java.util.Collection selected) |
protected boolean |
validate() |
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombination, setVisible
protected AbstractLookup window
public SelectAction(AbstractLookup window)
public void actionPerform(Component component)
Action
component
- invoking componentprotected java.util.Collection getSelectedItems(LookupComponent lookupComponent)
protected boolean validate()
protected LookupComponent getLookupComponent()
protected void removeListeners(java.util.Collection selected)
protected void handleSelection()