|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiTableModel
MultiTableModel
is a special table model which it can use one table model to
represent multiple table models.
There are two ways of using this table model.
First, MultiTableModel
Please notes the terms we used. They are a little confusing.
ColumnHeader == header row; ColumnFooter == footer row; RowHeader == header column; RowFooter == footer column.
MultiTableModel
will make it possible. So in a unified table mode, you can define which columns are headers
which will appear at the left side of the table, which columns are footer which will appears at the right side of the table.
Once you defined this table model, TableScrollPane
will take it and display it correctly.
The header columns and footer columns are not necessarily at the same cluster. They can be anywhere inside the table model. TableScrollPane will find all those special columns and put them at the right place.
TableScrollPane
Field Summary | |
---|---|
static int |
FOOTER_COLUMN
|
static int |
HEADER_COLUMN
|
static int |
REGULAR_COLUMN
|
Method Summary | |
---|---|
int |
getColumnType(int columnIndex)
Checks if the column at the columnIndex is a header column or footer column or just regular column. |
int |
getTableIndex(int columnIndex)
Gets the table index that this column belongs to. |
Methods inherited from interface com.jidesoft.grid.ContextSensitiveTableModel |
---|
getCellClassAt, getConverterContextAt, getEditorContextAt |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Field Detail |
---|
static final int REGULAR_COLUMN
static final int HEADER_COLUMN
static final int FOOTER_COLUMN
Method Detail |
---|
int getColumnType(int columnIndex)
columnIndex
- the column index
int getTableIndex(int columnIndex)
columnIndex
- the column index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |