com.cosylab.vdct.inspector.sheet
Class SpreadsheetColumnViewModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.cosylab.vdct.inspector.sheet.SpreadsheetTableModel
com.cosylab.vdct.inspector.sheet.SpreadsheetViewModel
com.cosylab.vdct.inspector.sheet.SpreadsheetSplitViewModel
com.cosylab.vdct.inspector.sheet.SpreadsheetColumnViewModel
- All Implemented Interfaces:
- PropertyTableModel, java.io.Serializable, javax.swing.table.TableColumnModel, javax.swing.table.TableModel
public class SpreadsheetColumnViewModel
- extends SpreadsheetSplitViewModel
- implements javax.swing.table.TableColumnModel
This table model manages the column model and persistence of column widths and background color.
- Author:
- ssah
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary |
SpreadsheetColumnViewModel(java.lang.Object dsId,
java.lang.String dataType,
java.util.Vector displayData,
java.util.Vector loadedData)
|
Methods inherited from class com.cosylab.vdct.inspector.sheet.SpreadsheetSplitViewModel |
baseToSplitColumn, extendCounters, getColumnClass, getColumnHeaderValue, getColumnId, getHeaderDisplayType, getModelToPropertiesColumnIndex, getModelValue, getMultilineString, getNamesColumn, getPropertyAt, getPropertyColumn, getPropertyDisplayTypeAt, getRecentSplitData, getRecentSplitDataMaxCount, getSplitParts, getValueAt, internalSetValueAt, isCellEditable, isSolidColumn, isSplit, splitColumnByRecentList, splitToBaseColumn, storeSplitData, storeViewData, validateDraggedColumnIndex |
Methods inherited from class com.cosylab.vdct.inspector.sheet.SpreadsheetViewModel |
baseToVisibleColumn, baseToVisibleRow, deleteRows, getPropertyRow, getRowCount, isDefaultColumnVisibility, isGroupColumnsByGuiGroup, isPropertiesColumnVisible, isRowVisible, isShowAllRows, isSolidBaseColumn, setColumnOrder, setRowOrder, sortColumns, sortRows, visibleToBaseColumn, visibleToBaseRow |
Methods inherited from class com.cosylab.vdct.inspector.sheet.SpreadsheetTableModel |
getColumnOrderIndex, getColumnOrderNames, getLastInspectable, getLoadedInspectablesNames, getProperties, getPropertiesColumnCount, getPropertiesColumnIndex, getPropertiesColumnNames, getPropertiesRowCount, getPropertiesRowIndex, getPropertiesRowNames, getProperty, getPropertyValue, getViewRecord, internalSetValueAtAndUpdate, refresh, setColumnOrderIndex, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpreadsheetColumnViewModel
public SpreadsheetColumnViewModel(java.lang.Object dsId,
java.lang.String dataType,
java.util.Vector displayData,
java.util.Vector loadedData)
throws java.lang.IllegalArgumentException
- Parameters:
dataType
- displayData
- loadedData
-
- Throws:
java.lang.IllegalArgumentException
setRenderer
public void setRenderer(javax.swing.table.TableCellRenderer renderer)
- Parameters:
renderer
- the renderer to set
onColumnWidthChange
public void onColumnWidthChange()
recallView
public void recallView()
- Overrides:
recallView
in class SpreadsheetSplitViewModel
storeView
public void storeView()
- Overrides:
storeView
in class SpreadsheetSplitViewModel
refreshAll
protected void refreshAll()
- Overrides:
refreshAll
in class SpreadsheetSplitViewModel
repositionColumn
public void repositionColumn(int startIndex,
int destIndex)
- Overrides:
repositionColumn
in class SpreadsheetSplitViewModel
setColumnOrder
public void setColumnOrder(java.lang.String modeName)
- Overrides:
setColumnOrder
in class SpreadsheetSplitViewModel
setColumnsVisibility
public void setColumnsVisibility(int[] columns,
boolean visible)
- Overrides:
setColumnsVisibility
in class SpreadsheetSplitViewModel
setPropertyColumnsVisibility
public void setPropertyColumnsVisibility(int[] columns,
boolean visible)
- Overrides:
setPropertyColumnsVisibility
in class SpreadsheetSplitViewModel
setDefaultColumnVisibility
public void setDefaultColumnVisibility()
- Overrides:
setDefaultColumnVisibility
in class SpreadsheetSplitViewModel
setRowsVisibility
public void setRowsVisibility(int[] rows,
boolean visible)
- Overrides:
setRowsVisibility
in class SpreadsheetSplitViewModel
setShowAllRows
public void setShowAllRows(boolean showAllRows)
- Overrides:
setShowAllRows
in class SpreadsheetSplitViewModel
setGroupColumnsByGuiGroup
public void setGroupColumnsByGuiGroup(boolean groupColumnsByGuiGroup)
- Overrides:
setGroupColumnsByGuiGroup
in class SpreadsheetSplitViewModel
sortRowsByColumn
public void sortRowsByColumn(int column)
- Overrides:
sortRowsByColumn
in class SpreadsheetSplitViewModel
splitColumn
public void splitColumn(DBSheetSplitCol splitData,
int column)
- Overrides:
splitColumn
in class SpreadsheetSplitViewModel
getBackground
public java.awt.Color getBackground()
setBackground
public void setBackground(java.awt.Color background)
getDefaultBackground
public java.awt.Color getDefaultBackground()
setDefaultBackground
public void setDefaultBackground(java.awt.Color defaultBackground)
isColumsDefault
protected boolean isColumsDefault()
- Overrides:
isColumsDefault
in class SpreadsheetViewModel
addColumn
public void addColumn(javax.swing.table.TableColumn column)
- Specified by:
addColumn
in interface javax.swing.table.TableColumnModel
addColumnModelListener
public void addColumnModelListener(javax.swing.event.TableColumnModelListener x)
- Specified by:
addColumnModelListener
in interface javax.swing.table.TableColumnModel
getColumn
public javax.swing.table.TableColumn getColumn(int columnIndex)
- Specified by:
getColumn
in interface javax.swing.table.TableColumnModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface javax.swing.table.TableColumnModel
- Specified by:
getColumnCount
in interface javax.swing.table.TableModel
- Overrides:
getColumnCount
in class SpreadsheetSplitViewModel
getColumnIndex
public int getColumnIndex(java.lang.Object columnIdentifier)
- Specified by:
getColumnIndex
in interface javax.swing.table.TableColumnModel
getColumnIndexAtX
public int getColumnIndexAtX(int position)
- Specified by:
getColumnIndexAtX
in interface javax.swing.table.TableColumnModel
getColumnMargin
public int getColumnMargin()
- Specified by:
getColumnMargin
in interface javax.swing.table.TableColumnModel
getColumns
public java.util.Enumeration getColumns()
- Specified by:
getColumns
in interface javax.swing.table.TableColumnModel
getColumnSelectionAllowed
public boolean getColumnSelectionAllowed()
- Specified by:
getColumnSelectionAllowed
in interface javax.swing.table.TableColumnModel
getSelectedColumnCount
public int getSelectedColumnCount()
- Specified by:
getSelectedColumnCount
in interface javax.swing.table.TableColumnModel
getSelectedColumns
public int[] getSelectedColumns()
- Specified by:
getSelectedColumns
in interface javax.swing.table.TableColumnModel
getSelectionModel
public javax.swing.ListSelectionModel getSelectionModel()
- Specified by:
getSelectionModel
in interface javax.swing.table.TableColumnModel
getTotalColumnWidth
public int getTotalColumnWidth()
- Specified by:
getTotalColumnWidth
in interface javax.swing.table.TableColumnModel
moveColumn
public void moveColumn(int columnIndex,
int newIndex)
- Specified by:
moveColumn
in interface javax.swing.table.TableColumnModel
removeColumn
public void removeColumn(javax.swing.table.TableColumn column)
- Specified by:
removeColumn
in interface javax.swing.table.TableColumnModel
removeColumnModelListener
public void removeColumnModelListener(javax.swing.event.TableColumnModelListener x)
- Specified by:
removeColumnModelListener
in interface javax.swing.table.TableColumnModel
setColumnMargin
public void setColumnMargin(int newMargin)
- Specified by:
setColumnMargin
in interface javax.swing.table.TableColumnModel
setColumnSelectionAllowed
public void setColumnSelectionAllowed(boolean flag)
- Specified by:
setColumnSelectionAllowed
in interface javax.swing.table.TableColumnModel
setSelectionModel
public void setSelectionModel(javax.swing.ListSelectionModel newModel)
- Specified by:
setSelectionModel
in interface javax.swing.table.TableColumnModel