public class ExplorerContextImpl extends java.lang.Object implements 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 visable etc, the context contains ancillary informaton about the nodes environment.
Modifier and Type | Field and Description |
---|---|
static ExplorerContextFactory |
FACTORY |
Constructor and Description |
---|
ExplorerContextImpl(ExplorerModel explorerModel)
Constructor for the top level context.
|
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.
|
public static final ExplorerContextFactory FACTORY
public ExplorerContextImpl(ExplorerModel explorerModel)
public ExplorerContext addChild(java.lang.Object child)
ExplorerContext
addChild
in interface ExplorerContext
child
- The component the child is for.public java.lang.Object getThisComponent()
ExplorerContext
getThisComponent
in interface ExplorerContext
public ThreadManager getThreadManager()
getThreadManager
in interface ExplorerContext
public ExplorerContext getParent()
ExplorerContext
getParent
in interface ExplorerContext
public java.lang.Object getValue(java.lang.String key)
ExplorerContext
getValue
in interface ExplorerContext
key
- The identifier.public void setValue(java.lang.String key, java.lang.Object value)
ExplorerContext
setValue
in interface ExplorerContext
key
- An identifier for the value.value
- The value.