Module org.autogui

Class GuiSwingTableColumnCollection.TableSelectionSourceDynamic

java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnCollection.TableSelectionSourceDynamicBase
org.autogui.swing.table.GuiSwingTableColumnCollection.TableSelectionSourceDynamic
All Implemented Interfaces:
GuiSwingTableColumnSet.TableSelectionSource
Enclosing class:
GuiSwingTableColumnCollection

public static class GuiSwingTableColumnCollection.TableSelectionSourceDynamic extends GuiSwingTableColumnCollection.TableSelectionSourceDynamicBase implements GuiSwingTableColumnSet.TableSelectionSource
     class T { List<List<E>> list; }
     class E {
         String n;
         float  v;
         void act() {...}
     }
 
the class T will be bound to a table like the following columns
     #  | n[0]  | v[0] | ... | n[1] | v[1] | ...
    ----|-------|------|-----|------|------|-----
     0  |     a |   b  | ... |   c  |      | ...
 
If a user selects the columns "a", "b", and "c", and runs the action "act", then the following code will be executed
        T t = ...;
        t.list.get(0).get(0).act(); //a, b
        t.list.get(0).get(1).act(); //c