java.lang.Object
org.autogui.swing.GuiSwingActionDefault
- All Implemented Interfaces:
GuiSwingAction
,GuiSwingElement
an implementation of action factory for
GuiReprAction
.
An instance of the class is also registered for table-column, but the instance will not be used.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
the action that may lead to refreshing data or discarding cell-editor of table needs to callGuiSwingActionDefault.ActionPreparation.prepareAction(AWTEvent)
orGuiSwingActionDefault.ActionPreparation.prepareAction(Component)
.static class
a swing-action executing the action of the context.static class
the table selection updater for object-actions: -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAction
(GuiMappingContext context, GuiSwingView.ValuePane<?> pane, List<GuiSwingViewCollectionTable.CollectionTable> tables) getTableConversions
(GuiMappingContext context, List<GuiSwingViewCollectionTable.CollectionTable> tables) creating runners of selection updating for tables.
-
Constructor Details
-
GuiSwingActionDefault
public GuiSwingActionDefault()
-
-
Method Details
-
createAction
public Action createAction(GuiMappingContext context, GuiSwingView.ValuePane<?> pane, List<GuiSwingViewCollectionTable.CollectionTable> tables) - Specified by:
createAction
in interfaceGuiSwingAction
- Parameters:
context
- the context of an actionpane
- pane for the target object (currently used for obtaining the specifier of the target)tables
- in order to support selection changer, the method takes candidates of table- Returns:
- a swing-action for executing the action of the context
-
getTableConversions
public List<GuiSwingActionDefault.TableSelectionConversion> getTableConversions(GuiMappingContext context, List<GuiSwingViewCollectionTable.CollectionTable> tables) creating runners of selection updating for tables. if there are multiple lists matching to the return type of the action, the selection of those lists updated by the action at once.//e.g. @GuiIncluded public class C { @GuiIncluded public List<String> a; @GuiIncluded public List<String> b; @GuiListSelectionUpdater @GuiIncluded public List<String> act() { ... } //the action updates selection of both a and b; }
- Parameters:
context
- the context of the actiontables
- the candidates of tables for the target of updating- Returns:
- runners
-