public class NonVetoableProperty extends AbstractProperty
Constructor and Description |
---|
NonVetoableProperty(java.lang.Object sourceBean,
java.lang.String name)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Doesn't add a VetoableChangeListener.
|
boolean |
isVetoable()
Indicates if changes to this property can be vetoed.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Doesn't remove a VetoableChangeListener.
|
void |
setValue(java.lang.Object newValue)
Sets the property value.
|
void |
setValueAndNotifyListeners(java.lang.Object newValue)
Sets the property value.
|
addPropertyChangeListener, clearValue, getName, getSourceBean, getValue, isReporting, notifyListeners, removePropertyChangeListener, setCurrentValue, setReporting
public NonVetoableProperty(java.lang.Object sourceBean, java.lang.String name)
sourceBean
- The source bean of the property.name
- The name of the property.public boolean isVetoable()
isVetoable
in interface Property
isVetoable
in class AbstractProperty
public void setValueAndNotifyListeners(java.lang.Object newValue)
isReporting()
is true.setValueAndNotifyListeners
in interface Property
setValueAndNotifyListeners
in class AbstractProperty
newValue
- The new property value.public void setValue(java.lang.Object newValue)
setValue
in interface Property
setValue
in class AbstractProperty
newValue
- The new property value.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener) throws java.lang.UnsupportedOperationException
addVetoableChangeListener
in interface Property
addVetoableChangeListener
in class AbstractProperty
listener
- The VetoableChangeListener to add.java.lang.UnsupportedOperationException
- This operation is unsupported for this
type of Property. Always thrown.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
removeVetoableChangeListener
in interface Property
removeVetoableChangeListener
in class AbstractProperty
listener
- The VetoableChangeListener to remove.