|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--com.smardec.asc.spantable.DefaultSpanTableModel
This is an implementation of TableModel
that uses a Vector
to store the TableCell
objects.
Field Summary | |
static java.util.Vector |
EMPTY_VECTOR
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
DefaultSpanTableModel()
Constructs a DefaultSpanTableModel which is a span table of zero columns and zero rows. |
|
DefaultSpanTableModel(int rowCount,
int columnCount)
Constructs a DefaultSpanTableModel with rowCount and columnCount
of null object values. |
|
DefaultSpanTableModel(java.lang.Object[] columnNames,
int rowCount)
Constructs a DefaultSpanTableModel with as many
columns as there are elements in columnNames
and rowCount of null
object values. |
|
DefaultSpanTableModel(java.util.Vector data,
boolean editable,
java.util.Vector columnNames)
Constructs a DefaultSpanTableModel and initializes the table
by passing data and columnNames
to the setDataVector method. |
|
DefaultSpanTableModel(java.util.Vector columnNames,
int rowCount)
Constructs a DefaultSpanTableModel with as many columns
as there are elements in columnNames
and rowCount of null
object values. |
|
DefaultSpanTableModel(java.util.Vector data,
java.util.Vector columnNames)
Constructs a DefaultSpanTableModel and initializes the table
by passing data and columnNames
to the setDataVector method. |
Method Summary | |
TableCell |
getTableCell(int rowIndex,
int columnIndex)
Returns table cell at specified row and column. |
protected TableCell |
getTableCell0(int rowIndex,
int columnIndex)
Returns table cell at specified row and column. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, 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 |
getColumnCount, getRowCount, getValueAt |
Field Detail |
public static final java.util.Vector EMPTY_VECTOR
Constructor Detail |
public DefaultSpanTableModel()
DefaultSpanTableModel
which is a span table of zero columns and zero rows.
public DefaultSpanTableModel(int rowCount, int columnCount)
DefaultSpanTableModel
with rowCount
and columnCount
of null
object values.
rowCount
- the number of rows the span table holdscolumnCount
- the number of columns the span table holdspublic DefaultSpanTableModel(java.util.Vector columnNames, int rowCount)
DefaultSpanTableModel
with as many columns
as there are elements in columnNames
and rowCount
of null
object values. Each column's name will be taken from
the columnNames
vector.
columnNames
- vector
containing the names
of the new columns; if this is
null
then the model has no columnsrowCount
- the number of rows the table holdspublic DefaultSpanTableModel(java.lang.Object[] columnNames, int rowCount)
DefaultSpanTableModel
with as many
columns as there are elements in columnNames
and rowCount
of null
object values. Each column's name will be taken from
the columnNames
array.
columnNames
- array
containing the names of the new columns; if this is
null
then the model has no columnsrowCount
- the number of rows the table holdspublic DefaultSpanTableModel(java.util.Vector data, java.util.Vector columnNames)
DefaultSpanTableModel
and initializes the table
by passing data
and columnNames
to the setDataVector
method. All data is editable by default.
data
- the data of the tablecolumnNames
- vector
containing the names of the new columnsDefaultSpanTableModel(java.util.Vector, boolean, java.util.Vector)
public DefaultSpanTableModel(java.util.Vector data, boolean editable, java.util.Vector columnNames)
DefaultSpanTableModel
and initializes the table
by passing data
and columnNames
to the setDataVector
method.
data
- the data of the tableeditable
- true
if table should be editable by default, false
otherwisecolumnNames
- vector
containing the names of the new columnsMethod Detail |
public TableCell getTableCell(int rowIndex, int columnIndex)
rowIndex
or columnIndex
is out of range
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried
protected TableCell getTableCell0(int rowIndex, int columnIndex)
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |