|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.miginfocom.property.Property<T>
com.miginfocom.property.PropertyBean<T>
public class PropertyBean<T>
A property that should be used as a holder of a bean that holds other properties.
| Field Summary |
|---|
| Fields inherited from class com.miginfocom.property.Property |
|---|
UNINITIALIZED |
| Constructor Summary | |
|---|---|
PropertyBean()
|
|
PropertyBean(T bean)
|
|
| Method Summary | |
|---|---|
protected T |
create()
Lazily creates the value at first use if it was not set in the constructor. |
protected void |
initNotify()
Called when the property has been properly initialized. |
void |
propertyChange(PropertyEvent e)
|
Result<T> |
set(T value)
Set the value of this property. |
| Methods inherited from class com.miginfocom.property.Property |
|---|
addPropertyListener, addPropertyListener, checkInit, cloneObject, createInfo, get, getBean, getInfo, getInternal, getName, init, isNull, makeUnmodifiable, removePropertyListener, setInternal, toString, writeReplace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyBean()
public PropertyBean(T bean)
| Method Detail |
|---|
protected void initNotify()
PropertyCan be overridden to do property specific initialization.
initNotify in class Property<T>protected T create()
Propertynull.
Should be overridden by sub classes to return default values.
It is a requirement that this method is only called a maximum of one time for an object instance.
create in class Property<T>null by default.public Result<T> set(T value)
PropertyInull.
set in interface PropertyI<T>set in class Property<T>value - The value.
Result.ok() if not special
logic for value checking is made.public void propertyChange(PropertyEvent e)
propertyChange in interface PropertyListenere - The event object. Never null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||