Module org.autogui
Package org.autogui.swing.table
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
-
Field Summary
FieldsFields inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.TableSelectionSourceDynamicBase
model, selection, tableSource
-
Constructor Summary
ConstructorsConstructorDescriptionTableSelectionSourceDynamic
(GuiSwingTableColumnSet.TableColumnHost model, GuiReprCollectionTable.TableTargetCell selection, ObjectTableModelColumns.DynamicColumnFactory targetFactory, String targetName) -
Method Summary
Methods inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.TableSelectionSourceDynamicBase
select, selectionActionFinished, selectionActionPrepare, selectSpecifierMapForCollectionWrapper, selectSpecifierMapForStaticColumn, setTableSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.swing.table.GuiSwingTableColumnSet.TableSelectionSource
selectionActionFinished, selectionActionPrepare
-
Field Details
-
targetFactory
-
targetName
-
-
Constructor Details
-
TableSelectionSourceDynamic
public TableSelectionSourceDynamic(GuiSwingTableColumnSet.TableColumnHost model, GuiReprCollectionTable.TableTargetCell selection, ObjectTableModelColumns.DynamicColumnFactory targetFactory, String targetName)
-
-
Method Details
-
getTargetName
- Specified by:
getTargetName
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmpty
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-
getSelectedItems
- Specified by:
getSelectedItems
in interfaceGuiSwingTableColumnSet.TableSelectionSource
-