Package ca.odell.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 standardTableFormatinformation.This class can be used as an alternative to the simple
TableFormatclass 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 implementTableFormatonly.- Author:
- Rob Eden, Jesse Wilson
- See Also:
WritableTableFormat,TableFormat
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassgetColumnClass(int column)Returns the most specific superclass for all the cell values in the column.java.util.ComparatorgetColumnComparator(int column)Returns the defaultComparatorto use for the specified column.-
Methods inherited from interface ca.odell.glazedlists.gui.TableFormat
getColumnCount, getColumnName, getColumnValue
-
-
-
-
Method Detail
-
getColumnClass
java.lang.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
java.util.Comparator getColumnComparator(int column)
Returns the defaultComparatorto use for the specified column. ThisComparatormay be used to determine how a table will be sorted.- Returns:
- the
Comparatorto use ornullfor an unsortable column. - See Also:
GlazedLists
-
-