Package docking.widgets.table
Interface DefaultEnumeratedColumnTableModel.EnumeratedTableColumn<C extends Enum<C>,R>
- Type Parameters:
C- the type of the enumR- the type of rows
- Enclosing class:
DefaultEnumeratedColumnTableModel<C extends Enum<C> & DefaultEnumeratedColumnTableModel.EnumeratedTableColumn<C,R>, R>
public static interface DefaultEnumeratedColumnTableModel.EnumeratedTableColumn<C extends Enum<C>,R>
An interface on enums used to describe table columns
-
Method Summary
Modifier and TypeMethodDescriptiondefault ColumnSortState.SortDirectionGet the default sort direction for this columnGet the name of this columndefault intdefault GColumnRenderer<?> Because of limitations with Java generics and Enumerations, type checking cannot be guaranteed here.default SettingsDefinition[]Class<?> Get the value class of cells in this columngetValueOf(R row) Get the value of this column for the given rowdefault booleanisEditable(R row) Check if this column can be modified for the given rowdefault booleanCheck if this column can be sorteddefault booleanCheck if this column should be visible by defaultdefault voidsetValueOf(R row, Object value) Get the value of this column for the given row
-
Method Details
-
getValueClass
Class<?> getValueClass()Get the value class of cells in this column- Returns:
- the class
-
getValueOf
Get the value of this column for the given row- Parameters:
row- the row- Returns:
- the value
-
getHeader
String getHeader()Get the name of this column- Returns:
- the name
-
setValueOf
Get the value of this column for the given row- Parameters:
row- the rowvalue- the new value
-
isEditable
Check if this column can be modified for the given row- Parameters:
row- the row- Returns:
- true if editable
-
isSortable
default boolean isSortable()Check if this column can be sortedTODO: Either this should be implemented as ported to
GDynamicColumnTableModel, or removed.- Returns:
- true if sortable
-
isVisible
default boolean isVisible()Check if this column should be visible by default- Returns:
- true if visible
-
defaultSortDirection
Get the default sort direction for this column- Returns:
- the sort direction
-
getPreferredWidth
default int getPreferredWidth() -
getRenderer
Because of limitations with Java generics and Enumerations, type checking cannot be guaranteed here. The user must ensure that any returned bygetValueOf(Object)can be accepted by the renderer returned here. The framework will perform an unchecked cast of the renderer.- Returns:
- the renderer
-
getSettingsDefinitions
-