| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EditableTableModel
EditableTableModel supports addding, removing and duplicating row and columns. If your table model doesn't support any of these functions, just have an empty implementation for the corresponding methods.
| Method Summary | |
|---|---|
 void | 
addColumn(java.lang.Object columnName,
          java.lang.Object[] columnData)
Adds a column to the model.  | 
 void | 
addRow(java.lang.Object[] rowData)
Adds a row to the end of the model.  | 
 int | 
duplicateColumn(int column,
                int nCopy)
Duplicate the specified column and insert the column at a proper location.  | 
 int | 
duplicateRow(int row,
             int nCopy)
Duplicate the specified row and insert the row data at a proper location.  | 
 void | 
insertColumn(int column,
             java.lang.Object columnName,
             java.lang.Object[] columnData)
Inserts a column at column in the model. | 
 void | 
insertRow(int row,
          java.lang.Object[] rowData)
Inserts a row at row in the model. | 
 void | 
removeColumn(int column)
Removes the column at column from the model. | 
 void | 
removeRow(int row)
Removes the row at row from the model. | 
| Method Detail | 
|---|
void addRow(java.lang.Object[] rowData)
rowData - optional data of the row being added
void addColumn(java.lang.Object columnName,
               java.lang.Object[] columnData)
void insertRow(int row,
               java.lang.Object[] 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
java.lang.ArrayIndexOutOfBoundsException - if the row was invalid
void insertColumn(int column,
                  java.lang.Object columnName,
                  java.lang.Object[] columnData)
column in the model. The new column will 
 have the identifier columnName. columnData is the optional array of 
 data for the column. If it is null  the column is filled with null values. 
 Otherwise, the new data will be added to model starting with the first 
 element going to row 0, etc. This method will send a tableChanged 
 notification message to all the listeners.
column - the row index of the column to be inserted
java.lang.ArrayIndexOutOfBoundsException - if the column 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
java.lang.ArrayIndexOutOfBoundsException - if the row was invalidvoid removeColumn(int column)
column from the model. Notification of 
 the column being removed will be sent to all the listeners.
column - the column index of the row to be removed
java.lang.ArrayIndexOutOfBoundsException - if the column was invalid
int duplicateRow(int row,
                 int nCopy)
row, - the row to be duplicatednCopy, - nth copy of this row.
java.lang.ArrayIndexOutOfBoundsException - if the row was invalid
int duplicateColumn(int column,
                    int nCopy)
column, - the column to be duplicatednCopy, - nth copy of this column.
java.lang.ArrayIndexOutOfBoundsException - if the column was invalid
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||