public interface IDataGridModel extends IGridModel
Modifier and Type | Method and Description |
---|---|
void |
applyFilters(java.lang.String filteredColumnName,
java.util.Map<java.lang.String,AFilterDefinition<?>> filters)
If
isFilterable() then this method can be used to change
data filter definitions, otherwise you can assume that it is never used. |
boolean |
canDoContainsSearch() |
boolean |
canSearchOnSortedColumn() |
int |
containsSearch(java.lang.String columnName,
java.lang.String value,
boolean forward,
int startFrom) |
java.util.Map<java.lang.String,AFilterDefinition<?>> |
getFilters() |
java.lang.Boolean |
getSortedAscendingIndicator() |
java.lang.String |
getSortedColumn() |
boolean |
isFilterable() |
boolean |
isSortable() |
int |
searchOnSortedColumn(java.lang.Object value)
Searches the given value between values of the currently sorted column.
|
void |
setSortedColumn(java.lang.String columnName,
boolean ascending)
If
isSortable() then this method is used to change the sort order
otherwise you can assume that it is never used. |
fetchRows, getColumn, getColumnCount, getColumnGroup, getColumnIndex, getColumnName, getCurrentRow, getCurrentRowCount, getRowCount, getValueAt, isCurrentRowFreezed, setCurrentRow, sync
boolean isSortable()
void setSortedColumn(java.lang.String columnName, boolean ascending)
isSortable()
then this method is used to change the sort order
otherwise you can assume that it is never used.columnName
- ascending
- java.lang.String getSortedColumn()
isSortable()
== false, because the model can be
sorted but not sortable (ie the sort order is not changeable with the gui).java.lang.Boolean getSortedAscendingIndicator()
isSortable()
== false, because the model can be
sorted but not sortable (ie the sort order is not changeable with the ui).int searchOnSortedColumn(java.lang.Object value) throws java.lang.IllegalStateException
value
- Collections.binarySearch(java.util.List, Object)
.java.lang.IllegalStateException
- - if there isn't a sorted column.boolean canSearchOnSortedColumn()
searchOnSortedColumn(Object)
can used.int containsSearch(java.lang.String columnName, java.lang.String value, boolean forward, int startFrom)
columnName
- value
- forward
- startFrom
- boolean canDoContainsSearch()
#containsSearch(int, String, boolean, int)
can be used.boolean isFilterable()
void applyFilters(java.lang.String filteredColumnName, java.util.Map<java.lang.String,AFilterDefinition<?>> filters)
isFilterable()
then this method can be used to change
data filter definitions, otherwise you can assume that it is never used.filteredColumnName
- - used in case a the filter has been applied on a
specific column, otherwise null.filters
- - filters to be applied per columnjava.util.Map<java.lang.String,AFilterDefinition<?>> getFilters()