|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.monitor.model.JobTreeNode
public class JobTreeNode
This class encapsulates the model of a job to be used in the monitor.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Enumeration<JobTreeNode> |
children()
|
void |
destroy()
Destroy the node. |
boolean |
getAllowsChildren()
|
TreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
JobTreeNode[] |
getChildren()
|
Object |
getComponent()
|
ExplorerContext |
getExplorerContext()
|
IconTip |
getIcon()
|
int |
getIndex(TreeNode child)
|
TreeNode |
getParent()
|
boolean |
isLeaf()
|
boolean |
isVisible()
|
void |
setVisible(boolean visible)
Called when a node is made visible. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void setVisible(boolean visible)
visible - True if visible.public boolean isVisible()
public Object getComponent()
public Enumeration<JobTreeNode> children()
children in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic int getIndex(TreeNode child)
getIndex in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNodepublic String toString()
toString in class Objectpublic IconTip getIcon()
public JobTreeNode[] getChildren()
public void destroy()
ForEachJob and the
JMXClientJob jobs.
public ExplorerContext getExplorerContext()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||