|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Property
Provides support for JavaBean properties -- both vetoable and non-vetoable.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener. |
void |
clearValue()
This clears the current and previous value without notifying listeners |
String |
getName()
Gets the name of the property. |
Object |
getSourceBean()
Gets the source bean of the property. |
Object |
getValue()
Gets the property value. |
boolean |
isReporting()
Indicates if the property is reporting changes. |
boolean |
isVetoable()
Indicates if changes to this property can be vetoed. |
void |
notifyListeners()
Reports changes to the Property. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a VetoableChangeListener. |
void |
setReporting(boolean reportChanges)
Enables or disables the reporting of property changes. |
void |
setValue(Object newValue)
Sets the property value. |
void |
setValueAndNotifyListeners(Object newValue)
Sets the property value. |
| Method Detail |
|---|
Object getSourceBean()
String getName()
Object getValue()
void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to add.void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to remove.
void addVetoableChangeListener(VetoableChangeListener listener)
throws UnsupportedOperationException
listener - The VetoableChangeListener to add.
UnsupportedOperationException - This operation is unsupported for this
type of Property.void removeVetoableChangeListener(VetoableChangeListener listener)
listener - The VetoableChangeListener to remove.boolean isVetoable()
void setValueAndNotifyListeners(Object newValue)
throws PropertyVetoException
isReporting() is true. Will always notify any, registered,
VetoableChangeListener-s.
newValue - The new property value.
PropertyVetoException - A registered VetoableChangeListener objected
to the change. The change was not committed.
void setValue(Object newValue)
throws PropertyVetoException
newValue - The new property value.
PropertyVetoException - A registered VetoableChangeListener objected
to the change. The change was not committed.void setReporting(boolean reportChanges)
reportChanges - Whether to enable or disable property change
reporting.boolean isReporting()
void notifyListeners()
isReporting() is true and the current value of the property
is not equal to the previously-reported value.
void clearValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||