Class SheetState
java.lang.Object
org.apache.myfaces.tobago.model.SheetState
- All Implemented Interfaces:
Serializable, ScrollPositionState
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.use SheetState(1) insteadSheetState(int maxSortColumns) Creates a sheet state with a maximum number of simultaneously sortable columns. -
Method Summary
Modifier and TypeMethodDescriptionintgetFirst()Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).getId()intbooleanDeprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).isAscending()booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.Please usegetToBeSortedLevel()voidreset()Deprecated, for removal: This API element is subject to removal in a future version.use reset(1) insteadvoidreset(int maxSortColumns) Reset the sheet state.voidReset selected rows.voidvoidsetAscending(boolean ascending) Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).setAscending()voidsetColumnWidths(List<Integer> columnWidths) voidsetExpandedState(ExpandedState expandedState) voidsetFirst(int first) voidsetLazyScrollPosition(LazyScrollPosition lazyScrollPosition) voidsetScrollPosition(ScrollPosition scrollPosition) voidsetSelectedRows(List<Integer> selectedRows) voidsetSelectedState(SelectedState selectedState) voidsetSortedColumnId(String sortedColumnId) Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).setId()voidsetToBeSorted(boolean toBeSorted) Deprecated, for removal: This API element is subject to removal in a future version.Please usesorted()voidsorted()Indicates that the sheet is sorted and a SortActionEvent is not executed in this request.voidupdateSortState(String columnId) voidupdateSortState(SortActionEvent sortEvent) Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateSortState(String id)
-
Constructor Details
-
SheetState
Deprecated, for removal: This API element is subject to removal in a future version.use SheetState(1) instead -
SheetState
public SheetState(int maxSortColumns) Creates a sheet state with a maximum number of simultaneously sortable columns.The parameter
maxSortColumnsspecifies how many columns are taken into account when sorting. Use a value>1if multiple rows contain the same value. In this case, the value in the next sort-selected column is used for further sorting.- Parameters:
maxSortColumns- number of columns considered for sorting
-
-
Method Details
-
reset
Deprecated, for removal: This API element is subject to removal in a future version.use reset(1) instead -
reset
public void reset(int maxSortColumns) Reset the sheet state.- Parameters:
maxSortColumns- number of columns considered for sorting
-
resetSelected
public void resetSelected()Reset selected rows. -
getSelectedRows
-
setSelectedRows
-
getSortedColumnId
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).getId() -
setSortedColumnId
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).setId() -
isAscending
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).isAscending() -
setAscending
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetSortedColumnList().get(...).setAscending() -
getSortedColumnList
-
getColumnWidths
-
setColumnWidths
-
isDefinedColumnWidths
public boolean isDefinedColumnWidths() -
getFirst
public int getFirst()- Returns:
- index of the first visible row
-
setFirst
public void setFirst(int first) - Parameters:
first- index of the first visible row
-
updateSortState
Deprecated, for removal: This API element is subject to removal in a future version.Please useupdateSortState(String id) -
updateSortState
-
resetSortState
public void resetSortState() -
getScrollPosition
- Specified by:
getScrollPositionin interfaceScrollPositionState
-
setScrollPosition
-
getLazyScrollPosition
-
setLazyScrollPosition
-
getExpandedState
-
setExpandedState
-
getSelectedState
-
setSelectedState
-
isToBeSorted
Deprecated, for removal: This API element is subject to removal in a future version.Please usegetToBeSortedLevel() -
setToBeSorted
Deprecated, for removal: This API element is subject to removal in a future version.Please usesorted() -
getToBeSortedLevel
public int getToBeSortedLevel()- Returns:
- the number of levels (columns) which must be sorted this request
-
sorted
public void sorted()Indicates that the sheet is sorted and a SortActionEvent is not executed in this request.
-