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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecifies the current search resultstatic interfaceSelects search resultsNested classes/interfaces inherited from interface is.codion.common.reactive.observer.Observer
Observer.Builder<T,B extends Observer.Builder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int row, int column) current()Returns theObservablenotified of the current search result row/column if availablenext()Finds the next value and navigates to the cell if one is availableprevious()Finds the previous value and navigates to the cell if one is availableselect()Methods inherited from interface is.codion.common.reactive.observer.Observable
changed, get, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, optionalMethods inherited from interface is.codion.common.reactive.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, observer, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener, when, when
-
Method Details
-
next
Finds the next value and navigates to the cell if one is available- 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 navigates to the cell if one is available- Returns:
- the row and column of the previous item fitting the search condition, an empty Optional if none is found
-
current
Returns theObservablenotified of the current search result row/column if available- Returns:
- an observable notified each time the current search result changes
- See Also:
-
select
- Returns:
- the
FilterTableSearchModel.Results.SelectResultinstance
-
contains
boolean contains(int row, int column) - Parameters:
row- the rowcolumn- the column- Returns:
- true if the search results contain the given row and column
-