public class AbstractVetoable extends AbstractObservable implements Vetoable
| Modifier and Type | Field and Description |
|---|---|
protected java.beans.VetoableChangeSupport |
vcs |
pcs| Constructor and Description |
|---|
AbstractVetoable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener listener)
Add a VetoableChangeListener for a specific property.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Add a VetoableListener to the listener list.
|
protected void |
fireVetoableChange(java.beans.PropertyChangeEvent event) |
protected void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
java.beans.VetoableChangeListener[] |
getVetoableChangeListeners()
Returns the list of VetoableChangeListeners.
|
java.beans.VetoableChangeListener[] |
getVetoableChangeListeners(java.lang.String propertyName)
Returns an array of all the listeners which have been associated
with the named property.
|
void |
removeVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener listener)
Remove a VetoableChangeListener for a specific property.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Remove a VetoableChangeListener from the listener list.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerpublic void addVetoableChangeListener(@Nullable
java.beans.VetoableChangeListener listener)
Vetoablelistener is null, no exception is thrown and no action
is taken.addVetoableChangeListener in interface Vetoablelistener - The VetoableChangeListener to be addedpublic void removeVetoableChangeListener(@Nullable
java.beans.VetoableChangeListener listener)
Vetoablelistener was added more than once to the same event
source, it will be notified one less time after being removed.
If listener is null, or was never added, no exception is
thrown and no action is taken.removeVetoableChangeListener in interface Vetoablelistener - The VetoableChangeListener to be removed@Nonnull public java.beans.VetoableChangeListener[] getVetoableChangeListeners()
VetoablegetVetoableChangeListeners in interface Vetoablepublic void addVetoableChangeListener(@Nullable
java.lang.String propertyName,
@Nullable
java.beans.VetoableChangeListener listener)
VetoablepropertyName or listener is null, no
exception is thrown and no action is taken.addVetoableChangeListener in interface VetoablepropertyName - The name of the property to listen on.listener - The VetoableChangeListener to be addedpublic void removeVetoableChangeListener(@Nullable
java.lang.String propertyName,
@Nullable
java.beans.VetoableChangeListener listener)
Vetoablelistener was added more than once to the same event
source for the specified property, it will be notified one less time
after being removed.
If propertyName is null, no exception is thrown and no
action is taken.
If listener is null, or was never added for the specified
property, no exception is thrown and no action is taken.removeVetoableChangeListener in interface VetoablepropertyName - The name of the property that was listened on.listener - The VetoableChangeListener to be removed@Nonnull
public java.beans.VetoableChangeListener[] getVetoableChangeListeners(@Nullable
java.lang.String propertyName)
VetoablegetVetoableChangeListeners in interface VetoablepropertyName - The name of the property being listened toVetoableChangeListeners associated with
the named property. If no such listeners have been added,
or if propertyName is null, an empty array is
returned.protected void fireVetoableChange(@Nonnull
java.beans.PropertyChangeEvent event)
throws java.beans.PropertyVetoException
java.beans.PropertyVetoExceptionprotected void fireVetoableChange(@Nonnull
java.lang.String propertyName,
@Nullable
java.lang.Object oldValue,
@Nullable
java.lang.Object newValue)
throws java.beans.PropertyVetoException
java.beans.PropertyVetoException