ActionListener, ItemListener, Serializable, Cloneable, EventListener, Action, ListSelectionListenerpublic class ActionViewRequest extends CertificateAction
Shows the "request new" wizard from ActionRequest, but this
action just views the form of the currently selected certificate and
doesn't create a new one.
The currently shown step is derived from its state. Alternatively, the action can be invoked with a number (as string) in the actioncommand to display a specified step.
ActionRequest,
Serialized FormchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICONcertificatePair, isWantEnabled, logger, parent, selection| Constructor | Description |
|---|---|
ActionViewRequest(JFrame parent,
CertificateSelection s) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(ActionEvent e) |
The actual handler when the action is performed
|
boolean |
wantsEnabled() |
Returns whether this action should be enabled or not.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerfindWindow, findWindow, getCertificatePair, itemStateChanged, setCertificatePair, setEnabled, valueChangedpublic ActionViewRequest(JFrame parent, CertificateSelection s)
public boolean wantsEnabled()
CertificateActionThis is called when the selection changes and updates the enabled-state. It is not possible to just override the AbstractAction.isEnabled() method Swing gets confused about the enabled-ness of connected components when AbstractAction.isEnabled() is modified. By default it just returns isEnabled(), so the behaviour is unchanged from an ordinary Action.
wantsEnabled in class CertificateActionpublic void actionPerformed(ActionEvent e)
CertificateActionactionPerformed in interface ActionListeneractionPerformed in class CertificateActionCopyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.