com.cc.framework.ui.model
Interface TreeGroupDataModel

All Superinterfaces:
DataModel, TreeNodeDataModel
All Known Implementing Classes:
VirtualTreeGroupDataModel

public interface TreeGroupDataModel
extends TreeNodeDataModel

Data model for the nodes of a tree

Since:
1.0
Version:
$Revision: 1.7 $
Author:
Harald Schulz

Method Summary
 void addChild(TreeNodeDataModel child)
          Adds a new node to the child list Note: This method will also set the parent link of the new child node to this
 TreeNodeDataModel getChild(int index)
          Returns the node for the specified index
 int size()
          Returns the number of children for this node return -2 when the node has children but the user is not allowed to open the node.
 
Methods inherited from interface com.cc.framework.ui.model.TreeNodeDataModel
getParent, getParentKey, getUniqueKey, setParent
 

Method Detail

getChild

public TreeNodeDataModel getChild(int index)
Returns the node for the specified index

Parameters:
index - The zero based index
Returns:
A tree node.

addChild

public void addChild(TreeNodeDataModel child)
Adds a new node to the child list

Note: This method will also set the parent link of the new child node to this

Parameters:
child - Child node

size

public int size()
Returns the number of children for this node

Returns:
The number of child nodes.


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.