net.javaprog.ui.wizard
Class DataModel
java.lang.Object
|
+--net.javaprog.ui.wizard.DataModel
- public class DataModel
- extends Object
Provides a data container that can be shared by steps aiming to
collect data. A step can register a data source (such as a text field)
with this data model enabling other steps to look up the value of
that data source.
- See Also:
DataLookup
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected final Hashtable data
DataModel
public DataModel()
getData
public Object getData(String key)
- Returns the value of a previously registered data source. This
method forwards exceptions thrown by DataLookup.lookupData().
- See Also:
registerDataLookup(String, DataLookup)
registerDataLookup
public void registerDataLookup(String key,
DataLookup lookup)
- Registers the given data lookup mechanism with this model using
the key as identifier.
- See Also:
getData(String),
DataLookup