|
JBCSolutions - Jbcgrid v1.6 This document is the API specification for the JbcGrid, version 1.6 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
jbc.grid.JbcGridDefaultTableModel
public class JbcGridDefaultTableModel
This TableModel extends the DefaultTableModel, so you may use all the functionalities of DefaultTableModel, especially the vector facilities.
JbcGridAbstractTableModel
,
Serialized FormConstructor Summary | |
---|---|
JbcGridDefaultTableModel()
Constructs a default JbcGridDefaultTableModel
which is a table of zero columns and zero rows. |
|
JbcGridDefaultTableModel(int rowCount,
int columnCount)
Constructs a JbcGridDefaultTableModel with
rowCount and columnCount of
null object values. |
|
JbcGridDefaultTableModel(java.lang.Object[][] data,
java.lang.Object[] columnNames)
Constructs a JbcGridDefaultTableModel and initializes the table
by passing data and columnNames
to the setDataVector
method. |
|
JbcGridDefaultTableModel(java.lang.Object[] columnNames,
int rowCount)
Constructs a JbcGridDefaultTableModel with as many
columns as there are elements in columnNames
and rowCount of null
object values. |
|
JbcGridDefaultTableModel(java.util.Vector columnNames,
int rowCount)
Constructs a JbcGridDefaultTableModel with as many columns
as there are elements in columnNames
and rowCount of null
object values. |
|
JbcGridDefaultTableModel(java.util.Vector data,
java.util.Vector columnNames)
Constructs a JbcGridDefaultTableModel and initializes the table
by passing data and columnNames
to the setDataVector method. |
Method Summary | |
---|---|
javax.swing.JComponent |
getExpandedRowComponent(int row)
You should override this method and return a component that will be used to overload the row. |
javax.swing.JComponent |
getExpandedTreeviewComponent(int row)
You should override this method and return a component that will be used to expand the row. |
boolean |
isExpandableTreeview(int row)
Returns true if this row may be expanded in tree view. |
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JbcGridDefaultTableModel()
JbcGridDefaultTableModel
which is a table of zero columns and zero rows.
public JbcGridDefaultTableModel(int rowCount, int columnCount)
JbcGridDefaultTableModel
with
rowCount
and columnCount
of
null
object values.
rowCount
- the number of rows the table holdscolumnCount
- the number of columns the table holdspublic JbcGridDefaultTableModel(java.util.Vector columnNames, int rowCount)
JbcGridDefaultTableModel
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 JbcGridDefaultTableModel(java.lang.Object[] columnNames, int rowCount)
JbcGridDefaultTableModel
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 holdsDefaultTableModel.setDataVector(java.util.Vector, java.util.Vector)
,
DefaultTableModel.setValueAt(java.lang.Object, int, int)
public JbcGridDefaultTableModel(java.util.Vector data, java.util.Vector columnNames)
JbcGridDefaultTableModel
and initializes the table
by passing data
and columnNames
to the setDataVector
method.
data
- the data of the tablecolumnNames
- vector
containing the names
of the new columnsDefaultTableModel.getDataVector()
,
DefaultTableModel.setDataVector(java.util.Vector, java.util.Vector)
public JbcGridDefaultTableModel(java.lang.Object[][] data, java.lang.Object[] columnNames)
JbcGridDefaultTableModel
and initializes the table
by passing data
and columnNames
to the setDataVector
method. The first index in the Object[][]
array is
the row index and the second is the column index.
data
- the data of the tablecolumnNames
- the names of the columnsDefaultTableModel.getDataVector()
,
DefaultTableModel.setDataVector(java.util.Vector, java.util.Vector)
Method Detail |
---|
public boolean isExpandableTreeview(int row)
An expandable row is a row that may answer favourably to the getExpandedTreeviewComponent method.
You should override this method and return true if the specified row is expandable.
isExpandableTreeview
in interface JbcGridInterfaceTableModel
getExpandedTreeviewComponent(int)
public javax.swing.JComponent getExpandedTreeviewComponent(int row)
getExpandedTreeviewComponent
in interface JbcGridInterfaceTableModel
row
- the row index
isExpandableTreeview(int)
public javax.swing.JComponent getExpandedRowComponent(int row)
getExpandedRowComponent
in interface JbcGridInterfaceTableModel
row
- the row index
|
JBCSolutions - Jbcgrid v1.6 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |