|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.std.util.Stateful<U>
U - the object class to be wrappedpublic class Stateful<U>
Stateful is a wrapper around any object U that keeps track of the instance reference of U and alerts its observers when U is replaced.
| Constructor Summary | |
|---|---|
Stateful(U target)
|
|
| Method Summary | |
|---|---|
U |
getTarget()
|
ObservableEvent |
onChanged()
|
void |
setTarget(U target)
replaces the target reference to U |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stateful(U target)
| Method Detail |
|---|
public U getTarget()
public ObservableEvent onChanged()
public void setTarget(U target)
target - the new target reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||