ActionListener
, ItemListener
, Serializable
, Cloneable
, EventListener
, Action
, ListSelectionListener
public class ActionInstall extends CertificateAction
changeSupport, 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 |
---|---|
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, removePropertyChangeListener
findWindow, findWindow, getCertificatePair, itemStateChanged, setCertificatePair, setEnabled, valueChanged
public ActionInstall(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.