Module is.codion.swing.common.ui
Interface FilterTableSearchModel
public interface FilterTableSearchModel
Handles searching through a
FilterTable
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Holds a row/column coordinate -
Method Summary
Modifier and TypeMethodDescriptionReturns theValueObserver
notified of the selected search result row/column if available, otherwise one with row: -1 and column: -1Finds the next value and selects the row, if none is found the selection is clearedFinds 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 selection
-
Method Details
-
regularExpression
State regularExpression()- Returns:
- the
State
controlling whether regular expressions should be used when searching
-
caseSensitive
State caseSensitive()- Returns:
- the
State
controlling whether searching is case-sensitive
-
searchString
- Returns:
- the Value for the search string
-
predicate
- Returns:
- the
Value
controlling the search predicate
-
nextResult
Optional<FilterTableSearchModel.RowColumn> nextResult()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
-
selectNextResult
Optional<FilterTableSearchModel.RowColumn> selectNextResult()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
-
previousResult
Optional<FilterTableSearchModel.RowColumn> previousResult()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
-
selectPreviousResult
Optional<FilterTableSearchModel.RowColumn> selectPreviousResult()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
-
searchResults
List<FilterTableSearchModel.RowColumn> searchResults()- Returns:
- an unmodifiable view of all row/column search results
-
currentResult
ValueObserver<FilterTableSearchModel.RowColumn> currentResult()Returns theValueObserver
notified of the selected search result row/column if available, otherwise one with row: -1 and column: -1- Returns:
- an observer notified each time the current search result changes
- See Also:
-