java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnCollection
- All Implemented Interfaces:
GuiSwingElement,GuiSwingTableColumnDynamic
a factory of dynamic column factories for nested collections:
the instance will be registered as a factory of
GuiReprCollectionTable
there are various cases for table-compositions
class T { List<Float> l; } //staticColumn, no dynamic columns
class T { List<E> l; }
class E { int x; } //staticColumn, no dynamic columns
class T { List<List<Float>> l; } //dynamicColumn
class T { List<List<E>> l; }
class E { int x; } //dynamicColumn
class T { List<E> l; }
class E { int x; //staticColumn
List<Float> f; } //dynamicColumn
class T { List<E> l; }
class E { int x; //staticColumn
F f; }
class F { List<Float> fs; } //dynamicColumn
for some cases, a nested member might be a first dynamicColumn source.
thus, GuiSwingTableColumnSetDefault always creates ObjectTableModelColumns.DynamicColumnFactory for each composition.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classthe base class for dynamic column factories: the class provide implementations of methods defined inObjectTableModelColumns.DynamicColumnFactoryandGuiSwingTableColumnSet.DynamicColumnHoststatic classsize-factory for root List<List<T>>.static classsize-factory for class C { T0 f0; T1 f0; ...static classsize-factory for List<E>static classanother dynamic factory for supporting property valuesstatic classa dynamic version of columnstatic classaObjectTableModelColumns.ObjectTableColumnSizeof a concrete value.static classan action using selection of dynamic columnsstatic classclass T { List<List<E>> list; } class E { String n; float v; void act() {...} }static classthe base class for dynamic table-selection-sourcesstatic classclass T { List<List<E>> list; } class E { String n; List<Float> l1; List<String> l2; void act(List<Integer> selectedIndices, String targetName) {...} }static classclass T { List<List<E>> list; } class E { String n; List<Float> l; void act(List<Float> selected) {...} }static classclass T { List<List<E>> list; } class E { String n; List<Float> l1; List<String> l2; void act(List<int[]> selectedIndices, String targetName) {...} }static classa result value ofGuiSwingTableColumnCollection.TableSelectionSourceDynamicForListwith additional informationstatic classa selected target field name and specifiers as an intermediate state ofGuiSwingTableColumnCollection.TableSelectionSourceDynamicForList. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateColumnDynamic(GuiMappingContext context, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier) static StringgetTargetName(GuiMappingContext context)
-
Field Details
-
columnMapperSet
-
-
Constructor Details
-
GuiSwingTableColumnCollection
-
-
Method Details
-
createColumnDynamic
public void createColumnDynamic(GuiMappingContext context, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier) create aGuiSwingTableColumnCollection.DynamicColumnFactoryListand add it to the model byGuiSwingTableColumnSet.TableColumnHost.addColumnDynamic(ObjectTableModelColumns.DynamicColumnFactory)- Specified by:
createColumnDynamicin interfaceGuiSwingTableColumnDynamic- Parameters:
context- the context of the sub-list, associated with a collection-tablemodel- the adding targetrowSpecifier- the table root row-specifierparentSpecifier- the parent specifier factory of the context
-
getTargetName
-