Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableModelCollection.ObjectTableColumnRowIndexWithActions
java.lang.Object
org.autogui.swing.table.ObjectTableColumn
org.autogui.swing.table.ObjectTableColumn.ObjectTableColumnRowIndex
org.autogui.swing.table.GuiSwingTableModelCollection.ObjectTableColumnRowIndexWithActions
- All Implemented Interfaces:
ObjectTableColumn.PopupMenuBuilderSource
- Enclosing class:
GuiSwingTableModelCollection
public static class GuiSwingTableModelCollection.ObjectTableColumnRowIndexWithActions
extends ObjectTableColumn.ObjectTableColumnRowIndex
implements ObjectTableColumn.PopupMenuBuilderSource
a row-index column with an actions including toString and JSON
-
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
Fields inherited from class org.autogui.swing.table.ObjectTableColumn
comparator, rowHeight, tableColumn, valueType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMenuBuilder
(JTable table) Note: the actions added by the builder will only work with single (last) value of the renderer, set byGuiSwingView.ValuePane.setSwingViewValue(Object)
.Methods inherited from class org.autogui.swing.table.ObjectTableColumn.ObjectTableColumnRowIndex
columnIndexToValueIndex, createRenderer, getCellValue
Methods inherited from class org.autogui.swing.table.ObjectTableColumn
createLabel, createLabel, fromActionValue, getCellValueFromContext, getComparator, getRowHeight, getSpecifier, getTableColumn, getValueType, isTaskRunnerUsedFor, setCellBorder, setCellValue, setCellValueFromContext, setColumnViewUpdater, setComparator, setRowHeight, setTableColumn, setValueType, shutdown, toActionValue, viewUpdateAsDynamic, withCellEditor, withCellRenderer, withComparator, withHeaderRenderer, withHeaderValue, withIdentifier, withMaxWidth, withMinWidth, withPreferredWidth, withResizable, withRowHeight, withTableColumn, withValueType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.table.ObjectTableColumn.PopupMenuBuilderSource
getMenuTargetPane
-
Constructor Details
-
ObjectTableColumnRowIndexWithActions
public ObjectTableColumnRowIndexWithActions()
-
-
Method Details
-
getCompositesForRows
- Overrides:
getCompositesForRows
in classObjectTableColumn
-
getCompositesForCells
- Overrides:
getCompositesForCells
in classObjectTableColumn
-
getMenuBuilderSource
Description copied from class:ObjectTableColumn
Note: the actions added by the builder will only work with single (last) value of the renderer, set byGuiSwingView.ValuePane.setSwingViewValue(Object)
. So when the action is invoked, it will need to iterate over the selected rows, set the target value and invoke the action for each row. After each action invoked, it might need to check the value.- Overrides:
getMenuBuilderSource
in classObjectTableColumn
- Returns:
TableColumn.getCellRenderer()
if the renderer is anObjectTableColumn.PopupMenuBuilderSource
itself.
-
getMenuBuilder
- Specified by:
getMenuBuilder
in interfaceObjectTableColumn.PopupMenuBuilderSource
-