Module org.autogui
Package org.autogui.swing.table
Class ObjectTableModelColumns.DynamicColumnContainer
java.lang.Object
org.autogui.swing.table.ObjectTableModelColumns.DynamicColumnContainer
- Enclosing class:
ObjectTableModelColumns
a container of dynamic columns. it constructs a tree.
each node has an associated
ObjectTableModelColumns.DynamicColumnFactory and
ObjectTableColumns created from the factory.
ObjectTableModelColumns.addColumnDynamic(ObjectTableModelColumns.DynamicColumnFactory)creates a container. At the time, sub-containers are not created.- By refreshing columns,
getColumnSize(Object)is invoked with a raw list object. The tree ofObjectTableModelColumns.DynamicColumnFactorytraverses the object and constructs a tree ofObjectTableModelColumns.ObjectTableColumnSize - Next,
update(int, ObjectTableModelColumns.ObjectTableColumnSize)of the root is called. it startsObjectTableModelColumns.ObjectTableColumnSize.create(ObjectTableModelColumns.DynamicColumnContainer)from the root size with the root container. The create method traverses children and then the sub-containers are created on-demand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectTableModelColumnsprotected List<ObjectTableColumn> protected int -
Constructor Summary
ConstructorsConstructorDescriptionDynamicColumnContainer(ObjectTableModelColumns columns, int lastIndex) DynamicColumnContainer(ObjectTableModelColumns columns, ObjectTableModelColumns.DynamicColumnFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ObjectTableColumn column) voidaddRootListActionContext(GuiMappingContext actionContext) getChild(int i) intgetColumnSize(Object list) getDynamicColumnActions(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) intintbooleanvoidvoidremoveChildrenFromEnd(int removingSize) voidremoveColumnsFromEnd(int removingSize) voidsetLastIndex(int lastIndex) intupdate(int startIndex, ObjectTableModelColumns.ObjectTableColumnSize newSize) voidviewUpdate(ObjectTableColumn source)
-
Field Details
-
columns
-
factory
-
columnsInSize
-
children
-
lastIndex
protected int lastIndex
-
-
Constructor Details
-
DynamicColumnContainer
public DynamicColumnContainer(ObjectTableModelColumns columns, ObjectTableModelColumns.DynamicColumnFactory factory) -
DynamicColumnContainer
-
-
Method Details
-
getFactory
-
getColumnSize
-
update
-
isStaticColumns
public boolean isStaticColumns() -
add
-
removeColumnsFromEnd
public void removeColumnsFromEnd(int removingSize) -
getLastIndexAfterUpdate
public int getLastIndexAfterUpdate() -
getLastIndex
public int getLastIndex() -
setLastIndex
public void setLastIndex(int lastIndex) -
getChild
-
getChildSize
public int getChildSize() -
removeChildrenFromEnd
public void removeChildrenFromEnd(int removingSize) -
getColumnsInSize
-
moveExistingColumns
public void moveExistingColumns() -
viewUpdate
-
addRootListActionContext
-
getDynamicColumnActions
public List<Action> getDynamicColumnActions(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource)
-