public interface Property
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a VetoableChangeListener.
|
void |
clearValue()
This clears the current and previous value without notifying listeners
|
java.lang.String |
getName()
Gets the name of the property.
|
java.lang.Object |
getSourceBean()
Gets the source bean of the property.
|
java.lang.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(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a VetoableChangeListener.
|
void |
setReporting(boolean reportChanges)
Enables or disables the reporting of property changes.
|
void |
setValue(java.lang.Object newValue)
Sets the property value.
|
void |
setValueAndNotifyListeners(java.lang.Object newValue)
Sets the property value.
|
java.lang.Object getSourceBean()
java.lang.String getName()
java.lang.Object getValue()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to add.void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to remove.void addVetoableChangeListener(java.beans.VetoableChangeListener listener) throws java.lang.UnsupportedOperationException
listener
- The VetoableChangeListener to add.java.lang.UnsupportedOperationException
- This operation is unsupported for this
type of Property.void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The VetoableChangeListener to remove.boolean isVetoable()
void setValueAndNotifyListeners(java.lang.Object newValue) throws java.beans.PropertyVetoException
isReporting()
is true. Will always notify any, registered,
VetoableChangeListener-s.newValue
- The new property value.java.beans.PropertyVetoException
- A registered VetoableChangeListener objected
to the change. The change was not committed.void setValue(java.lang.Object newValue) throws java.beans.PropertyVetoException
newValue
- The new property value.java.beans.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()