Package docking.widgets.table.threaded
Class TestDataKeyModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- docking.widgets.table.AbstractGTableModel<T>
-
- docking.widgets.table.AbstractSortedTableModel<ROW_TYPE>
-
- docking.widgets.table.GDynamicColumnTableModel<ROW_OBJECT,DATA_SOURCE>
-
- docking.widgets.table.threaded.ThreadedTableModel<ROW_OBJECT,java.lang.Object>
-
- docking.widgets.table.threaded.ThreadedTableModelStub<java.lang.Long>
-
- docking.widgets.table.threaded.TestDataKeyModel
-
- All Implemented Interfaces:
ConfigurableColumnTableModel
,DynamicColumnTableModel<java.lang.Long>
,RowObjectFilterModel<java.lang.Long>
,RowObjectTableModel<java.lang.Long>
,SelectionStorage<java.lang.Long>
,SortedTableModel
,VariableColumnTableModel
,java.io.Serializable
,java.util.EventListener
,javax.swing.event.ChangeListener
,javax.swing.table.TableModel
public class TestDataKeyModel extends ThreadedTableModelStub<java.lang.Long>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class docking.widgets.table.threaded.ThreadedTableModel
ThreadedTableModel.IncrementalLoadJobListener
-
Nested classes/interfaces inherited from interface docking.widgets.table.SortedTableModel
SortedTableModel.DefaultComparator
-
-
Field Summary
Fields Modifier and Type Field Description static int
BYTE_COL
static int
DOUBLE_COL
static int
FLOAT_COL
static int
INT_COL
static int
LONG_COL
static int
SHORT_COL
static int
STRING_COL
protected java.lang.String[]
strings
-
Fields inherited from class docking.widgets.table.threaded.ThreadedTableModel
allData, filteredData
-
Fields inherited from class docking.widgets.table.GDynamicColumnTableModel
columnSettings, serviceProvider, tableColumns
-
Fields inherited from class docking.widgets.table.AbstractSortedTableModel
hasEverSorted
-
Fields inherited from class docking.widgets.table.AbstractGTableModel
WIDTH_UNDEFINED
-
Fields inherited from interface docking.widgets.table.RowObjectFilterModel
SUB_FILTERING_DISABLED_PROPERTY
-
Fields inherited from interface docking.widgets.table.SortedTableModel
ASCENDING_ORDER, DEFAULT_COMPARATOR, DESCENDING_ORDER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IncrementalLoadJob<java.lang.Long>
createIncrementalLoadJob()
protected TableColumnDescriptor<java.lang.Long>
createTableColumnDescriptor()
protected void
doLoad(Accumulator<java.lang.Long> accumulator, TaskMonitor monitor)
The basic method that all children must implement.-
Methods inherited from class docking.widgets.table.threaded.ThreadedTableModelStub
getDataSource
-
Methods inherited from class docking.widgets.table.threaded.ThreadedTableModel
addInitialLoadListener, addObject, addThreadedTableModelListener, cancelAllUpdates, clearData, createSortComparator, dispose, doFilter, fireTableChanged, getAllData, getModelData, getModelIndex, getModelRow, getName, getRowCount, getRowObjects, getSortedColumnClass, getTableFilter, getUnfilteredCount, getUnfilteredData, getUnfilteredIndexForRowObject, getUnfilteredRowCount, getUnfilteredRowObjectForIndex, getValueAt, getViewIndex, getViewRow, hasFitler, initializeSorting, isBusy, isFiltered, isLoadIncrementally, reFilter, reload, removeObject, removeThreadedTableModelListener, reSort, setIncrementalTaskMonitor, setModelState, setTableFilter, sort, updateNow, updateObject
-
Methods inherited from class docking.widgets.table.GDynamicColumnTableModel
addTableColumn, addTableColumn, addTableColumns, createSortComparatorForColumn, getColumn, getColumnClass, getColumnCount, getColumnDescription, getColumnDisplayName, getColumnIndex, getColumnIndex, getColumnName, getColumnSettings, getColumnSettingsDefinitions, getColumnValueForRow, getDefaultColumnCount, getMaxLines, getPreferredColumnWidth, getRenderer, getUniqueIdentifier, isDefaultColumn, isSortable, isVisibleByDefault, loadDiscoveredTableColumns, removeTableColumn, removeTableColumns, setAllColumnSettings, setColumnSettings, stateChanged
-
Methods inherited from class docking.widgets.table.AbstractSortedTableModel
addSortListener, createSortingContext, getIndexForRowObject, getIndexForRowObject, getPendingSortState, getPrimarySortColumnIndex, getRowIndex, getRowObject, getTableSortState, isSortPending, notifyModelSorted, setDefaultTableSortState, setTableSortState, sortCompleted
-
Methods inherited from class docking.widgets.table.AbstractGTableModel
getLastSelectedObjects, refresh, setLastSelectedObjects
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface docking.widgets.table.RowObjectTableModel
fireTableDataChanged, getColumnValueForRow, getRowIndex, getRowObject
-
-
-
-
Field Detail
-
BYTE_COL
public static final int BYTE_COL
- See Also:
- Constant Field Values
-
SHORT_COL
public static final int SHORT_COL
- See Also:
- Constant Field Values
-
INT_COL
public static final int INT_COL
- See Also:
- Constant Field Values
-
LONG_COL
public static final int LONG_COL
- See Also:
- Constant Field Values
-
FLOAT_COL
public static final int FLOAT_COL
- See Also:
- Constant Field Values
-
DOUBLE_COL
public static final int DOUBLE_COL
- See Also:
- Constant Field Values
-
STRING_COL
public static final int STRING_COL
- See Also:
- Constant Field Values
-
strings
protected java.lang.String[] strings
-
-
Method Detail
-
createIncrementalLoadJob
protected IncrementalLoadJob<java.lang.Long> createIncrementalLoadJob()
- Overrides:
createIncrementalLoadJob
in classThreadedTableModel<java.lang.Long,java.lang.Object>
-
doLoad
protected void doLoad(Accumulator<java.lang.Long> accumulator, TaskMonitor monitor) throws CancelledException
Description copied from class:ThreadedTableModel
The basic method that all children must implement. This is where children load their data.- Specified by:
doLoad
in classThreadedTableModel<java.lang.Long,java.lang.Object>
- Parameters:
accumulator
- the datastructure into which you should incrementally place you table row datamonitor
- the task monitor to check for cancellations and to update progress- Throws:
CancelledException
- if the task monitor has been cancelled and a call is made tomonitor.checkCancelled();
.
-
createTableColumnDescriptor
protected TableColumnDescriptor<java.lang.Long> createTableColumnDescriptor()
- Specified by:
createTableColumnDescriptor
in classGDynamicColumnTableModel<java.lang.Long,java.lang.Object>
-
-