public class DataContextWrapper extends java.lang.Object implements DataContext, UserDataHolder
EMPTY_CONTEXT
Constructor and Description |
---|
DataContextWrapper(DataContext delegate) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
<T> T |
getUserData(Key<T> key) |
<T> void |
putUserData(Key<T> key,
T value)
Add a new user data value to this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData
public DataContextWrapper(DataContext delegate)
public java.lang.Object getData(java.lang.String dataId)
DataContext
PlatformDataKeys
class.getData
in interface DataContext
dataId
- the data identifier for which the value is requested.public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
public <T> void putUserData(Key<T> key, T value)
UserDataHolder
putUserData
in interface UserDataHolder