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
PopupExtensionTextand inSearchTextFieldFilePath. - a
TableTargetCellActionis converted to aObjectTableColumnValue.TableTargetExecutionAction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ObjectTableColumnprotected PopupExtension.PopupMenuFilterprotected JTableprotected 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, waitMethods 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:
convertin interfacePopupExtension.PopupMenuFilter- Parameters:
o- a converted item, one ofJComponent(includingJMenuItem),Action,TableTargetCellActionorPopupCategorized.CategorizedMenuItem- Returns:
- a converted item or null if not matched
-
convertAction
-
clearKeyStroke
-
aroundItems
Description copied from interface:PopupExtension.PopupMenuFiltera menu-builder calls the method before and after of a building process and appends returned items- Specified by:
aroundItemsin 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
-