|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PropertyData defines the storage mechanism for a property. The default implementation is to store data as an attribute, however alternative implementations that use reflection or derive the value from other properties are possible.
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to the list of those receiving change events. |
boolean |
equals(java.lang.Object anotherObject)
Is this property data equal to another. |
void |
firePropertyChange(java.beans.PropertyChangeEvent event)
Fire a value changed event for the property. |
java.lang.Object |
get()
Get the value of the property. |
int |
hashCode()
Get the hashCode for the data. |
boolean |
isModifiable()
Is the property currently modifiable. |
boolean |
isReadOnly()
Is the property permanently unmodifiable. |
Property |
property()
Get the property this data belongs to. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove the specified listener from the list currently receiving change events. |
void |
set(java.lang.Object value)
Set the value of the property. |
void |
setModifiable(boolean modifiable)
Set the flag to indicate if the object is currently modifiable. |
void |
setReadOnly()
Set the property permanently unmodifiable. |
java.lang.String |
toString()
Get a debugging string. |
Method Detail |
public Property property()
public java.lang.Object get()
public void set(java.lang.Object value)
value
- an Object to storepublic boolean isModifiable()
public void setModifiable(boolean modifiable)
modifiable
- true if object should be modifiablepublic boolean isReadOnly()
public void setReadOnly()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a listener to add to the listpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a listener to remove from the listpublic void firePropertyChange(java.beans.PropertyChangeEvent event)
event
- the event to sendpublic boolean equals(java.lang.Object anotherObject)
equals
in class java.lang.Object
anotherObject
- another object to compare this one to
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |