org.zkoss.zkdemo.test2.tree
Class HostTreeModel
java.lang.Object
org.zkoss.zul.AbstractTreeModel
org.zkoss.zkdemo.test2.tree.HostTreeModel
- All Implemented Interfaces:
- java.io.Serializable, TreeModel
public class HostTreeModel
- extends AbstractTreeModel
- Author:
- Dennis.Chen
- See Also:
- Serialized Form
|
Method Summary |
void |
addProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns the child of parent at index index in the parent's child array. |
int |
getChildCount(java.lang.Object parent)
Returns the number of children of parent. |
boolean |
isLeaf(java.lang.Object node)
Returns true if node is a leaf. |
void |
removeProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
|
void |
updateProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostTreeModel
public HostTreeModel()
- Constructor
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
- Description copied from interface:
TreeModel
- Returns the child of parent at index index in the parent's child array.
- Parameters:
parent - a node in the tree, obtained from this data source
- Returns:
- the child of parent at index index
getChildCount
public int getChildCount(java.lang.Object parent)
- Description copied from interface:
TreeModel
- Returns the number of children of parent.
- Parameters:
parent - a node in the tree, obtained from this data source
- Returns:
- the number of children of the node parent
isLeaf
public boolean isLeaf(java.lang.Object node)
- Description copied from interface:
TreeModel
- Returns true if node is a leaf.
- Parameters:
node - a node in the tree, obtained from this data source
- Returns:
- true if node is a leafs
updateProcessType
public void updateProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
addProcessType
public void addProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
removeProcessType
public void removeProcessType(int groupindex,
int hostindex,
int processindex,
java.lang.String type)
Copyright © 2005-2009 Potix Corporation. All Rights Reserved.