Module org.autogui
Package org.autogui.swing.table
Class ObjectTableColumnValue.CollectionRowsActionBuilder
java.lang.Object
org.autogui.swing.table.ObjectTableColumnValue.CollectionRowsActionBuilder
- All Implemented Interfaces:
PopupExtension.PopupMenuFilter
- Enclosing class:
ObjectTableColumnValue
public static class ObjectTableColumnValue.CollectionRowsActionBuilder
extends Object
implements PopupExtension.PopupMenuFilter
a menu filter for converting an action to another action which supports a selected rows.
TableTargetMenu.convert(GuiReprCollectionTable.TableTargetColumn)
- the class currently explicitly handles actions in
PopupExtensionText
and inSearchTextFieldFilePath
. - a
TableTargetCellAction
is converted to aObjectTableColumnValue.TableTargetExecutionAction
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected ObjectTableColumn
protected PopupExtension.PopupMenuFilter
protected JTable
protected GuiReprCollectionTable.TableTargetColumn
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionRowsActionBuilder
(JTable table, ObjectTableColumn column, PopupExtension.PopupMenuFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionaroundItems
(boolean before) a menu-builder calls the method before and after of a building process and appends returned itemsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.util.PopupExtension.PopupMenuFilter
convertItems
-
Field Details
-
table
-
column
-
target
-
filter
-
afterReturned
protected boolean afterReturned
-
-
Constructor Details
-
CollectionRowsActionBuilder
public CollectionRowsActionBuilder(JTable table, ObjectTableColumn column, PopupExtension.PopupMenuFilter filter)
-
-
Method Details
-
convert
- Specified by:
convert
in interfacePopupExtension.PopupMenuFilter
- Parameters:
o
- a converted item, one ofJComponent
(includingJMenuItem
),Action
,TableTargetCellAction
orPopupCategorized.CategorizedMenuItem
- Returns:
- a converted item or null if not matched
-
convertAction
-
clearKeyStroke
-
aroundItems
Description copied from interface:PopupExtension.PopupMenuFilter
a menu-builder calls the method before and after of a building process and appends returned items- Specified by:
aroundItems
in interfacePopupExtension.PopupMenuFilter
- Parameters:
before
- true if before of a building process or false if after of the process.- Returns:
- additional menu items provided by the filter. it needs to return once for the same item list
-