Module org.autogui

Interface TableTargetColumnAction

All Superinterfaces:
Action, ActionListener, EventListener, PopupCategorized.CategorizedMenuItem, PopupCategorized.CategorizedMenuItemAction, PopupCategorized.CategorizedMenuItemComponent
All Known Implementing Classes:
GuiSwingJsonTransfer.JsonCopyAction, GuiSwingJsonTransfer.JsonSaveAction, GuiSwingTableColumnString.ColumnLabelTextSaveAction, GuiSwingTableColumnString.LabelTextClearAction, GuiSwingTableColumnString.LabelTextLoadAction, GuiSwingTableColumnString.LabelTextPasteAllAction, GuiSwingTableModelCollection.NumberCopyAction, GuiSwingView.ToStringCopyAction, GuiSwingViewBooleanCheckBox.BooleanFlipAction, GuiSwingViewBooleanCheckBox.BooleanPasteAction, GuiSwingViewBooleanCheckBox.BooleanSetAction, GuiSwingViewBooleanCheckBox.BooleanSetValueAction, GuiSwingViewBooleanCheckBox.BooleanTextLoadAction, GuiSwingViewBooleanCheckBox.BooleanTextSaveAction, GuiSwingViewEnumComboBox.EnumPasteAction, GuiSwingViewImagePane.ImageClearAction, GuiSwingViewImagePane.ImageCopyAction, GuiSwingViewImagePane.ImageLoadAction, GuiSwingViewImagePane.ImagePasteAction, GuiSwingViewImagePane.ImagePreviewAction, GuiSwingViewImagePane.ImageSaveAction, GuiSwingViewImagePane.ImageScaleOriginalSizeAction, GuiSwingViewImagePane.ImageScaleSwitchFitAction, GuiSwingViewLabel.LabelJsonCopyAction, GuiSwingViewLabel.LabelJsonSaveAction, GuiSwingViewLabel.LabelToStringCopyAction, GuiSwingViewNumberSpinner.NumberIncrementAction, GuiSwingViewNumberSpinner.NumberMaximumAction, GuiSwingViewNumberSpinner.NumberSetAction, GuiSwingViewNumberSpinner.NumberSettingAction

public interface TableTargetColumnAction extends PopupCategorized.CategorizedMenuItemAction
indicating an action can be converted for selected table columns (with entire rows or selected cells) processing, handled by ObjectTableColumnValue.CollectionRowsActionBuilder. The key-point is that the action can be statically constructed for (selected or entire) rows of the column and focused on the single target column.

a collection table whose model is ObjectTableModel builds menu items including actions of the type. It obtains selected column ObjectTableColumn as the target and calls ObjectTableColumn.getMenuBuilderSource() to the target. The current impl. of the method returns the cell renderer implementing ObjectTableColumn.PopupMenuBuilderSource. For instance, those renderers are ObjectTableColumnValue.ObjectTableCellRenderer and ObjectTableColumn.NumberRenderer (for indices).

In the case of ObjectTableColumnValue.ObjectTableCellRenderer, it creates ObjectTableColumnValue.ObjectTableColumnActionBuilder with original builder of the column by GuiSwingView.ValuePane.getSwingMenuBuilder(). The original builder creates menu items for a non-table view. Those items are converted to TableTargetColumnActions by ObjectTableColumnValue.CollectionRowsActionBuilder in the ObjectTableColumnValue.ObjectTableColumnActionBuilder.build(PopupExtension.PopupMenuFilter, Consumer) .