java.lang.Object
org.autogui.swing.table.ObjectTableModelColumns
- All Implemented Interfaces:
EventListener
,TableColumnModelListener
,GuiSwingTableColumnSet.TableColumnHost
- Direct Known Subclasses:
GuiSwingTableModelCollection.GuiSwingTableModelColumns
public class ObjectTableModelColumns
extends Object
implements GuiSwingTableColumnSet.TableColumnHost, TableColumnModelListener
column managing part of
ObjectTableModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
a container of dynamic columns.static interface
a factory of size info.static interface
a factory with supporting root-actions: actions defined in the owner of a list.static class
size information of hierarchical composition of sub-columnsstatic class
a composite of other sizesstatic interface
a listener interface for dynamic column changesstatic class
a row-sorter for dynamic columns -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DefaultTableColumnModel
protected List
<ObjectTableColumn> protected List
<ObjectTableColumn.TableMenuComposite> protected List
<ObjectTableColumn> protected int
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
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
protected void
void
void
void
void
int
convertColumnModelToView
(int modelIndex) getColumnAt
(int index) obtains a column: always delegate to the topint
getColumnSizeForUpdate
(Object list) getDynamicColumnsActions
(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) int
int
boolean
boolean
void
moveColumn
(ObjectTableColumn column, int viewIndex) void
removeColumnsDynamic
(List<ObjectTableColumn> columns) void
shutdown()
void
update
(List<ObjectTableModelColumns.ObjectTableColumnSize> sizeListForEachColumns)
-
Field Details
-
columnModel
-
columns
-
staticColumns
-
dynamicColumns
-
modelToView
-
updater
-
viewUpdating
protected int viewUpdating
-
-
Constructor Details
-
ObjectTableModelColumns
-
-
Method Details
-
getColumnModel
-
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
-
columnAdded
protected void columnAdded(ObjectTableColumn column, ObjectTableModelColumns.DynamicColumnContainer d) -
addColumnDynamic
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
add a dynamic factory as a child to the container- Specified by:
addColumnDynamic
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
column
- the added factory
-
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
-
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
-
getMenuRowComposites
-
getColumnCount
public int getColumnCount() -
getColumnAt
Description copied from interface:GuiSwingTableColumnSet.TableColumnHost
obtains a column: always delegate to the top- Specified by:
getColumnAt
in interfaceGuiSwingTableColumnSet.TableColumnHost
- Parameters:
index
- a model index of the column (not a child index)- Returns:
- a column of the modelIndex in the table
-
getColumns
-
getStaticColumns
-
getDynamicColumns
-
isNonEmpty
public boolean isNonEmpty()- Specified by:
isNonEmpty
in interfaceGuiSwingTableColumnSet.TableColumnHost
-
getRootContainer
-
getDynamicColumnsActions
public List<Action> getDynamicColumnsActions(GuiReprCollectionTable.TableTargetCell selection, GuiSwingTableColumnSet.TableSelectionSource tableSource) -
getColumnSizeForUpdate
-
update
-
isStaticColumns
public boolean isStaticColumns() -
addColumnDynamic
-
removeColumnsDynamic
-
getTotalWidth
public int getTotalWidth() -
getRowHeight
public int getRowHeight() -
columnAdded
- Specified by:
columnAdded
in interfaceTableColumnModelListener
-
columnRemoved
- Specified by:
columnRemoved
in interfaceTableColumnModelListener
-
columnMoved
- Specified by:
columnMoved
in interfaceTableColumnModelListener
-
moveColumn
-
convertColumnModelToView
public int convertColumnModelToView(int modelIndex) -
columnMarginChanged
- Specified by:
columnMarginChanged
in interfaceTableColumnModelListener
-
columnSelectionChanged
- Specified by:
columnSelectionChanged
in interfaceTableColumnModelListener
-
shutdown
public void shutdown()
-