Module org.autogui

Class GuiSwingTableColumnCollection.TableSelectionSourceDynamicForIndices

All Implemented Interfaces:
GuiSwingTableColumnSet.TableSelectionSource
Direct Known Subclasses:
GuiSwingTableColumnCollection.TableSelectionSourceDynamicForRowAndColumnIndices
Enclosing class:
GuiSwingTableColumnCollection

public static class GuiSwingTableColumnCollection.TableSelectionSourceDynamicForIndices extends GuiSwingTableColumnCollection.TableSelectionSourceDynamicForList
     class T { List<List<E>> list; }
     class E {
         String n;
         List<Float>  l1;
         List<String> l2;
         void act(List<Integer> selectedIndices, String targetName) {...}
     }
 
the class T will be bound to a table like the following columns
     #  | n[0] |  l1[0,0] | ... | l2[0,0] | ... | n[1] | l1[1,0] | l1[1,1] | ... | l2[1,0] | ...
    ----|------|----------|-----|---------|-----|------|---------|---------|-----|---------|-----
     0  |      |      a   | ... |    b    | ... |      |   c     |   d     | ... |         | ...
 
If a user selects the columns "a", "b", "c" and "d", and runs the action "act", then the following code will be executed
        T t = ...;
        t.list.get(0).get(0).act(asList(0),   "l1"); //a
        t.list.get(0).get(0).act(asList(1),   "l2"); //b
        t.list.get(0).get(1).act(asList(0,1), "l1"); //c,d