|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridModel
Field Summary | |
---|---|
static Integer |
DELETE_CELL
A value that indicates the intention to remove a DsCell (value and style properties) from the grid. |
Method Summary | |
---|---|
void |
addColumn(Object columnName)
Adds a column to the model. |
void |
insertRow(int row,
Vector rowData)
Inserts a row at row in the model. |
void |
removeRow(int row)
Removes the row at row from the model. |
void |
setColumnCount(int columnCount)
Sets the number of columns in the model. |
void |
setRowCount(int rowCount)
Sets the number of rows in the model. |
void |
sort(int column,
int sortOrder)
Sorts the model by comparing values in the given column |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
Field Detail |
---|
static final Integer DELETE_CELL
Method Detail |
---|
void setRowCount(int rowCount)
rowCount
and greater are discarded.
void insertRow(int row, Vector rowData)
row
in the model. The new row
will contain null
values unless rowData
is specified. Notification of the row being added will be generated.
row
- the row index of the row to be insertedrowData
- optional data of the row being added
ArrayIndexOutOfBoundsException
- if the row was invalidvoid removeRow(int row)
row
from the model. Notification
of the row being removed will be sent to all the listeners.
row
- the row index of the row to be removed
ArrayIndexOutOfBoundsException
- if the row was invalidvoid setColumnCount(int columnCount)
null
cell values.
If the new size is less than the current size, all columns at index
columnCount
and greater are discarded.
columnCount
- the new number of columns in the modelsetColumnCount(int)
void addColumn(Object columnName)
columnName
, which may be null. This method
will send a
tableChanged
notification message to all the listeners.
This method is a cover for addColumn(Object, Vector)
which
uses null
as the data vector.
columnName
- the identifier of the column being addedvoid sort(int column, int sortOrder)
column
- column to be sortedsortOrder
- One of: DsGrid.ASCENDING, DsGrid.DESCENDING, DsGrid.ASCENDING_CASE, DsGrid.DESCENDING_CASE
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |