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; } //dynamicColumnfor 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 class
the base class for dynamic column factories: the class provide implementations of methods defined inObjectTableModelColumns.DynamicColumnFactory
andGuiSwingTableColumnSet.DynamicColumnHost
static class
size-factory for root List<List<T>>.static class
size-factory for class C { T0 f0; T1 f0; ...static class
size-factory for List<E>static class
another dynamic factory for supporting property valuesstatic class
a dynamic version of columnstatic class
aObjectTableModelColumns.ObjectTableColumnSize
of a concrete value.static class
an action using selection of dynamic columnsstatic class
class T { List<List<E>> list; } class E { String n; float v; void act() {...} }static class
the base class for dynamic table-selection-sourcesstatic class
class T { List<List<E>> list; } class E { String n; List<Float> l1; List<String> l2; void act(List<Integer> selectedIndices, String targetName) {...} }static class
class T { List<List<E>> list; } class E { String n; List<Float> l; void act(List<Float> selected) {...} }static class
class T { List<List<E>> list; } class E { String n; List<Float> l1; List<String> l2; void act(List<int[]> selectedIndices, String targetName) {...} }static class
a result value ofGuiSwingTableColumnCollection.TableSelectionSourceDynamicForList
with additional informationstatic class
a selected target field name and specifiers as an intermediate state ofGuiSwingTableColumnCollection.TableSelectionSourceDynamicForList
. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createColumnDynamic
(GuiMappingContext context, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier) static String
getTargetName
(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.DynamicColumnFactoryList
and add it to the model byGuiSwingTableColumnSet.TableColumnHost.addColumnDynamic(ObjectTableModelColumns.DynamicColumnFactory)
- Specified by:
createColumnDynamic
in 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
-