ActionListener, ItemListener, Serializable, Cloneable, EventListener, Action, ListSelectionListenerpublic class ActionMakeDefault extends CertificateAction
See CertificateStoreWithDefault for an explanation of the default certificate.
| Modifier and Type | Field | Description |
|---|---|---|
protected CertificateStoreWithDefault |
store |
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 |
|---|---|
ActionMakeDefault(JFrame parent,
CertificateStoreWithDefault store,
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, valueChangedprotected CertificateStoreWithDefault store
public ActionMakeDefault(JFrame parent, CertificateStoreWithDefault store, 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.