Constructor and Description |
---|
JobTreeNode(ExplorerModel explorerModel,
JobTreeModel model)
Constructor for the root node.
|
JobTreeNode(ExplorerModel explorerModel,
JobTreeModel model,
Executor executor,
ExplorerContextFactory contextFactory)
Constructor for testing so we can change the
Executor and
ExplorerContextFactory . |
JobTreeNode(JobTreeNode parent,
Object node)
Constructor for child nodes.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<JobTreeNode> |
children() |
void |
destroy()
Destroy the node.
|
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
JobTreeNode[] |
getChildren() |
Object |
getComponent() |
ExplorerContext |
getExplorerContext() |
ImageIcon |
getIcon() |
int |
getIndex(TreeNode child) |
TreeNode |
getParent() |
boolean |
isLeaf() |
boolean |
isVisible() |
void |
setVisible(boolean visible)
Called when a node is made visible.
|
String |
toString() |
public JobTreeNode(ExplorerModel explorerModel, JobTreeModel model)
explorerModel
- The ExplorerModel.model
- The JobTreeModel.public JobTreeNode(ExplorerModel explorerModel, JobTreeModel model, Executor executor, ExplorerContextFactory contextFactory)
Executor
and
ExplorerContextFactory
.explorerModel
- model
- executor
- contextFactory
- public JobTreeNode(JobTreeNode parent, Object node)
parent
- The parent node.node
- The structure node this is modelling.public void setVisible(boolean visible)
visible
- True if visible.public boolean isVisible()
public Object getComponent()
public Enumeration<JobTreeNode> children()
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public TreeNode getChildAt(int index)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public ImageIcon getIcon()
public JobTreeNode[] getChildren()
public void destroy()
ForEachJob
and the
JMXClientJob
jobs.public ExplorerContext getExplorerContext()