org.geotoolkit.gui.swing.tree
Interface TreeTableNode

All Superinterfaces:
TreeNode
All Known Implementing Classes:
MetadataTreeNode

public interface TreeTableNode
extends TreeNode

Defines the requirements for an object that can be used as a tree node in a JXTreeTable. This interface is used as a placeholder for the TreeTableNode interface defined in SwingX, in order to identify the code where we would use the later interface if we were allowed to introduce SwingX dependencies.

The first dependency to SwingX appears in the geotk-widgets-swing module, which provides an adapter from this interface to the SwingX tree table model.

Since:
3.04
Version:
3.04
Author:
Martin Desruisseaux (Geomatys)
See Also:
JXTreeTable, TreeTableModelAdapter
Module:
utility/geotk-utility (download)    View source code for this class

Method Summary
 Class<?> getColumnClass(int column)
          Returns the most specific superclass of values that can be stored in the given column.
 int getColumnCount()
          Returns the number of columns supported by this TreeTableNode.
 Object getValueAt(int column)
          Gets the value for this node that corresponds to a particular tabular column.
 boolean isEditable(int column)
          Determines whether the specified column is editable.
 void setValueAt(Object value, int column)
          Sets the value for the given column.
 
Methods inherited from interface TreeNode
children, getUserObject, toString
 
Methods inherited from interface TreeNode
getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

getColumnCount

int getColumnCount()
Returns the number of columns supported by this TreeTableNode.

Returns:
The number of columns this node supports.

getColumnClass

Class<?> getColumnClass(int column)
Returns the most specific superclass of values that can be stored in the given column.

Parameters:
column - The column to query.
Returns:
The most specific superclass of legal values in the queried column.
Throws:
IndexOutOfBoundsException - If the given column is not a valid column index.

getValueAt

Object getValueAt(int column)
Gets the value for this node that corresponds to a particular tabular column.

Parameters:
column - The column to query.
Returns:
The value for the queried column.
Throws:
IndexOutOfBoundsException - If the given column is not a valid column index.

setValueAt

void setValueAt(Object value,
                int column)
Sets the value for the given column.

Parameters:
value - The value to set.
column - The column to set the value on.
Throws:
IndexOutOfBoundsException - If the given column is not a valid column index.

isEditable

boolean isEditable(int column)
Determines whether the specified column is editable.

Parameters:
column - The column to query.
Returns:
true if the column is editable, false otherwise.
Throws:
IndexOutOfBoundsException - If the given column is not a valid column index.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.