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 class
a subclass ofObjectTableModelColumns
with supporting settings and preferencesstatic class
an action for copying an index number to the clip-boardstatic class
a row-index column with an actions including toString and JSONstatic class
an ordering index of a columnstatic class
preferences for ordering of non-context table columns, attached to a liststatic class
a width info.static class
preferences 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 GuiMappingContext
protected Supplier
<GuiReprValue.ObjectSpecifier> Fields inherited from class org.autogui.swing.table.ObjectTableModel
columns, data, futureWaiter, NULL_CELL, runner, source, table
Fields 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 void
replace or add the sorter-keysvoid
columnAdded
(ObjectTableColumn column) getRowAtIndex
(int row) int
protected void
initColumnDefault
(ObjectTableColumn column) called fromcolumnAdded(ObjectTableColumn)
, sets upGuiInits
attached to the column properttyvoid
void
initTableRowSorter
(JTable table) protected void
Methods 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, taskValueFromSourceAfter
Methods 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:
initColumns
in classObjectTableModel
-
getColumnsWithContext
-
setElementContextFromContext
protected void setElementContextFromContext() -
getRowAtIndex
- Overrides:
getRowAtIndex
in classObjectTableModel
-
getRowCountUpdated
public int getRowCountUpdated()- Overrides:
getRowCountUpdated
in classObjectTableModel
-
getCollectionFromSource
- Overrides:
getCollectionFromSource
in classObjectTableModel
-
getRowSpecifierManager
-
columnAdded
- Specified by:
columnAdded
in interfaceObjectTableModelColumns.ObjectTableModelColumnsListener
- Overrides:
columnAdded
in classObjectTableModel
-
initColumnDefault
called fromcolumnAdded(ObjectTableColumn)
, sets upGuiInits
attached to the column propertty- Parameters:
column
- the new column- Since:
- 1.8
-
initTableRowSorter
- Overrides:
initTableRowSorter
in classObjectTableModel
-
toRowSorterKeyDefault
public RowSorter.SortKey toRowSorterKeyDefault(GuiSwingTableColumn.ObjectTableColumnWithContext column) - Parameters:
column
- the column- Returns:
- obtains
GuiInits
attached 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
-