com.levigo.util.base.glazedlists.gui
Interface AdvancedTableFormat<E>

All Superinterfaces:
TableFormat<E>

public interface AdvancedTableFormat<E>
extends TableFormat<E>

Allows the ability to specify column class information in addition to the standard TableFormat information.

This class can be used as an alternative to the simple TableFormat class to provide column class information that is used to determine what cell renderer and/or editor should be used for a column. If no custom renderers or editors are required, it is sufficient to implement TableFormat only.

Author:
Rob Eden, Jesse Wilson
See Also:
WritableTableFormat, TableFormat

Method Summary
 Class getColumnClass(int column)
          Returns the most specific superclass for all the cell values in the column.
 Comparator getColumnComparator(int column)
          Returns the default Comparator to use for the specified column.
 
Methods inherited from interface com.levigo.util.base.glazedlists.gui.TableFormat
getColumnCount, getColumnName, getColumnValue
 

Method Detail

getColumnClass

Class getColumnClass(int column)
Returns the most specific superclass for all the cell values in the column. This is used by the table to set up a default renderer and editor for the column.

Parameters:
column - The index of the column being edited.

getColumnComparator

Comparator getColumnComparator(int column)
Returns the default Comparator to use for the specified column. This Comparator may be used to determine how a table will be sorted.

Returns:
the Comparator to use or null for an unsortable column.
See Also:
GlazedLists


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