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
ObjectTableColumn
s 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.DynamicColumnFactory
traverses 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 ObjectTableModelColumns
protected List
<ObjectTableColumn> protected int
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicColumnContainer
(ObjectTableModelColumns columns, int lastIndex) DynamicColumnContainer
(ObjectTableModelColumns columns, ObjectTableModelColumns.DynamicColumnFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ObjectTableColumn column) void
addRootListActionContext
(GuiMappingContext actionContext) getChild
(int i) int
getColumnSize
(Object list) getDynamicColumnActions
(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) int
int
boolean
void
void
removeChildrenFromEnd
(int removingSize) void
removeColumnsFromEnd
(int removingSize) void
setLastIndex
(int lastIndex) int
update
(int startIndex, ObjectTableModelColumns.ObjectTableColumnSize newSize) void
viewUpdate
(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)
-