Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableColumnCollection.DynamicColumnFactoryList
java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryList
- All Implemented Interfaces:
GuiSwingTableColumnSet.DynamicColumnHost
,GuiSwingTableColumnSet.TableColumnHost
,ObjectTableModelColumns.DynamicColumnFactory
- Direct Known Subclasses:
GuiSwingTableColumnCollection.DynamicColumnFactoryCollectionRoot
- Enclosing class:
GuiSwingTableColumnCollection
public static class GuiSwingTableColumnCollection.DynamicColumnFactoryList
extends GuiSwingTableColumnCollection.DynamicColumnFactoryBase
implements ObjectTableModelColumns.DynamicColumnFactory, GuiSwingTableColumnSet.DynamicColumnHost, GuiSwingTableColumnSet.TableColumnHost
size-factory for List<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
actionContexts, context, elementIndex, indexSet, model, parentFactory, specifierManager
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicColumnFactoryList
(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model) DynamicColumnFactoryList
(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a dynamic factory as a child to the containervoid
add a row index column as a static column: always delegate to the topvoid
addColumnStatic
(ObjectTableColumn column) add a static column: always delegate to the topvoid
addMenuRowComposite
(ObjectTableColumn.TableMenuComposite rowComposite) add a menu composite: always delegate to the topvoid
debugPrint
(int depth) void
forEachValue
(Object c, Consumer<Object> body) getActions
(GuiReprCollectionTable.TableTargetCell selection) getColumnAt
(int modelIndex) obtains a column: always delegate to the topgetValueAt
(Object c, int i) int
boolean
boolean
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
-
elementFactory
-
-
Constructor Details
-
DynamicColumnFactoryList
public DynamicColumnFactoryList(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model) -
DynamicColumnFactoryList
public DynamicColumnFactoryList(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model, GuiSwingTableColumn.SpecifierManagerIndex index)
-
-
Method Details
-
addColumnRowIndex
public void addColumnRowIndex()Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a row index column as a static column: always delegate to the top- Specified by:
addColumnRowIndex
in interfaceGuiSwingTableColumnSet.TableColumnHost
-
addColumnStatic
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a static column: always delegate to the top- Specified by:
addColumnStatic
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
column
- the added column
-
addMenuRowComposite
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a menu composite: always delegate to the top- Specified by:
addMenuRowComposite
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
rowComposite
- the added composite
-
getColumnAt
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
obtains a column: always delegate to the top- Specified by:
getColumnAt
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
modelIndex
- a model index of the column (not a child index)- Returns:
- a column of the modelIndex in the table
-
isNonEmpty
public boolean isNonEmpty()- Specified by:
isNonEmpty
in interfaceGuiSwingTableColumnSet.TableColumnHost
-
getColumnSize
- Specified by:
getColumnSize
in interfaceObjectTableModelColumns.DynamicColumnFactory
- Parameters:
c
- an obtained list- Returns:
- create a size info. for the actual object
-
getValueSize
- Parameters:
c
- a list object- Returns:
- the size of the list
-
forEachValue
-
getValueAt
-
getColumnSizeForConcrete
- Parameters:
c
- a concrete value such as a primitive. so it will be ignored as creating (a column x the size of the list) for the value.- Returns:
- an
ObjectTableModelColumns.ObjectTableColumnSize
-
getColumnSizeForObjectList
- Parameters:
c
- a list object- Returns:
- a
ObjectTableModelColumns.ObjectTableColumnSizeComposite
with children created bygetElementFactory()
.getColumnSize(Object)
for each element in the list c. Currently, the children are expanded by the size of the list
-
addColumnDynamic
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a dynamic factory as a child to the container- Specified by:
addColumnDynamic
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
d
- the added factory
-
getElementFactory
-
getActions
- Specified by:
getActions
in interfaceObjectTableModelColumns.DynamicColumnFactory
-
isStaticColumns
public boolean isStaticColumns()- Specified by:
isStaticColumns
in interfaceObjectTableModelColumns.DynamicColumnFactory
-
getDisplayName
- Specified by:
getDisplayName
in interfaceObjectTableModelColumns.DynamicColumnFactory
-
debugPrint
public void debugPrint(int depth) - Specified by:
debugPrint
in interfaceObjectTableModelColumns.DynamicColumnFactory
-