Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableColumnCollection.DynamicColumnFactoryCollectionRoot
java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryList
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryCollectionRoot
- All Implemented Interfaces:
GuiSwingTableColumnSet.DynamicColumnHost
,GuiSwingTableColumnSet.TableColumnHost
,ObjectTableModelColumns.DynamicColumnFactory
,ObjectTableModelColumns.DynamicColumnFactoryRoot
- Enclosing class:
GuiSwingTableColumnCollection
public static class GuiSwingTableColumnCollection.DynamicColumnFactoryCollectionRoot
extends GuiSwingTableColumnCollection.DynamicColumnFactoryList
implements ObjectTableModelColumns.DynamicColumnFactoryRoot
size-factory for root List<List<T>>.
the factory is only created for each root list the outside of a list
-
Field Summary
FieldsFields inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryList
elementFactory
Fields inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
actionContexts, context, elementIndex, indexSet, model, parentFactory, specifierManager
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicColumnFactoryCollectionRoot
(GuiMappingContext tableContext, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRootAction
(GuiMappingContext actionContext) getRootActions
(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) class Tbl { //tableOwner: the target of the action List<List<E>> table; void action(List<List<E>> l) { ...boolean
boolean
withSelectionChange
(GuiSwingTableColumnSetDefault.TableSelectionListAction a, GuiSwingTableColumnSet.TableSelectionSource source) Methods inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryList
addColumnDynamic, addColumnRowIndex, addColumnStatic, addMenuRowComposite, debugPrint, forEachValue, getActions, getColumnAt, getColumnSizeForConcrete, getColumnSizeForObjectList, getDisplayName, getElementFactory, getValueAt, getValueSize
Methods inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
addActionContext, addIndexToList, collectListActions, getActionContexts, getActions, getContext, getElementIndex, getIndexSpecifiers, getModel, getParentFactory, getSpecifierManager, getValue, getValueAsMember, setContext, setElementIndex, setModel, setParentFactory, setSpecifierManager, toAction, toActionForList, toActionForTarget
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.DynamicColumnHost
addActionContext
Methods inherited from interface org.autogui.swing.table.ObjectTableModelColumns.DynamicColumnFactory
getElementIndex, getIndexSpecifiers, getParentFactory, getValue, getValueAsMember, setParentFactory
-
Field Details
-
rootActions
-
-
Constructor Details
-
DynamicColumnFactoryCollectionRoot
public DynamicColumnFactoryCollectionRoot(GuiMappingContext tableContext, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex rowSpecifier)
-
-
Method Details
-
getColumnSize
- Specified by:
getColumnSize
in interfaceObjectTableModelColumns.DynamicColumnFactory
- Overrides:
getColumnSize
in classGuiSwingTableColumnCollection.DynamicColumnFactoryList
- Parameters:
c
- the root list- Returns:
- an
ObjectTableModelColumns.ObjectTableColumnSizeComposite
with a single child which is combined byObjectTableModelColumns.ObjectTableColumnSizeComposite.set(ObjectTableModelColumns.ObjectTableColumnSize)
for elements of the list
-
isStaticColumns
public boolean isStaticColumns()- Specified by:
isStaticColumns
in interfaceObjectTableModelColumns.DynamicColumnFactory
- Overrides:
isStaticColumns
in classGuiSwingTableColumnCollection.DynamicColumnFactoryList
-
isNonEmpty
public boolean isNonEmpty()- Specified by:
isNonEmpty
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Overrides:
isNonEmpty
in classGuiSwingTableColumnCollection.DynamicColumnFactoryList
-
addRootAction
- Specified by:
addRootAction
in interfaceObjectTableModelColumns.DynamicColumnFactoryRoot
-
getRootActions
public List<Action> getRootActions(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) class Tbl { //tableOwner: the target of the action List<List<E>> table; void action(List<List<E>> l) { ... } }
- Specified by:
getRootActions
in interfaceObjectTableModelColumns.DynamicColumnFactoryRoot
- Parameters:
selection
- selection for cellstableSource
- the regular selection of the table, used for selection-updating- Returns:
- actions from registered rootActions
-
withSelectionChange
public GuiSwingTableColumnSetDefault.TableSelectionListAction withSelectionChange(GuiSwingTableColumnSetDefault.TableSelectionListAction a, GuiSwingTableColumnSet.TableSelectionSource source)
-