java.lang.Object
javax.swing.table.AbstractTableModel
org.autogui.swing.table.ObjectTableModel
org.autogui.swing.table.GuiSwingTableModelCollection
- All Implemented Interfaces:
Serializable,TableModel,ObjectTableModelColumns.ObjectTableModelColumnsListener
a table-model with
GuiMappingContext- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classa subclass ofObjectTableModelColumnswith supporting settings and preferencesstatic classan action for copying an index number to the clip-boardstatic classa row-index column with an actions including toString and JSONstatic classan ordering index of a columnstatic classpreferences for ordering of non-context table columns, attached to a liststatic classa width info.static classpreferences for width of non-context table columns, attached to a listNested classes/interfaces inherited from class org.autogui.swing.table.ObjectTableModel
ObjectTableModel.BuildResult, ObjectTableModel.CollectionRowsAndCellsActionBuilder, ObjectTableModel.MenuBuilderForRowsOrCells, ObjectTableModel.MenuBuilderWithEmptySeparator, ObjectTableModel.ObjectTableColumnSizeAndSelection, ObjectTableModel.PopupCategorizedForRowsOrCells, ObjectTableModel.PopupMenuBuilderForRowsOrCells, ObjectTableModel.TableTargetCellExecutionAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GuiMappingContextprotected Supplier<GuiReprValue.ObjectSpecifier> Fields inherited from class org.autogui.swing.table.ObjectTableModel
columns, data, futureWaiter, NULL_CELL, runner, source, tableFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionGuiSwingTableModelCollection(GuiMappingContext context, Supplier<GuiReprValue.ObjectSpecifier> tableSpecifier, Supplier<Object> source) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreplace or add the sorter-keysvoidcolumnAdded(ObjectTableColumn column) getRowAtIndex(int row) intprotected voidinitColumnDefault(ObjectTableColumn column) called fromcolumnAdded(ObjectTableColumn), sets upGuiInitsattached to the column properttyvoidvoidinitTableRowSorter(JTable table) protected voidMethods inherited from class org.autogui.swing.table.ObjectTableModel
buildDataArray, clearRowData, columnViewUpdate, executeContextTask, executeContextTask, fireTableRowsUpdatedAll, getBuilderForRowsOrCells, getBuildersForRowsOrCells, getColumnAt, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumns, getFutureWaiter, getRowCount, getTable, getValueAt, getValueAtWithError, initTable, initTableRowHeight, initTableScrollPane, initTableWithoutScrollPane, initTableWithScroll, invokeLater, isCellEditable, offerValueForSource, offsetValueForSourceFuture, refreshColumns, refreshColumns, refreshColumns, refreshData, refreshRow, refreshRows, setFutureWaiter, setSource, setTable, setValueAt, setValueAtWithError, takeValueFromSource, takeValueFromSourceFuture, taskValueFromSourceAfterMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
elementContext
-
tableSpecifier
-
rowSpecifierManager
-
-
Constructor Details
-
GuiSwingTableModelCollection
public GuiSwingTableModelCollection(GuiMappingContext context, Supplier<GuiReprValue.ObjectSpecifier> tableSpecifier, Supplier<Object> source)
-
-
Method Details
-
getContext
-
initColumns
public void initColumns()- Overrides:
initColumnsin classObjectTableModel
-
getColumnsWithContext
-
setElementContextFromContext
protected void setElementContextFromContext() -
getRowAtIndex
- Overrides:
getRowAtIndexin classObjectTableModel
-
getRowCountUpdated
public int getRowCountUpdated()- Overrides:
getRowCountUpdatedin classObjectTableModel
-
getCollectionFromSource
- Overrides:
getCollectionFromSourcein classObjectTableModel
-
getRowSpecifierManager
-
columnAdded
- Specified by:
columnAddedin interfaceObjectTableModelColumns.ObjectTableModelColumnsListener- Overrides:
columnAddedin classObjectTableModel
-
initColumnDefault
called fromcolumnAdded(ObjectTableColumn), sets upGuiInitsattached to the column propertty- Parameters:
column- the new column- Since:
- 1.8
-
initTableRowSorter
- Overrides:
initTableRowSorterin classObjectTableModel
-
toRowSorterKeyDefault
public RowSorter.SortKey toRowSorterKeyDefault(GuiSwingTableColumn.ObjectTableColumnWithContext column) - Parameters:
column- the column- Returns:
- obtains
GuiInitsattached to the context property and returns a key if the setting is not default (unsorted), or null. - Since:
- 1.8
-
addRowSorterKeys
replace or add the sorter-keys- Parameters:
keys- the new keys- Since:
- 1.8
-