org.gamenet.swing.controls
Class DataSectionTree.HierarchicalDataSectionableTreeModel

java.lang.Object
  extended byorg.gamenet.swing.controls.DataSectionTree.HierarchicalDataSectionableTreeModel
All Implemented Interfaces:
TreeModel
Enclosing class:
DataSectionTree

static class DataSectionTree.HierarchicalDataSectionableTreeModel
extends Object
implements TreeModel


Field Summary
private  DataSectionable rootDataSectionable
           
private  String rootName
           
 
Constructor Summary
DataSectionTree.HierarchicalDataSectionableTreeModel(String rootName, DataSectionable root)
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
 Object getChild(Object parentNode, int index)
           
 int getChildCount(Object parentNode)
           
private static DataSectionable getDataSectionableForParentAndName(DataSectionable parentDataSectionable, String childSectionName)
           
 int getIndexOfChild(Object parentNode, Object childNode)
           
 Object getRoot()
           
 boolean isLeaf(Object node)
           
 void removeTreeModelListener(TreeModelListener l)
           
 void valueForPathChanged(TreePath path, Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootName

private String rootName

rootDataSectionable

private DataSectionable rootDataSectionable
Constructor Detail

DataSectionTree.HierarchicalDataSectionableTreeModel

public DataSectionTree.HierarchicalDataSectionableTreeModel(String rootName,
                                                            DataSectionable root)
Method Detail

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
Specified by:
valueForPathChanged in interface TreeModel

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Specified by:
addTreeModelListener in interface TreeModel

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Specified by:
removeTreeModelListener in interface TreeModel

getRoot

public Object getRoot()
Specified by:
getRoot in interface TreeModel

getChildCount

public int getChildCount(Object parentNode)
Specified by:
getChildCount in interface TreeModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel

getDataSectionableForParentAndName

private static DataSectionable getDataSectionableForParentAndName(DataSectionable parentDataSectionable,
                                                                  String childSectionName)

getChild

public Object getChild(Object parentNode,
                       int index)
Specified by:
getChild in interface TreeModel

getIndexOfChild

public int getIndexOfChild(Object parentNode,
                           Object childNode)
Specified by:
getIndexOfChild in interface TreeModel