java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnSetDefault
- All Implemented Interfaces:
GuiSwingElement
,GuiSwingTableColumnSet
the default implementation of table-column-set associated with
GuiReprCollectionElement
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
an action for execution anGuiReprAction
with selected targets.static class
an action for executing anGuiReprActionList
with selected targets.Nested classes/interfaces inherited from interface org.autogui.swing.table.GuiSwingTableColumnSet
GuiSwingTableColumnSet.DynamicColumnHost, GuiSwingTableColumnSet.TableColumnHost, GuiSwingTableColumnSet.TableSelectionChange, GuiSwingTableColumnSet.TableSelectionChangeIndices, GuiSwingTableColumnSet.TableSelectionChangeIndicesRowAndColumn, GuiSwingTableColumnSet.TableSelectionChangeNothing, GuiSwingTableColumnSet.TableSelectionChangeValues, GuiSwingTableColumnSet.TableSelectionSource
-
Field Summary
FieldsFields inherited from interface org.autogui.swing.table.GuiSwingTableColumnSet
NO_CHANGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsupport actions of an element object:static void
createColumnForDynamicCollection
(GuiMappingContext subContext, GuiSwingTableColumnSet.DynamicColumnHost target, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager subSpecifier, GuiSwingElement view) void
createColumns
(GuiMappingContext context, GuiSwingTableColumnSet.TableColumnHost parentModel, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier, GuiSwingView.SpecifierManager specifierManager) the class supports 2 cases: for a collection-element under a table:class Tbl { List<E> table; }
.void
createColumnsForDynamicCollection
(GuiMappingContext context, GuiSwingTableColumnSet.DynamicColumnHost collection, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier) a collection element in a nested list called fromGuiSwingTableColumnCollection
: it uses the collection as a parent a composition:List<List<E>>
.getMenuRowComposites
(GuiMappingContext context)
-
Field Details
-
columnMappingSet
-
-
Constructor Details
-
GuiSwingTableColumnSetDefault
-
-
Method Details
-
createColumns
public void createColumns(GuiMappingContext context, GuiSwingTableColumnSet.TableColumnHost parentModel, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier, GuiSwingView.SpecifierManager specifierManager) the class supports 2 cases:- for a collection-element under a table:
class Tbl { List<E> table; }
. it supposes the root element directly called fromGuiSwingViewCollectionTable
, and then specifierManager is given as the specifier factory for the element (== rowSpecifier). it creates aGuiSwingTableColumnCollection.DynamicColumnFactoryCollectionRoot
and use specifierManager as the parent specifier for sub-columns or sub-lists - for an object-composition under a table:
List<E> table; class E { ... }
. this is the case of recursive call. it creates a sub-specifier manager with the parentSpecifier and aGuiSwingTableColumnCollection.DynamicColumnFactoryComposite
. Note the nested cases are not treated because a sub-object is composed by a property-pane: property(obj)
GuiSwingMapperSet
.GuiSwingTableColumn
: a static column.V of List<V> or List<E> and class E { V fld; }
. it callsGuiSwingTableColumn.createColumn(GuiMappingContext, GuiSwingTableColumn.SpecifierManagerIndex, GuiSwingView.SpecifierManager)
and adds the column as a static columnGuiSwingTableColumnDynamic
: a dynamic column, a nested collection, or a property-pane.List<List<E>>
orList<E> class E { C prop; }
. it callsGuiSwingTableColumnDynamic.createColumnDynamic(GuiMappingContext, GuiSwingTableColumnSet.TableColumnHost, GuiSwingTableColumn.SpecifierManagerIndex, GuiSwingView.SpecifierManager)
GuiSwingTableColumnSet
: a composition of static columns.List<E> and class E {...}
it causes a recursive call as the above 2nd case- a list action:
act(List<E>)
. it add the context as an action. Note other actions are treated bycreateColumnActions(GuiMappingContext, GuiSwingTableColumnSet.TableSelectionSource)
- Specified by:
createColumns
in interfaceGuiSwingTableColumnSet
- Parameters:
context
- the context, initially a collection elementparentModel
- the target of adding columns, passed by senderrowSpecifier
- row-specifier for the tableparentSpecifier
- the specifier manager of the parentspecifierManager
- optional specifier given by the caller
- for a collection-element under a table:
-
getMenuRowComposites
-
createColumnActions
public List<Action> createColumnActions(GuiMappingContext context, GuiSwingTableColumnSet.TableSelectionSource source) support actions of an element object:List<E> class E { C obj; void action1() {...} } class C { void action2() {...} }
- Specified by:
createColumnActions
in interfaceGuiSwingTableColumnSet
- Parameters:
context
- the context usually associated withGuiReprCollectionElement
source
- the table source for actions. the selected items will become targets of returned actions.- Returns:
- list of created actions
-
createColumnsForDynamicCollection
public void createColumnsForDynamicCollection(GuiMappingContext context, GuiSwingTableColumnSet.DynamicColumnHost collection, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager parentSpecifier) - a collection element in a nested list called from
GuiSwingTableColumnCollection
: it uses the collection as a parent - a composition:
List<List<E>>
. it creates aGuiSwingTableColumnCollection.DynamicColumnFactoryComposite
as a parent and add it to the collection
- Specified by:
createColumnsForDynamicCollection
in interfaceGuiSwingTableColumnSet
- Parameters:
context
- the source contextcollection
- the adding target of created columns and actionsrowSpecifier
- a row specifier manager of the top tableparentSpecifier
- a parent specifier given by the caller
- a collection element in a nested list called from
-
createColumnForDynamicCollection
public static void createColumnForDynamicCollection(GuiMappingContext subContext, GuiSwingTableColumnSet.DynamicColumnHost target, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier, GuiSwingView.SpecifierManager subSpecifier, GuiSwingElement view)
-