|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.beans.AbstractProperty
ucar.unidata.beans.NonVetoableProperty
public class NonVetoableProperty
Provides support for non-vetoable JavaBean properties.
| Constructor Summary | |
|---|---|
NonVetoableProperty(Object sourceBean,
String name)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
addVetoableChangeListener(VetoableChangeListener listener)
Doesn't add a VetoableChangeListener. |
boolean |
isVetoable()
Indicates if changes to this property can be vetoed. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Doesn't remove a VetoableChangeListener. |
void |
setValue(Object newValue)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonVetoableProperty(Object sourceBean,
String name)
sourceBean - The source bean of the property.name - The name of the property.| Method Detail |
|---|
public boolean isVetoable()
isVetoable in interface PropertyisVetoable in class AbstractPropertypublic void setValueAndNotifyListeners(Object newValue)
isReporting() is true.
setValueAndNotifyListeners in interface PropertysetValueAndNotifyListeners in class AbstractPropertynewValue - The new property value.public void setValue(Object newValue)
setValue in interface PropertysetValue in class AbstractPropertynewValue - The new property value.
public void addVetoableChangeListener(VetoableChangeListener listener)
throws UnsupportedOperationException
addVetoableChangeListener in interface PropertyaddVetoableChangeListener in class AbstractPropertylistener - The VetoableChangeListener to add.
UnsupportedOperationException - This operation is unsupported for this
type of Property. Always thrown.public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener in interface PropertyremoveVetoableChangeListener in class AbstractPropertylistener - The VetoableChangeListener to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||