Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableColumnCollection.DynamicColumnFactoryComposite
java.lang.Object
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryComposite
- All Implemented Interfaces:
GuiSwingTableColumnSet.DynamicColumnHost,GuiSwingTableColumnSet.TableColumnHost,ObjectTableModelColumns.DynamicColumnFactory
- Enclosing class:
GuiSwingTableColumnCollection
public static class GuiSwingTableColumnCollection.DynamicColumnFactoryComposite
extends GuiSwingTableColumnCollection.DynamicColumnFactoryBase
implements ObjectTableModelColumns.DynamicColumnFactory, GuiSwingTableColumnSet.DynamicColumnHost, GuiSwingTableColumnSet.TableColumnHost
size-factory for class C { T0 f0; T1 f0; ... }
-
Field Summary
FieldsFields inherited from class org.autogui.swing.table.GuiSwingTableColumnCollection.DynamicColumnFactoryBase
actionContexts, context, elementIndex, indexSet, model, parentFactory, specifierManager -
Constructor Summary
ConstructorsConstructorDescriptionDynamicColumnFactoryComposite(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model) -
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) getActions(GuiReprCollectionTable.TableTargetCell selection) getColumnAt(int modelIndex) obtains a column: always delegate to the topgetColumnSizeForMember(Object obj, ObjectTableModelColumns.DynamicColumnFactory memberFactory) booleanbooleanbooleanMethods 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
-
factories
-
-
Constructor Details
-
DynamicColumnFactoryComposite
public DynamicColumnFactoryComposite(GuiMappingContext context, GuiSwingView.SpecifierManager specifierManager, GuiSwingTableColumnSet.TableColumnHost model)
-
-
Method Details
-
getFactories
-
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
-
isNonEmpty
public boolean isNonEmpty()- Specified by:
isNonEmptyin interfaceGuiSwingTableColumnSet.TableColumnHost
-
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
-
getColumnSize
- Specified by:
getColumnSizein interfaceObjectTableModelColumns.DynamicColumnFactory- Parameters:
c- an obtained list- Returns:
- create a size info. for the actual object
-
getColumnSizeForMember
public ObjectTableModelColumns.ObjectTableColumnSize getColumnSizeForMember(Object obj, ObjectTableModelColumns.DynamicColumnFactory memberFactory) -
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
-
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;}
-