|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
wt.clients.beans.table.WTAbstractTableModel
This class add the support of a table column model to the AbstractTableModel
.
The support of the data is not provided and should be implementyed in a subclass.
Field Summary | |
private TableColumnModel |
tableColumnModel
The model managing the table columns |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
WTAbstractTableModel()
Construct a new WTAbstractTableModel |
Method Summary | |
void |
addColumn(TableColumn pColumn)
Add pColumn to the list of columns displayed. |
void |
addColumns(Enumeration pColumnList)
Add all the columns of the pColumnList to the list of columns displayed. |
TableColumn |
getColumn(int columnIndex)
Returns the column at columnIndex. |
Class |
getColumnClass(int columnIndex)
Returns the lowest common denominator Class in the column. |
int |
getColumnCount()
Returns the number of columns managed by the data source object. |
String |
getColumnName(int columnIndex)
Returns the name of the column at columnIndex. |
Enumeration |
getColumns()
Answer the complete list of table columns used in the model. |
Vector |
getHeaderKeys()
Deprecated. |
Vector |
getHeaders()
Deprecated. |
Enumeration |
getHeaderSizes()
Deprecated. |
TableColumnModel |
getTableColumnModel()
Answer the current model used for managing the column. |
void |
removeColumn(TableColumn pColumn)
Remove pColumn from the list of columns displayed. |
void |
setTableColumnModel(TableColumnModel pTableColumnModel)
Set the model managing the columns |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
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 |
getRowCount, getValueAt |
Field Detail |
private TableColumnModel tableColumnModel
Constructor Detail |
public WTAbstractTableModel()
Method Detail |
public void setTableColumnModel(TableColumnModel pTableColumnModel)
pTableColumnModel
- public TableColumnModel getTableColumnModel()
public void addColumns(Enumeration pColumnList)
pColumnList
- an enumeration of columns to addpublic void addColumn(TableColumn pColumn)
pColumn
- the column to addpublic void removeColumn(TableColumn pColumn)
pColumn
- the column to removepublic Enumeration getColumns()
TableColumn
.public int getColumnCount()
TableModel.getRowCount()
public TableColumn getColumn(int columnIndex)
columnIndex
- the index of column
public String getColumnName(int columnIndex)
columnIndex
- the index of column
public Class getColumnClass(int columnIndex)
public Vector getHeaders()
public Vector getHeaderKeys()
public Enumeration getHeaderSizes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |