Package com.tagtraum.beatunes.filter
Class SortableTableColumn
- java.lang.Object
-
- javax.swing.table.TableColumn
-
- com.tagtraum.beatunes.filter.SortableTableColumn
-
- All Implemented Interfaces:
Serializable
public class SortableTableColumn extends TableColumn
Sortable table column.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SortableTableColumn.ColumnDescriptor
Describes important properties of a column.
-
Field Summary
-
Fields inherited from class javax.swing.table.TableColumn
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width
-
-
Constructor Summary
Constructors Constructor Description SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width)
SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, int minWidth, int maxWidth, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, TableCellEditor cellEditor)
SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortableTableColumn.ColumnDescriptor
getColumnDescriptor()
Object
getHeaderValue()
String
getId()
-
Methods inherited from class javax.swing.table.TableColumn
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
-
-
-
-
Constructor Detail
-
SortableTableColumn
public SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width)
- Parameters:
columnDescriptor
- headerIdValueresizable
- resizablewidth
- width
-
SortableTableColumn
public SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
- Parameters:
columnDescriptor
- headerIdValueresizable
- resizablewidth
- widthcellRenderer
- cell renderercellEditor
- cell editor
-
SortableTableColumn
public SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, TableCellEditor cellEditor)
- Parameters:
columnDescriptor
- headerIdValueresizable
- resizablewidth
- widthcellEditor
- cell editor
-
SortableTableColumn
public SortableTableColumn(SortableTableColumn.ColumnDescriptor columnDescriptor, boolean resizable, int width, int minWidth, int maxWidth, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
- Parameters:
columnDescriptor
- headerIdValueresizable
- resizablewidth
- widthminWidth
- min widthmaxWidth
- max widthcellRenderer
- cell renderercellEditor
- cell editor
-
-
Method Detail
-
getHeaderValue
public Object getHeaderValue()
- Overrides:
getHeaderValue
in classTableColumn
-
getId
public String getId()
-
getColumnDescriptor
public SortableTableColumn.ColumnDescriptor getColumnDescriptor()
-
-