- java.lang.Object
-
- com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
-
- com.iamsoft.util.ui.javafx.table.TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
- com.iamsoft.util.ui.javafx.table.TableViewFindSupport
-
- Direct Known Subclasses:
JpaTableViewFindSupport
public class TableViewFindSupport extends TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableViewFindSupport.AbstractSearchableCell<I>static classTableViewFindSupport.Cell<S,T>A table cell supporting 'found' text highlighting.static classTableViewFindSupport.ComboBoxCell<S,T>A table cell supporting 'found' text highlighting.static interfaceTableViewFindSupport.SearchableCell<I>static classTableViewFindSupport.TextFieldCell<S,T>A table cell supporting 'found' text highlighting.-
Nested classes/interfaces inherited from class com.iamsoft.util.ui.javafx.table.TableFindSupportBase
TableFindSupportBase.AbstractFindTask<T>, TableFindSupportBase.BatchFindTask, TableFindSupportBase.FindTask, TableFindSupportBase.SearchFunction
-
Nested classes/interfaces inherited from class com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
AbstractTableFindSupport.FindStrategy, AbstractTableFindSupport.Range, AbstractTableFindSupport.SearchResult
-
-
Field Summary
-
Fields inherited from class com.iamsoft.util.ui.javafx.table.TableFindSupportBase
DUMMY_OBSERVABLE
-
Fields inherited from class com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
FOUND_CELL_CLASS, FOUND_CELL_STYLE, FOUND_TEXT_CLASS, FOUND_TEXT_STYLE, SEARCH_FIELD_BACKGROUND_STYLE, SEARCH_FIELD_NOT_FOUND_BACKGROUND_STYLE, TABLE_VIEW_CSS, TREE_TABLE_VIEW_CSS
-
-
Constructor Summary
Constructors Constructor Description TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport)TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable)TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable, boolean pSearchInBackground)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.DoublePropertycellHeightProperty()static <T> AbstractCellFindSupport<javafx.scene.control.TableView<?>,T>createCellFindSupport(TableViewFindSupport pFindSupport, javafx.scene.control.TableCell<?,T> pCell, boolean pLineWrap)javafx.scene.control.TablePositionBase<?>createTablePosition(javafx.scene.control.TableView<?> pTable, int pRow, javafx.scene.control.TableColumn pColumn)protected List<javafx.beans.Observable>getAdditionalFindObservables()javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>>getCellFactory(javafx.scene.control.TableColumn pColumn)javafx.collections.ObservableList<javafx.scene.control.TableColumn>getColumns(javafx.scene.control.TableView pTable)javafx.scene.control.TablePositionBase<?>getFirstCellPos(javafx.scene.control.TableView<?> pTable)Returns the first cell or row position, depending on whether cell selection is enabled, ornullif the table is empty or has no columns.javafx.collections.ObservableList<?>getItems(javafx.scene.control.TableView pTable)javafx.scene.control.TablePositionBase<?>getLastCellPos(javafx.scene.control.TableView<?> pTable)Returns the last cell or row position, depending on whether cell selection is enabled, ornullif the table is empty or has no columns.javafx.collections.ObservableList<? extends javafx.scene.control.TablePositionBase>getSelectedCells(javafx.scene.control.TableView<?> pTable)javafx.scene.control.TableSelectionModel<?>getSelectionModel(javafx.scene.control.TableView<?> pTable)javafx.scene.control.TablePositionBase<?>nextPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Returns the position of the next cell ornullif there is no next cell.Stream<? extends javafx.scene.control.TablePositionBase<?>>positionStream(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pFrom, javafx.scene.control.TablePositionBase<?> pTo)Returns a stream of positions frompFromPos(inclusive) topToPos(inclusive).javafx.scene.control.TablePositionBase<?>prevPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Returns the position of the previous cell ornullif there is no previous cell or if the specified position isnull.protected voidselectPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Selects the specified cell/row and ensures that it's visible.voidsetCellFactory(javafx.scene.control.TableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> pCellFactory)protected voidupdateFixedCellSize()-
Methods inherited from class com.iamsoft.util.ui.javafx.table.TableFindSupportBase
autoSelectProperty, cancelCurrentFindTask, createFindTask, currentTableProperty, currentTableSelectionModelProperty, find, findAndSelect, findFirst, findNext, findNext, findNextOccurrence, findNextOccurrence, findNextOccurrence, fireFindSelectionChange, getAutoSelect, getColToOriginalCellFactory, getCurrentTable, getCurrentTableSelectionModel, getDisplayText, getFindObservable, getFindSelectionChange, getFirstSelectedCell, getItemCount, getSearchFunction, getSelectedCells, handleCellSelectionModeChanges, installDefaultStyles, installDefaultStyles, isInSearchState, isMatchingCell, isMatchingRow, isSearchable, searchFunctionProperty, searchInBackground, selectedPositionProperty, selectNext, selectNext, setAutoSelect, setCurrentTable, setStringConverter, toLowerCase, toRow, updateFindObservables, updateSearchFunction, updateTableSelection, updateTableSelection
-
Methods inherited from class com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
cellFactoryFilterProperty, cellFactoryProperty, columnFilterProperty, disabledProperty, errorMessageProperty, findStrategyProperty, getCellFactory, getCellFactoryFilter, getColumnFilter, getErrorMessage, getFindStrategy, getFindTextFieldSupport, getFoundCellClass, getFoundCellStyle, getFoundTextClass, getFoundTextStyle, getLineWrap, getMatchCase, getMatchCount, getSearchField, getSearchFieldBackgroundStyle, getSearchProgress, getSearchResult, getSearchResultInfo, getSearchResultMessage, getSelectedMatchRange, getSelectedPosition, hasNoOccurrences, hasSearchInProgress, installStylesheet, isDisabled, lineWrapProperty, matchCaseProperty, matchCountProperty, matchCountWrapper, nextBtnDisable, nextBtnDisableProperty, noOccurrences, noOccurrencesProperty, prevBtnDisable, prevBtnDisableProperty, searchFieldBackgroundStyle, searchFieldBackgroundStyleProperty, searchInProgress, searchInProgressProperty, searchProgress, searchProgressProperty, searchResultInfo, searchResultInfoProperty, searchResultMessage, searchResultMessageProperty, searchResultProperty, selectedMatchRangeProperty, selectedMatchRangeWrapper, selectedPositionWrapper, selectNext, selectPrev, setCellFactory, setCellFactoryFilter, setColumnFilter, setDisabled, setErrorMessage, setFindStrategy, setFoundCellClass, setFoundCellStyle, setFoundTextClass, setFoundTextStyle, setLineWrap, setMatchCase, setSearchResult, setupSearchField, setupSearchFieldBackgroundStyle, setupSearchResultInfo, setupSearchResultMessage, updateSearchProgress, updateSelectedMatchRange
-
-
-
-
Constructor Detail
-
TableViewFindSupport
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport)
-
TableViewFindSupport
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable)
-
TableViewFindSupport
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable, boolean pSearchInBackground)
-
-
Method Detail
-
cellHeightProperty
public javafx.beans.property.DoubleProperty cellHeightProperty()
-
getColumns
public javafx.collections.ObservableList<javafx.scene.control.TableColumn> getColumns(javafx.scene.control.TableView pTable)
- Specified by:
getColumnsin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getCellFactory
public javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> getCellFactory(javafx.scene.control.TableColumn pColumn)
- Specified by:
getCellFactoryin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
setCellFactory
public void setCellFactory(javafx.scene.control.TableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> pCellFactory)- Specified by:
setCellFactoryin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getItems
public javafx.collections.ObservableList<?> getItems(javafx.scene.control.TableView pTable)
- Specified by:
getItemsin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getSelectionModel
public javafx.scene.control.TableSelectionModel<?> getSelectionModel(javafx.scene.control.TableView<?> pTable)
- Specified by:
getSelectionModelin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getSelectedCells
public javafx.collections.ObservableList<? extends javafx.scene.control.TablePositionBase> getSelectedCells(javafx.scene.control.TableView<?> pTable)
- Specified by:
getSelectedCellsin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
createTablePosition
public javafx.scene.control.TablePositionBase<?> createTablePosition(javafx.scene.control.TableView<?> pTable, int pRow, javafx.scene.control.TableColumn pColumn)- Specified by:
createTablePositionin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
positionStream
public Stream<? extends javafx.scene.control.TablePositionBase<?>> positionStream(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pFrom, javafx.scene.control.TablePositionBase<?> pTo)
Description copied from class:TableFindSupportBaseReturns a stream of positions frompFromPos(inclusive) topToPos(inclusive). IfpFromPosis greater thanpToPos, the elements in the stream are provided in backward order.- Specified by:
positionStreamin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getFirstCellPos
public javafx.scene.control.TablePositionBase<?> getFirstCellPos(javafx.scene.control.TableView<?> pTable)
Description copied from class:TableFindSupportBaseReturns the first cell or row position, depending on whether cell selection is enabled, ornullif the table is empty or has no columns.- Specified by:
getFirstCellPosin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getLastCellPos
public javafx.scene.control.TablePositionBase<?> getLastCellPos(javafx.scene.control.TableView<?> pTable)
Description copied from class:TableFindSupportBaseReturns the last cell or row position, depending on whether cell selection is enabled, ornullif the table is empty or has no columns.- Specified by:
getLastCellPosin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
prevPosition
public javafx.scene.control.TablePositionBase<?> prevPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Description copied from class:TableFindSupportBaseReturns the position of the previous cell ornullif there is no previous cell or if the specified position isnull.- Specified by:
prevPositionin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
nextPosition
public javafx.scene.control.TablePositionBase<?> nextPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Description copied from class:TableFindSupportBaseReturns the position of the next cell ornullif there is no next cell. If the specified position isnulland the table is not empty and there is at least one column in the table, the first cell is returned.- Specified by:
nextPositionin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
selectPosition
protected void selectPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Description copied from class:TableFindSupportBaseSelects the specified cell/row and ensures that it's visible. The method does nothing if any of the arguments isnull.- Specified by:
selectPositionin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
getAdditionalFindObservables
protected List<javafx.beans.Observable> getAdditionalFindObservables()
- Overrides:
getAdditionalFindObservablesin classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
updateFixedCellSize
protected void updateFixedCellSize()
- Specified by:
updateFixedCellSizein classTableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
-
createCellFindSupport
public static <T> AbstractCellFindSupport<javafx.scene.control.TableView<?>,T> createCellFindSupport(TableViewFindSupport pFindSupport, javafx.scene.control.TableCell<?,T> pCell, boolean pLineWrap)
-
-