com.levigo.util.swing.flextree
Interface TreeColumnProvider

All Superinterfaces:
TreeModule
All Known Subinterfaces:
EditableTreeColumnProvider

public interface TreeColumnProvider
extends TreeModule

A TreeModule providing TreeTable columns. This module aspect is only ever used by FlexibleTreeTables. The FlexibleTree simply ignores it.


Method Summary
 Class<?> getColumnClass(String columnID)
          Return the class of the column for the given column ID.
 List<String> getColumnIDs()
          Return the list of column IDs.
 String getColumnName(String columnID)
          Return the name of the column for the given column ID.
 Object getValueAt(TreePath path, String columnID)
          Return the value for the cell defined by the given tree path and the given column ID.
 

Method Detail

getColumnIDs

List<String> getColumnIDs()
Return the list of column IDs. All columns provided by the modules of a FlexTreeTable which share the same column ID are represented as a single column.

Returns:

getColumnName

String getColumnName(String columnID)
Return the name of the column for the given column ID. Caveat: if more than one tree module provides a name for the column with the given ID, the name provided by the first module is used.

Parameters:
columnID -
Returns:

getColumnClass

Class<?> getColumnClass(String columnID)
Return the class of the column for the given column ID. Caveat: if more than one tree module provides a class for the column with the given ID, the class provided by the first module is used.

Parameters:
columnID -
Returns:

getValueAt

Object getValueAt(TreePath path,
                  String columnID)
Return the value for the cell defined by the given tree path and the given column ID. Caveat: if more than one tree module provides a value for for the cell at the column with the given ID and the given path, the value provided by the first module to dos so is used.

Parameters:
columnID -
Returns:


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.