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 TypeMethodDescriptionvoidadd a dynamic factory as a child to the containervoidadd a row index column as a static column: always delegate to the topvoidaddColumnStatic(ObjectTableColumn column) add a static column: always delegate to the topvoidaddMenuRowComposite(ObjectTableColumn.TableMenuComposite rowComposite) add a menu composite: always delegate to the topvoiddebugPrint(int depth) voidforEachValue(Object c, Consumer<Object> body) getActions(GuiReprCollectionTable.TableTargetCell selection) getColumnAt(int modelIndex) obtains a column: always delegate to the topgetValueAt(Object c, int i) intbooleanbooleanbooleanMethods 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, toActionForTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.autogui.swing.table.GuiSwingTableColumnSet.DynamicColumnHost
addActionContextMethods 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.TableColumnHostadd a row index column as a static column: always delegate to the top- Specified by:
addColumnRowIndexin interfaceGuiSwingTableColumnSet.TableColumnHost
-
addColumnStatic
Description copied from interface:GuiSwingTableColumnSet.TableColumnHostadd a static column: always delegate to the top- Specified by:
addColumnStaticin interfaceGuiSwingTableColumnSet.TableColumnHost- Parameters:
column- the added column
-
addMenuRowComposite
Description copied from interface:GuiSwingTableColumnSet.TableColumnHostadd a menu composite: always delegate to the top- Specified by:
addMenuRowCompositein interfaceGuiSwingTableColumnSet.TableColumnHost- Parameters:
rowComposite- the added composite
-
getColumnAt
Description copied from interface:GuiSwingTableColumnSet.TableColumnHostobtains a column: always delegate to the top- Specified by:
getColumnAtin 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:
isNonEmptyin interfaceGuiSwingTableColumnSet.TableColumnHost
-
getColumnSize
- Specified by:
getColumnSizein 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.ObjectTableColumnSizeCompositewith 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.TableColumnHostadd a dynamic factory as a child to the container- Specified by:
addColumnDynamicin interfaceGuiSwingTableColumnSet.TableColumnHost- Parameters:
d- the added factory
-
getElementFactory
-
getActions
- Specified by:
getActionsin interfaceObjectTableModelColumns.DynamicColumnFactory
-
isStaticColumns
public boolean isStaticColumns()- Specified by:
isStaticColumnsin interfaceObjectTableModelColumns.DynamicColumnFactory
-
getDisplayName
- Specified by:
getDisplayNamein interfaceObjectTableModelColumns.DynamicColumnFactory
-
debugPrint
public void debugPrint(int depth) - Specified by:
debugPrintin interfaceObjectTableModelColumns.DynamicColumnFactory
-
isUnderMultidimentionalList
public boolean isUnderMultidimentionalList()- Specified by:
isUnderMultidimentionalListin interfaceGuiSwingTableColumnSet.TableColumnHost- Returns:
- true if it is under the multidimentional list e.g. true for E in List<List<E>>, and false for X in List<Y>, class Y {X e;}
-