- 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
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 TableTargetColumnAction
s
by ObjectTableColumnValue.CollectionRowsActionBuilder
in the ObjectTableColumnValue.ObjectTableColumnActionBuilder.build(PopupExtension.PopupMenuFilter, Consumer)
.
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default boolean
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStroke, getSubCategory
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemAction
getMenuItem, getMenuItemWithAction, remap
Methods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getCategory, getIcon, getName
-
Method Details
-
actionPerformedOnTableColumn
-
isEnabled
-