Module org.autogui
Package org.autogui.swing.table
Class ObjectTableColumn.ObjectTableColumnLabel<ObjType,PropType>
java.lang.Object
org.autogui.swing.table.ObjectTableColumn
org.autogui.swing.table.ObjectTableColumn.ObjectTableColumnLabel<ObjType,PropType>
- Type Parameters:
ObjType
- the target row-object typePropType
- the column type
- Enclosing class:
ObjectTableColumn
public static class ObjectTableColumn.ObjectTableColumnLabel<ObjType,PropType>
extends ObjectTableColumn
a column class for specifying operations with lambdas.
The class does not care about rendering and editing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.swing.table.ObjectTableColumn
ObjectTableColumn.NumberRenderer, ObjectTableColumn.ObjectTableColumnLabel<ObjType,
PropType>, ObjectTableColumn.ObjectTableColumnRowIndex, ObjectTableColumn.PopupMenuBuilderSource, ObjectTableColumn.TableMenuComposite, ObjectTableColumn.TableMenuCompositeShared, ObjectTableColumn.TableTargetColumnForObjectColumn -
Field Summary
FieldsFields inherited from class org.autogui.swing.table.ObjectTableColumn
comparator, rowHeight, tableColumn, valueType
-
Constructor Summary
ConstructorsConstructorDescriptionObjectTableColumnLabel
(Function<ObjType, PropType> getter, BiConsumer<ObjType, PropType> setter) ObjectTableColumnLabel
(Function<ObjType, PropType> getter, BiConsumer<ObjType, PropType> setter, TableColumn tableColumn) -
Method Summary
Modifier and TypeMethodDescriptiongetCellValue
(Object rowObject, int rowIndex, int columnIndex, GuiReprValue.ObjectSpecifier specifier) Future
<?> setCellValue
(Object rowObject, int rowIndex, int columnIndex, Object newColumnValue, GuiReprValue.ObjectSpecifier specifier) Methods inherited from class org.autogui.swing.table.ObjectTableColumn
columnIndexToValueIndex, createLabel, createLabel, fromActionValue, getCellValueFromContext, getComparator, getCompositesForCells, getCompositesForRows, getMenuBuilderSource, getRowHeight, getSpecifier, getTableColumn, getValueType, isTaskRunnerUsedFor, setCellBorder, setCellValueFromContext, setColumnViewUpdater, setComparator, setRowHeight, setTableColumn, setValueType, shutdown, toActionValue, viewUpdateAsDynamic, withCellEditor, withCellRenderer, withComparator, withHeaderRenderer, withHeaderValue, withIdentifier, withMaxWidth, withMinWidth, withPreferredWidth, withResizable, withRowHeight, withTableColumn, withValueType
-
Field Details
-
getter
-
setter
-
-
Constructor Details
-
ObjectTableColumnLabel
-
ObjectTableColumnLabel
public ObjectTableColumnLabel(Function<ObjType, PropType> getter, BiConsumer<ObjType, PropType> setter, TableColumn tableColumn)
-
-
Method Details
-
getGetter
-
getSetter
-
getCellValue
public Object getCellValue(Object rowObject, int rowIndex, int columnIndex, GuiReprValue.ObjectSpecifier specifier) - Overrides:
getCellValue
in classObjectTableColumn
- Parameters:
rowObject
- the row object at rowIndexrowIndex
- the row indexcolumnIndex
- the column indexspecifier
- specifier fromObjectTableColumn.getSpecifier(int, int)
- Returns:
- the value at columnIndex of rowObject.
it might be
Future
, and then the value will be specially treated as getting the value of the future as the cell value.
-
setCellValue
public Future<?> setCellValue(Object rowObject, int rowIndex, int columnIndex, Object newColumnValue, GuiReprValue.ObjectSpecifier specifier) - Overrides:
setCellValue
in classObjectTableColumn
- Parameters:
rowObject
- the row object at rowIndexrowIndex
- the row indexcolumnIndex
- the column indexnewColumnValue
- the new value to be setspecifier
- specifier fromObjectTableColumn.getSpecifier(int, int)
- Returns:
- a future object for checking completion of the updating or null
-