JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.swing.prefs.keys
Class KeyStrokeTreeTableModel

java.lang.Object
  extended by net.sf.japi.swing.treetable.AbstractTreeTableModel<KeyStrokeRootNode,AbstractSimpleNode<AbstractSimpleNode>>
      extended by net.sf.japi.swing.prefs.keys.KeyStrokeTreeTableModel
All Implemented Interfaces:
TreeTableModel<KeyStrokeRootNode,AbstractSimpleNode<AbstractSimpleNode>>

public class KeyStrokeTreeTableModel
extends AbstractTreeTableModel<KeyStrokeRootNode,AbstractSimpleNode<AbstractSimpleNode>>

TODO

Author:
Christian Hujer

Constructor Summary
KeyStrokeTreeTableModel(List<ActionFactory> factories)
          Create a KeyStrokeTreeTableModel.
 
Method Summary
 AbstractSimpleNode<AbstractSimpleNode> getChild(AbstractSimpleNode<AbstractSimpleNode> parent, int index)
          Returns a child with a certain index.
 int getChildCount(AbstractSimpleNode<AbstractSimpleNode> node)
          Returns the number of available children.
 Class<?> getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number of availible columns.
 String getColumnName(int column)
          Returns the name for column number column.
 Object getValueAt(AbstractSimpleNode<AbstractSimpleNode> node, int column)
          Returns the value to be displayed for node node at column number column.
 
Methods inherited from class net.sf.japi.swing.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, isLeaf, removeTreeModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStrokeTreeTableModel

public KeyStrokeTreeTableModel(List<ActionFactory> factories)
Create a KeyStrokeTreeTableModel.

Method Detail

getChild

public AbstractSimpleNode<AbstractSimpleNode> getChild(AbstractSimpleNode<AbstractSimpleNode> parent,
                                                       int index)
Returns a child with a certain index.

Parameters:
parent - Node to return child for
index - Index of child
Returns:
child node with index from parent or null if no child was found
See Also:
TreeModel.getChild(Object, int)

getChildCount

public int getChildCount(AbstractSimpleNode<AbstractSimpleNode> node)
Returns the number of available children.

Returns:
number of available children
See Also:
TreeModel.getChildCount(Object)

getColumnCount

public int getColumnCount()
Returns the number of availible columns.

Returns:
number of available columns
See Also:
TableModel.getColumnCount()

getColumnName

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

Parameters:
column - Column to get name for
Returns:
name of column
See Also:
TableModel.getColumnName(int)

getValueAt

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

Parameters:
node - Node to get value of
column - Column to get value of
Returns:
object
See Also:
TableModel.getValueAt(int, int)

getColumnClass

public Class<?> getColumnClass(int column)
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeTableModel<KeyStrokeRootNode,AbstractSimpleNode<AbstractSimpleNode>>
Overrides:
getColumnClass in class AbstractTreeTableModel<KeyStrokeRootNode,AbstractSimpleNode<AbstractSimpleNode>>
Parameters:
column - Column to get type for
Returns:
type of column
See Also:
TableModel.getColumnClass(int)

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright