Module org.autogui
Package org.autogui.swing.table
Class ObjectTableColumn.TableTargetColumnForObjectColumn
java.lang.Object
org.autogui.swing.table.ObjectTableColumn.TableTargetColumnForObjectColumn
- All Implemented Interfaces:
GuiReprCollectionTable.TableTarget
,GuiReprCollectionTable.TableTargetColumn
- Enclosing class:
ObjectTableColumn
public static class ObjectTableColumn.TableTargetColumnForObjectColumn
extends Object
implements GuiReprCollectionTable.TableTargetColumn
supporting value conversion like Path to File
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectTableColumn
protected GuiReprCollectionTable.TableTargetColumn
-
Constructor Summary
ConstructorsConstructorDescriptionTableTargetColumnForObjectColumn
(ObjectTableColumn column, GuiReprCollectionTable.TableTargetColumn target) -
Method Summary
Modifier and TypeMethodDescriptionIterable
<int[]> List
<int[]> int[]
boolean
void
setCellValues
(Iterable<int[]> pos, Function<int[], Object> posToValue) void
void
setSelectedCellValuesLoop
(List<?> rowValues)
-
Field Details
-
column
-
target
-
-
Constructor Details
-
TableTargetColumnForObjectColumn
public TableTargetColumnForObjectColumn(ObjectTableColumn column, GuiReprCollectionTable.TableTargetColumn target)
-
-
Method Details
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmpty
in interfaceGuiReprCollectionTable.TableTarget
-
getSelectedRows
public int[] getSelectedRows()- Specified by:
getSelectedRows
in interfaceGuiReprCollectionTable.TableTarget
-
getSelectedRowValues
- Specified by:
getSelectedRowValues
in interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCells
- Specified by:
getSelectedCells
in interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCellIndices
- Specified by:
getSelectedCellIndices
in interfaceGuiReprCollectionTable.TableTarget
- Returns:
- a sequence of {row, column}. those indices are from the view model, which might be different from the context's ones. The view-model has additional columns other than the context, e.g. the row-index column.
-
getSelectedCellIndicesAsList
- Specified by:
getSelectedCellIndicesAsList
in interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCellValues
- Specified by:
getSelectedCellValues
in interfaceGuiReprCollectionTable.TableTarget
-
setCellValues
- Specified by:
setCellValues
in interfaceGuiReprCollectionTable.TableTarget
-
setCellValues
- Specified by:
setCellValues
in interfaceGuiReprCollectionTable.TableTarget
- Parameters:
pos
- the specified cell: {row, column}posToValue
- pos: {row, column} to a cell value, if it returns null, then it skips the updating
-
getSelectedCellValue
- Specified by:
getSelectedCellValue
in interfaceGuiReprCollectionTable.TableTargetColumn
- Returns:
- the value of the primary cell
-
setSelectedCellValuesLoop
- Specified by:
setSelectedCellValuesLoop
in interfaceGuiReprCollectionTable.TableTargetColumn
-