net.israfil.foundation.valuemodel
Interface Observable

All Known Subinterfaces:
MutableValue<E>, Value<E>
All Known Implementing Classes:
ValueHolder

public interface Observable

An interface for objects that can notify observers of changes to itself. The changing object should call the provided callback signature, with the parameter being the object that was changed in its new state.

Version:
$Revision: 129 $
Author:
Christian Edward Gruber, Latest: $Author: cgruber $

Method Summary
 void addObservers(java.lang.String callback, java.lang.Object... observers)
          Add an observer to this object, with a callback method spec that will be invoked upon a data change.
 void removeObservers(java.lang.Object... observers)
          Remove observer from observable object.
 

Method Detail

addObservers

void addObservers(java.lang.String callback,
                  java.lang.Object... observers)
Add an observer to this object, with a callback method spec that will be invoked upon a data change. The callback method should contain only one Object parameter which will be the sender when the callback is invoked.


removeObservers

void removeObservers(java.lang.Object... observers)
Remove observer from observable object.



Copyright © 2006-2008. All Rights Reserved.