ActionListener
, ItemListener
, Serializable
, Cloneable
, EventListener
, Action
, ListSelectionListener
public 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, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
certificatePair, 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, removePropertyChangeListener
findWindow, findWindow, getCertificatePair, itemStateChanged, setCertificatePair, setEnabled, valueChanged
public ActionViewRequest(JFrame parent, CertificateSelection s)
public boolean wantsEnabled()
CertificateAction
This 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 CertificateAction
public void actionPerformed(ActionEvent e)
CertificateAction
actionPerformed
in interface ActionListener
actionPerformed
in class CertificateAction
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.