Module is.codion.swing.common.ui
Interface FilterTableSearchModel.Results
- All Superinterfaces:
Observable<List<FilterTableSearchModel.RowColumn>>,Observer<List<FilterTableSearchModel.RowColumn>>
- Enclosing interface:
FilterTableSearchModel
public static interface FilterTableSearchModel.Results
extends Observable<List<FilterTableSearchModel.RowColumn>>
Manages the search results.
-
Method Summary
Modifier and TypeMethodDescriptioncurrent()Returns theObservablenotified of the selected search result row/column if available, otherwise one with row: -1 and column: -1next()Finds the next value and selects the row, if none is found the selection is clearedprevious()Finds the previous value and selects the row, if none is found the selection is clearedFinds the next value and adds the row to the selectionFinds the previous value and adds the row to the selectionMethods inherited from interface is.codion.common.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, get, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
next
Finds the next value and selects the row, if none is found the selection is cleared- Returns:
- the row and column of the next item fitting the search condition, an empty Optional if none is found
-
selectNext
Optional<FilterTableSearchModel.RowColumn> selectNext()Finds the next value and adds the row to the selection- Returns:
- the row and column of the next item fitting the search condition, an empty Optional if none is found
-
previous
Optional<FilterTableSearchModel.RowColumn> previous()Finds the previous value and selects the row, if none is found the selection is cleared- Returns:
- the row and column of the previous item fitting the search condition, an empty Optional if none is found
-
selectPrevious
Optional<FilterTableSearchModel.RowColumn> selectPrevious()Finds the previous value and adds the row to the selection- Returns:
- the row and column of the previous item fitting the search condition, an empty Optional if none is found
-
current
Observable<FilterTableSearchModel.RowColumn> current()Returns theObservablenotified of the selected search result row/column if available, otherwise one with row: -1 and column: -1- Returns:
- an observable notified each time the current search result changes
- See Also:
-