|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.impl.data.AbstractPropertyData | +--org.joda.property.impl.data.UnmodifiablePropertyData
Derived property data implementation which gets a piece of unmodifiable data.
Subclasses will typically derive their data from other properties on the parent Property. To fire the correct events when those properties change, call addDependentOn() from the initParentCreated() method.
Constructor Summary | |
UnmodifiablePropertyData()
Constructor |
Method Summary | |
void |
addDependentOn(Property property)
Add a property that this property is dependent on. |
abstract java.lang.Object |
get()
Get the value of the property. |
boolean |
isModifiable()
Is the property currently modifiable. |
boolean |
isReadOnly()
Is the property permanently unmodifiable. |
void |
set(java.lang.Object obj)
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. |
Methods inherited from class org.joda.property.impl.data.AbstractPropertyData |
addPropertyChangeListener, bean, firePropertyChange, firePropertyChange, initPropertyDataCreated, property, removePropertyChangeListener, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.joda.property.impl.PropertyData |
equals, hashCode |
Constructor Detail |
public UnmodifiablePropertyData()
Method Detail |
public void addDependentOn(Property property)
property
- the property that this depends onpublic abstract java.lang.Object get()
public final void set(java.lang.Object obj)
PropertyData
obj
- an Object to storePropertyData.setModifiable(boolean)
public final boolean isModifiable()
PropertyData
PropertyData.isModifiable()
public final void setModifiable(boolean modifiable)
PropertyData
modifiable
- true if object should be modifiablePropertyData.setModifiable(boolean)
public final boolean isReadOnly()
PropertyData
PropertyData.isReadOnly()
public final void setReadOnly()
PropertyData
PropertyData.setReadOnly()
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |