Module is.codion.swing.common.model
Interface FilteredTableSearchModel
public interface FilteredTableSearchModel
Handles searching through a
FilteredTableModel-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHolds a row/column coordinate -
Method Summary
Modifier and TypeMethodDescriptionis.codion.common.state.Stateis.codion.common.value.ValueObserver<FilteredTableSearchModel.RowColumn>Returns the Value holding 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 clearedis.codion.common.state.Stateis.codion.common.value.Value<String>Finds the next value and adds the row to the selectionFinds the previous value and adds the row to the selection
-
Method Details
-
regularExpression
is.codion.common.state.State regularExpression()- Returns:
- the state controlling whether regular expressions should be used when searching
-
caseSensitive
is.codion.common.state.State caseSensitive()- Returns:
- the state controlling whether searching is case-sensitive
-
searchString
is.codion.common.value.Value<String> searchString()- Returns:
- the Value for the search string
-
searchPredicate
- Returns:
- the value for the search predicate
-
nextResult
Optional<FilteredTableSearchModel.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<FilteredTableSearchModel.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<FilteredTableSearchModel.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<FilteredTableSearchModel.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<FilteredTableSearchModel.RowColumn> searchResults()- Returns:
- an unmodifiable view of all row/column search results
-
currentResult
is.codion.common.value.ValueObserver<FilteredTableSearchModel.RowColumn> currentResult()Returns the Value holding 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:
-