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 standardTableFormat
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 implementTableFormat
only.- Author:
- Rob Eden, Jesse Wilson
- See Also:
WritableTableFormat
,TableFormat
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class
getColumnClass(int column)
Returns the most specific superclass for all the cell values in the column.java.util.Comparator
getColumnComparator(int column)
Returns the defaultComparator
to 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 defaultComparator
to use for the specified column. ThisComparator
may be used to determine how a table will be sorted.- Returns:
- the
Comparator
to use ornull
for an unsortable column. - See Also:
GlazedLists
-
-