org.sape.carbon.services.console
Class ObjectTreeModel

java.lang.Object
  |
  +--org.sape.carbon.services.swing.treetable.AbstractTreeTableModel
        |
        +--org.sape.carbon.services.console.ObjectTreeModel
All Implemented Interfaces:
TreeModel, TreeTableModel

public class ObjectTreeModel
extends AbstractTreeTableModel

This is the template for Classes.

Since:
carbon 1.0
Version:
$Revision: 1.10 $($Author: ghinkl $ / $Date: 2003/04/04 01:11:49 $)
Copyright 2002 Sapient
Author:
Greg Hinkle, January 2002

Nested Class Summary
static class ObjectTreeModel.ArrayNode
           
static class ObjectTreeModel.ArrayNodeConfigurationValue
           
static class ObjectTreeModel.ArrayNodeDataValue
           
static class ObjectTreeModel.ConfigNode
           
static class ObjectTreeModel.DataNode
           
static interface ObjectTreeModel.TreeNode
           
 
Field Summary
private static String[] COLUMN_NAMES
           
private  Configuration config
           
private  ObjectTreeModel.TreeNode rootNode
           
 
Fields inherited from class org.sape.carbon.services.swing.treetable.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
ObjectTreeModel(Configuration config)
           
 
Method Summary
static String capitalize(String string)
           
 Object getChild(Object obj, int param)
           
 int getChildCount(Object obj)
           
 Object[] getChildren(Object obj)
           
 Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 String getColumnName(int column)
          Returns the name for column number column.
 Object getValueAt(Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(Object node, int column)
          By default, make the column with the Tree in it the only editable one.
 void setValueAt(Object aValue, Object node, int column)
          Sets the value for node node, at column number column.
 
Methods inherited from class org.sape.carbon.services.swing.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_NAMES

private static String[] COLUMN_NAMES

config

private Configuration config

rootNode

private ObjectTreeModel.TreeNode rootNode
Constructor Detail

ObjectTreeModel

public ObjectTreeModel(Configuration config)
Method Detail

getChild

public Object getChild(Object obj,
                       int param)

getChildCount

public int getChildCount(Object obj)

getChildren

public Object[] getChildren(Object obj)

getColumnCount

public int getColumnCount()
Returns the number ofs availible column.


getColumnName

public String getColumnName(int column)
Returns the name for column number column.


getValueAt

public Object getValueAt(Object node,
                         int column)
Returns the value to be displayed for node node, at column number column.


isCellEditable

public boolean isCellEditable(Object node,
                              int column)
Description copied from class: AbstractTreeTableModel
By default, make the column with the Tree in it the only editable one. Making this column editable causes the JTable to forward mouse and keyboard events in the Tree column to the underlying JTree.

Specified by:
isCellEditable in interface TreeTableModel
Overrides:
isCellEditable in class AbstractTreeTableModel

getColumnClass

public Class getColumnClass(int column)
Description copied from interface: TreeTableModel
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeTableModel
Overrides:
getColumnClass in class AbstractTreeTableModel

setValueAt

public void setValueAt(Object aValue,
                       Object node,
                       int column)
Description copied from interface: TreeTableModel
Sets the value for node node, at column number column.

Specified by:
setValueAt in interface TreeTableModel
Overrides:
setValueAt in class AbstractTreeTableModel

capitalize

public static String capitalize(String string)


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.