se.datadosen.component
Class VetoableAction
java.lang.Object
javax.swing.AbstractAction
se.datadosen.component.VetoableAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public abstract class VetoableAction
- extends javax.swing.AbstractAction
Action whos setEnabled method can be vetoed by listeners
Enables a clean way to handle the enabled state of actions
when the enabled state is dependent on multiple parts of a program
- See Also:
- Serialized Form
|
Field Summary |
protected java.beans.VetoableChangeSupport |
vetoSupport
|
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
vetoSupport
protected java.beans.VetoableChangeSupport vetoSupport
VetoableAction
public VetoableAction(java.lang.String name,
javax.swing.Icon icon)
VetoableAction
public VetoableAction(java.lang.String name)
VetoableAction
public VetoableAction()
addVetoableChangeListener
public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
removeVetoableChangeListener
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
setEnabled
public void setEnabled(boolean newValue)
- Specified by:
setEnabled in interface javax.swing.Action- Overrides:
setEnabled in class javax.swing.AbstractAction