Module org.autogui

Class GuiSwingActionDefault

java.lang.Object
org.autogui.swing.GuiSwingActionDefault
All Implemented Interfaces:
GuiSwingAction, GuiSwingElement

public class GuiSwingActionDefault extends Object implements GuiSwingAction
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.
  • Constructor Details

    • GuiSwingActionDefault

      public GuiSwingActionDefault()
  • Method Details

    • createAction

      Specified by:
      createAction in interface GuiSwingAction
      Parameters:
      context - the context of an action
      pane - 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

      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 action
      tables - the candidates of tables for the target of updating
      Returns:
      runners