ActionListener, ItemListener, Serializable, Cloneable, EventListener, Action, ListSelectionListenerpublic class ActionInstall extends CertificateAction
changeSupport, 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 |
|---|---|
ActionInstall(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 ActionInstall(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.