public abstract class VetoSystemOption extends SystemOption
SystemOption
by providing support for veto listeners.Constructor and Description |
---|
VetoSystemOption()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addVetoableChangeListener(VetoableChangeListener list)
Add a new veto listener to all instances of this exact class.
|
void |
fireVetoableChange(String name,
Object oldValue,
Object newValue)
Fire a property change event.
|
void |
removeVetoableChangeListener(VetoableChangeListener list)
Remove a veto listener from all instances of this exact class.
|
clearSharedData, displayName, firePropertyChange, getHelpCtx, getName, isReadExternal, isWriteExternal, readExternal, reset, writeExternal
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, getLock, getProperty, hashCode, initialize, putProperty, putProperty, removeNotify, removePropertyChangeListener, writeReplace
public final void addVetoableChangeListener(VetoableChangeListener list)
list
- the listener to addpublic final void removeVetoableChangeListener(VetoableChangeListener list)
list
- the listener to removepublic final void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException
name
- the name of the propertyoldValue
- the old valuenewValue
- the new valuePropertyVetoException
- if the change is vetoed