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 ObjectTableColumnprotected GuiReprCollectionTable.TableTargetColumn -
Constructor Summary
ConstructorsConstructorDescriptionTableTargetColumnForObjectColumn(ObjectTableColumn column, GuiReprCollectionTable.TableTargetColumn target) -
Method Summary
Modifier and TypeMethodDescriptionIterable<int[]> List<int[]> int[]booleanvoidsetCellValues(Iterable<int[]> pos, Function<int[], Object> posToValue) voidvoidsetSelectedCellValuesLoop(List<?> rowValues)
-
Field Details
-
column
-
target
-
-
Constructor Details
-
TableTargetColumnForObjectColumn
public TableTargetColumnForObjectColumn(ObjectTableColumn column, GuiReprCollectionTable.TableTargetColumn target)
-
-
Method Details
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmptyin interfaceGuiReprCollectionTable.TableTarget
-
getSelectedRows
public int[] getSelectedRows()- Specified by:
getSelectedRowsin interfaceGuiReprCollectionTable.TableTarget
-
getSelectedRowValues
- Specified by:
getSelectedRowValuesin interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCells
- Specified by:
getSelectedCellsin interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCellIndices
- Specified by:
getSelectedCellIndicesin 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:
getSelectedCellIndicesAsListin interfaceGuiReprCollectionTable.TableTarget
-
getSelectedCellValues
- Specified by:
getSelectedCellValuesin interfaceGuiReprCollectionTable.TableTarget
-
setCellValues
- Specified by:
setCellValuesin interfaceGuiReprCollectionTable.TableTarget
-
setCellValues
- Specified by:
setCellValuesin 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:
getSelectedCellValuein interfaceGuiReprCollectionTable.TableTargetColumn- Returns:
- the value of the primary cell
-
setSelectedCellValuesLoop
- Specified by:
setSelectedCellValuesLoopin interfaceGuiReprCollectionTable.TableTargetColumn
-