public interface ExplorerContext
A unique context will exist for each node in the hierarchy but where as the model has specific information about the node in the tree - it's children, is it visible etc, the context contains ancillary information about the nodes environment.
Modifier and Type | Method and Description |
---|---|
ExplorerContext |
addChild(java.lang.Object child)
Add a child context.
|
ExplorerContext |
getParent()
Get the parent context of this context.
|
java.lang.Object |
getThisComponent()
Get the component this is the context for.
|
ThreadManager |
getThreadManager() |
java.lang.Object |
getValue(java.lang.String key)
Get a value from the context.
|
void |
setValue(java.lang.String key,
java.lang.Object value)
Set a value in the context.
|
java.lang.Object getThisComponent()
ExplorerContext addChild(java.lang.Object child)
child
- The component the child is for.ThreadManager getThreadManager()
ExplorerContext getParent()
void setValue(java.lang.String key, java.lang.Object value)
key
- An identifier for the value.value
- The value.java.lang.Object getValue(java.lang.String key)
key
- The identifier.