Package ucar.unidata.beans
Class NonVetoableProperty
java.lang.Object
ucar.unidata.beans.AbstractProperty
ucar.unidata.beans.NonVetoableProperty
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
RealReadout.FormatProperty,RealReadout.NameProperty,RealReadout.NumericValueProperty,RealReadout.UnitProperty
Provides support for non-vetoable JavaBean properties.
- Version:
- $Id: NonVetoableProperty.java,v 1.5 2005/05/13 18:28:22 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDoesn't add a VetoableChangeListener.booleanIndicates if changes to this property can be vetoed.voidDoesn't remove a VetoableChangeListener.voidSets the property value.voidsetValueAndNotifyListeners(Object newValue) Sets the property value.Methods inherited from class ucar.unidata.beans.AbstractProperty
addPropertyChangeListener, clearValue, getName, getSourceBean, getValue, isReporting, notifyListeners, removePropertyChangeListener, setCurrentValue, setReporting
-
Constructor Details
-
NonVetoableProperty
Constructs an instance.- Parameters:
sourceBean- The source bean of the property.name- The name of the property.
-
-
Method Details
-
isVetoable
public boolean isVetoable()Indicates if changes to this property can be vetoed.- Specified by:
isVetoablein interfaceProperty- Specified by:
isVetoablein classAbstractProperty- Returns:
- False; always.
-
setValueAndNotifyListeners
Sets the property value. Will notify any listeners if and only ifisReporting()is true.- Specified by:
setValueAndNotifyListenersin interfaceProperty- Specified by:
setValueAndNotifyListenersin classAbstractProperty- Parameters:
newValue- The new property value.
-
setValue
Sets the property value.- Specified by:
setValuein interfaceProperty- Specified by:
setValuein classAbstractProperty- Parameters:
newValue- The new property value.
-
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener) throws UnsupportedOperationException Doesn't add a VetoableChangeListener.- Specified by:
addVetoableChangeListenerin interfaceProperty- Specified by:
addVetoableChangeListenerin classAbstractProperty- Parameters:
listener- The VetoableChangeListener to add.- Throws:
UnsupportedOperationException- This operation is unsupported for this type of Property. Always thrown.
-
removeVetoableChangeListener
Doesn't remove a VetoableChangeListener.- Specified by:
removeVetoableChangeListenerin interfaceProperty- Specified by:
removeVetoableChangeListenerin classAbstractProperty- Parameters:
listener- The VetoableChangeListener to remove.
-