| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.xwing.AbstractSourceSink
net.sourceforge.xwing.FilteringSourceSink
A SourceSink that gets and sets its values via another underlying SourceSink. FilteringSourceSink provides hooks for derived classes to transform the value between its own get/set interface and that of the underlying SourceSink. FilteringSourceSink is used as a base class for any SourceSink that provides some specific filtering behavior.
| Constructor Summary | |
| FilteringSourceSink(SourceSink srcSink)Create a new FilteringSourceSink | |
| Method Summary | |
|  Object | get()Retrieve the value from the underlying SourceSink after passing it through the readFilter method. | 
| protected abstract  Object | readFilter(Object value)Transform a value on its way out from the underlying SourceSink. | 
|  void | set(Object value)Set the value in the underlying SourceSink after passing it through the writeFilter method. | 
| protected abstract  Object | writeFilter(Object value)Transform a value on its way into the underlying SourceSink. | 
| Methods inherited from class net.sourceforge.xwing.AbstractSourceSink | 
| addChangeListener, fireStateChanged, removeChangeListener | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public FilteringSourceSink(SourceSink srcSink)
srcSink - The underlying SourceSink.| Method Detail | 
public Object get()
public void set(Object value)
value - The value to be stored. In general, if a value
 is stored via set(), the value retrieved by a subsequent
 get() call will equal the set value as defined by the value's
 equals() method.protected abstract Object readFilter(Object value)
value - The value read from the underlying SourceSink
protected abstract Object writeFilter(Object value)
value - The value passed in by the caller of
 this SourceSink's set() method.
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||