|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.javaprog.ui.wizard.DataModel
public class DataModel
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.
DataLookup
Field Summary | |
---|---|
protected Map |
data
Maps identifier keys to DataLookup instances. |
Constructor Summary | |
---|---|
DataModel()
Creates a new data model. |
Method Summary | |
---|---|
Object |
getData(String key)
Returns the value of a previously registered data source. |
void |
registerDataLookup(String key,
DataLookup lookup)
Registers the given data lookup mechanism with this model using the key as identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map data
registerDataLookup(String, DataLookup)
Constructor Detail |
---|
public DataModel()
Method Detail |
---|
public Object getData(String key)
registerDataLookup(String, DataLookup)
public void registerDataLookup(String key, DataLookup lookup)
getData(String)
,
DataLookup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |