public interface Editable extends GridDataModel
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(int beforeColumn,
Object[] column)
This method adds a column into the model.
|
void |
addColumn(int beforeColumn,
String name,
Object[] column)
This method adds a column into the model.
|
void |
addListener(EditableModelListener listener)
This method registers the specified listener to receive model events.
|
void |
addRow(int beforeRow,
Object[] row)
This method adds a row into the model.
|
void |
clearRemovedRows()
This method clears removed rows from the model history
|
String[] |
getColumnNames()
This method gets a list of column names.
|
GridColumn[] |
getColumns()
Gets an array of all model columns.
|
GridColumn |
getGridColumn(int index)
Gets a grid column by index.
|
DataModelCallbackHandler<Editable> |
getHandler()
This method returns a callback handler instance.
|
Object[][] |
getRemovedRows()
This method returns removed rows.
|
GridRow |
getRow(int index)
Gets a grid row by index.
|
GridRow[] |
getRows()
This method returns all rows of the model.
|
int |
getTotalColumnCount()
This method returns a total row count.
|
void |
removeAll()
This method removes all rows from the model.
|
void |
removeColumn(int columnNumber)
This method removes a column from the model.
|
void |
removeColumn(String name)
This method removes a column from the model.
|
void |
removeListener(EditableModelListener listener)
This method unregisters the specified listener to stop model events receiving.
|
void |
removeRow(int rowNumber)
This method removes a row from the model.
|
void |
setColumNames(String[] names)
This method sets a list of column names
This list must be in the same order like the data array columns (see
update(Object[][]) for details. |
void |
setHandler(DataModelCallbackHandler<Editable> handler)
This method sets a callback handler.
|
void |
setSortColumn(int sortColumn,
Comparator<Object> comparator)
This method sets a sort column and uses the specified comparator.
|
void |
update(int row,
int column,
Object data)
This method updates the specified cell with the value.
|
void |
update(Object[][] data)
This method updates data in the model using the specified value.
|
void |
updateColumn(int columnNumber,
Object[] column)
This method updates a column with the specified data set.
|
void |
updateColumn(String name,
Object[] column)
This method updates a column with the specified data set.
|
void |
updateRow(int rowNumber,
Object[] row)
This method updates a row with the specified data set.
|
getData, getEndRow, getRowData, getSortColumn, getStartRow, getTotalRowCount, isAscending, isEmpty, setAscending, setSortColumngetCurrentPageNumber, getDisplayedPages, getEndPage, getPageSize, getStartPage, getTotalPagesNumber, setCurrentPageNumber, setDisplayedPages, setPageSizevoid addRow(int beforeRow,
Object[] row)
throws IllegalArgumentException
beforeRow - is a row number.row - is row data.IllegalArgumentException - if the row number is invalid.void updateRow(int rowNumber,
Object[] row)
throws IllegalArgumentException
rowNumber - is a row number.row - is row data.IllegalArgumentException - if the row number is invalid.void removeRow(int rowNumber)
throws IllegalArgumentException
rowNumber - is a row number.IllegalArgumentException - if the row number is invalid.void addColumn(int beforeColumn,
Object[] column)
throws IllegalArgumentException
beforeColumn - a column number.column - a column data set.IllegalArgumentException - if the column number is invalid.void addColumn(int beforeColumn,
String name,
Object[] column)
throws IllegalArgumentException
beforeColumn - a column number.name - a column name.column - a column data set.IllegalArgumentException - if the column number is invalid.void updateColumn(int columnNumber,
Object[] column)
throws IllegalArgumentException
columnNumber - a column number.column - a column data set.IllegalArgumentException - if the column number is invalid.void updateColumn(String name, Object[] column)
name - a column name.column - a column data set.void removeColumn(int columnNumber)
throws IllegalArgumentException
columnNumber - a column number.IllegalArgumentException - if the column number is invalid.void removeColumn(String name)
name - a column name.void removeAll()
void update(int row,
int column,
Object data)
throws IllegalArgumentException
row - is a row number.column - is a column number.data - is a data to be applied.IllegalArgumentException - if row and / or column number is invalid.void setSortColumn(int sortColumn,
Comparator<Object> comparator)
sortColumn - is a sort column.comparator - is a column comparator.DataModelCallbackHandler<Editable> getHandler()
void update(Object[][] data)
data - is a data to be placed.void setHandler(DataModelCallbackHandler<Editable> handler)
handler - a callback handler.int getTotalColumnCount()
Object[][] getRemovedRows()
void clearRemovedRows()
GridRow[] getRows()
GridColumn[] getColumns()
GridRow getRow(int index)
index - is an index value.GridColumn getGridColumn(int index)
index - is an index value.String[] getColumnNames()
void setColumNames(String[] names)
update(Object[][]) for details.names - is a list of column names.void addListener(EditableModelListener listener)
listener - is a model listener to register.void removeListener(EditableModelListener listener)
listener - is a model listener to be removed.Copyright © 2008–2013. All rights reserved.