Class AnalysisQueueColumnModel
- java.lang.Object
-
- javax.swing.table.DefaultTableColumnModel
-
- com.tagtraum.beatunes.analysisqueue.AnalysisQueueColumnModel
-
- All Implemented Interfaces:
FilterTableColumnModel
,PropertyChangeListener
,Serializable
,EventListener
,ListSelectionListener
,TableColumnModel
public class AnalysisQueueColumnModel extends DefaultTableColumnModel implements FilterTableColumnModel
AnalysisQueue column model.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
-
-
Constructor Summary
Constructors Constructor Description AnalysisQueueColumnModel(JTable table, BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllPossibleColumns()
Adds all possible columns to the model.TableColumn[]
getPossibleTableColumns()
TableColumn[]
getStandardTableColumns()
TableColumn[]
preferredOrder(TableColumn[] columns)
Creates a new array of columns with the preferred order.-
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumn, addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableColumnModel
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel
-
-
-
-
Method Detail
-
getPossibleTableColumns
public TableColumn[] getPossibleTableColumns()
- Specified by:
getPossibleTableColumns
in interfaceFilterTableColumnModel
- Returns:
- columns that are allowed in this model
-
getStandardTableColumns
public TableColumn[] getStandardTableColumns()
- Specified by:
getStandardTableColumns
in interfaceFilterTableColumnModel
- Returns:
- default columns for this model
-
preferredOrder
public TableColumn[] preferredOrder(TableColumn[] columns)
Description copied from interface:FilterTableColumnModel
Creates a new array of columns with the preferred order. This order is probably not likeFilterTableColumnModel.getPossibleTableColumns()
.- Specified by:
preferredOrder
in interfaceFilterTableColumnModel
- Parameters:
columns
- columns- Returns:
- same columns in preferred order
-
addAllPossibleColumns
public void addAllPossibleColumns()
Adds all possible columns to the model.
-
-