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 TypeMethodDescriptionvoid
Doesn't add a VetoableChangeListener.boolean
Indicates if changes to this property can be vetoed.void
Doesn't remove a VetoableChangeListener.void
Sets the property value.void
setValueAndNotifyListeners
(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:
isVetoable
in interfaceProperty
- Specified by:
isVetoable
in classAbstractProperty
- Returns:
- False; always.
-
setValueAndNotifyListeners
Sets the property value. Will notify any listeners if and only ifisReporting()
is true.- Specified by:
setValueAndNotifyListeners
in interfaceProperty
- Specified by:
setValueAndNotifyListeners
in classAbstractProperty
- Parameters:
newValue
- The new property value.
-
setValue
Sets the property value.- Specified by:
setValue
in interfaceProperty
- Specified by:
setValue
in classAbstractProperty
- Parameters:
newValue
- The new property value.
-
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener) throws UnsupportedOperationException Doesn't add a VetoableChangeListener.- Specified by:
addVetoableChangeListener
in interfaceProperty
- Specified by:
addVetoableChangeListener
in 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:
removeVetoableChangeListener
in interfaceProperty
- Specified by:
removeVetoableChangeListener
in classAbstractProperty
- Parameters:
listener
- The VetoableChangeListener to remove.
-