|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.infordata.ifw2.web.grds.MultiSelectionGridFlow.Model
public static class MultiSelectionGridFlow.Model
| Constructor Summary | |
|---|---|
MultiSelectionGridFlow.Model(IOrderedGridModel wrapped)
|
|
| Method Summary | |
|---|---|
void |
applyFilters(java.lang.String filteredColumnName,
java.util.Map<java.lang.String,AFilterDefinition<?>> filters)
If IDataGridModel.isFilterable() then this method can be used to change
data filter definitions, otherwise you can assume that it is never used. |
boolean |
areRowsSwappable(int row1,
int row2)
|
boolean |
canDoContainsSearch()
|
boolean |
canSearchOnSortedColumn()
|
int |
containsSearch(java.lang.String columnName,
java.lang.String value,
boolean forward,
int startFrom)
|
int |
fetchRows(int rowIndex,
int count)
Used by the ui to ensure that the request rows really exist without the need to retrieve any column value. |
IColumn |
getColumn(int columnIndex)
|
int |
getColumnCount()
|
IColumnGroup |
getColumnGroup(java.lang.String groupId)
|
int |
getColumnIndex(java.lang.String columnName)
|
java.lang.String |
getColumnName(int columnIndex)
|
int |
getCurrentRow()
|
int |
getCurrentRowCount()
|
IDataGridModel |
getDataGridModel()
|
java.util.Map<java.lang.String,AFilterDefinition<?>> |
getFilters()
|
IOrderedGridModel |
getOrderedGridModel()
|
int |
getRowCount()
|
java.lang.Boolean |
getSortedAscendingIndicator()
|
java.lang.String |
getSortedColumn()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCurrentRowFreezed()
|
boolean |
isFilterable()
|
boolean |
isSortable()
|
int |
searchOnSortedColumn(java.lang.Object value)
Searches the given value between values of the currently sorted column. |
void |
setCurrentRow(int rowIndex)
|
void |
setSortedColumn(java.lang.String columnName,
boolean ascending)
If IDataGridModel.isSortable() then this method is used to change the sort order
otherwise you can assume that it is never used. |
void |
swapRows(int row1,
int row2)
Swaps the given rows, care should be taken to restore the current row. |
void |
sync()
Called by the framework just before displaying the AGridFlow. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiSelectionGridFlow.Model(IOrderedGridModel wrapped)
| Method Detail |
|---|
public final IDataGridModel getDataGridModel()
public final IOrderedGridModel getOrderedGridModel()
public void setSortedColumn(java.lang.String columnName,
boolean ascending)
IDataGridModelIDataGridModel.isSortable() then this method is used to change the sort order
otherwise you can assume that it is never used.
setSortedColumn in interface IDataGridModelpublic boolean isSortable()
isSortable in interface IDataGridModelpublic int searchOnSortedColumn(java.lang.Object value)
IDataGridModel
searchOnSortedColumn in interface IDataGridModelCollections.binarySearch(java.util.List, Object).public boolean canSearchOnSortedColumn()
canSearchOnSortedColumn in interface IDataGridModelIDataGridModel.searchOnSortedColumn(Object) can used.
public int containsSearch(java.lang.String columnName,
java.lang.String value,
boolean forward,
int startFrom)
containsSearch in interface IDataGridModelpublic boolean canDoContainsSearch()
canDoContainsSearch in interface IDataGridModel#containsSearch(int, String, boolean, int) can be used.
public void applyFilters(java.lang.String filteredColumnName,
java.util.Map<java.lang.String,AFilterDefinition<?>> filters)
IDataGridModelIDataGridModel.isFilterable() then this method can be used to change
data filter definitions, otherwise you can assume that it is never used.
applyFilters in interface IDataGridModelfilteredColumnName - - used in case a the filter has been applied on a
specific column, otherwise null.filters - - filters to be applied per columnpublic boolean isFilterable()
isFilterable in interface IDataGridModelpublic IColumnGroup getColumnGroup(java.lang.String groupId)
getColumnGroup in interface IGridModelpublic IColumn getColumn(int columnIndex)
getColumn in interface IGridModelpublic int getColumnCount()
getColumnCount in interface IGridModelpublic int getColumnIndex(java.lang.String columnName)
getColumnIndex in interface IGridModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface IGridModel
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface IGridModelpublic java.util.Map<java.lang.String,AFilterDefinition<?>> getFilters()
getFilters in interface IDataGridModelpublic java.lang.Boolean getSortedAscendingIndicator()
getSortedAscendingIndicator in interface IDataGridModelIDataGridModel.isSortable() == false, because the model can be
sorted but not sortable (ie the sort order is not changeable with the ui).public java.lang.String getSortedColumn()
getSortedColumn in interface IDataGridModelIDataGridModel.isSortable() == false, because the model can be
sorted but not sortable (ie the sort order is not changeable with the gui).
public int fetchRows(int rowIndex,
int count)
IGridModel
fetchRows in interface IGridModelrowIndex - - starting from this index ...count - - ... we want this number of rows
IGridModel.getRowCount() must return the
real rows counter and a call to IGridModel.getCurrentRow() a valid
row index.public int getCurrentRow()
getCurrentRow in interface IGridModelpublic int getCurrentRowCount()
getCurrentRowCount in interface IGridModelIGridModel.getRowCount() but can be less if the model supports paging.public int getRowCount()
getRowCount in interface IGridModelInteger.MAX_VALUE.public boolean isCurrentRowFreezed()
isCurrentRowFreezed in interface IGridModelpublic void setCurrentRow(int rowIndex)
setCurrentRow in interface IGridModelpublic void sync()
IGridModelAGridFlow.
sync in interface IGridModel
public void swapRows(int row1,
int row2)
IOrderedGridModel
swapRows in interface IOrderedGridModel
public boolean areRowsSwappable(int row1,
int row2)
areRowsSwappable in interface IOrderedGridModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||