JIDE 3.5.15

com.jidesoft.gantt
Class DefaultGanttTreeTableModel<T extends Row>

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jidesoft.grid.TreeTableModel
          extended by com.jidesoft.gantt.DefaultGanttTreeTableModel<T>
All Implemented Interfaces:
ContextSensitiveTableModel, IndexChangeEventGenerator, ITreeTableModel, MultiTableModel, Serializable, TableModel

public class DefaultGanttTreeTableModel<T extends Row>
extends TreeTableModel

This is a TreeTableModel implementation for DefaultGanttModel. It will automatically return 4 columns with the corresponding column name. It will also try to listen to the table model event from sub entry changes then fire a customized table model event so that the DefaultGanttModel could fire correct GanttModelEvent with correct SubEntryGanttEntry information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.TreeTableModel
_filtersApplied
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Fields inherited from interface com.jidesoft.grid.MultiTableModel
FOOTER_COLUMN, HEADER_COLUMN, REGULAR_COLUMN
 
Constructor Summary
DefaultGanttTreeTableModel()
          Default constructor.
DefaultGanttTreeTableModel(List<? extends T> rows)
          Constructor.
 
Method Summary
protected  ExpandableRow createRoot()
          Creates ExpandableRow which will be used as the root row.
 int getColumnCount()
           
 String getColumnName(int column)
           
 
Methods inherited from class com.jidesoft.grid.TreeTableModel
addIndexChangeListener, addRow, addRow, addRow, addRow, addRow, addRows, addRows, addRows, addRows, addRows, buildRows, cacheAll, collapseAll, collapseFirstLevel, collapseLastLevel, collapseRows, createCompoundTableModelEvent, createRows, expandAll, expandFirstLevel, expandNextLevel, expandRow, expandRows, expandTreePath, fireTableRowsUpdated, getCellClassAt, getChild, getChildCount, getColumnType, getConverterContextAt, getEditorContextAt, getExpansionState, getIndexChangeListeners, getIndexOfChild, getOriginalRows, getRoot, getRowAt, getRowCount, getRowCount, getRowIndex, getRows, getRows, getTableIndex, getValueAt, invalidateCache, isAdjusting, isAutoExpand, isCellEditable, isFilterParent, isFiltersApplied, isInitialized, isLeaf, moveDownRow, moveUpRow, refresh, removeIndexChangeListener, removeRow, removeRow, setAdjusting, setAutoExpand, setChildren, setExpansionState, setFilterParent, setFiltersApplied, setOriginalRows, setValueAt, shouldBeFiltered
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, removeTableModelListener
 

Constructor Detail

DefaultGanttTreeTableModel

public DefaultGanttTreeTableModel()
Default constructor.


DefaultGanttTreeTableModel

public DefaultGanttTreeTableModel(List<? extends T> rows)
Constructor.

Parameters:
rows - the gantt entries.
Method Detail

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

createRoot

protected ExpandableRow createRoot()
Description copied from class: TreeTableModel
Creates ExpandableRow which will be used as the root row.

Overrides:
createRoot in class TreeTableModel
Returns:
an instance of RootExpandableRow.

JIDE 3.5.15