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>
-
Property Summary
PropertiesProperties inherited from class com.iamsoft.util.ui.javafx.table.TableFindSupportBase
autoSelect, currentTable, currentTableSelectionModel, searchFunction, selectedPosition
Properties inherited from class com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
cellFactoryFilter, cellFactory, columnFilter, disabled, errorMessage, findStrategy, lineWrap, matchCase, matchCount, nextBtnDisable, noOccurrences, prevBtnDisable, searchFieldBackgroundStyle, searchInProgress, searchProgress, searchResultInfo, searchResultMessage, searchResult, selectedMatchRange
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
A table cell supporting 'found' text highlighting.static class
A table cell supporting 'found' text highlighting.static interface
static class
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
ConstructorsConstructorDescriptionTableViewFindSupport
(FindTextFieldSupport pFindTextFieldSupport) TableViewFindSupport
(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable) TableViewFindSupport
(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable, boolean pSearchInBackground) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.DoubleProperty
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>
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, ornull
if 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, ornull
if 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 ornull
if 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 ornull
if there is no previous cell or if the specified position isnull
.protected void
selectPosition
(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos) Selects the specified cell/row and ensures that it's visible.void
setCellFactory
(javafx.scene.control.TableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?, ?>, ? extends javafx.scene.control.IndexedCell<?>> pCellFactory) protected void
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
-
Property Details
-
cellHeight
public javafx.beans.property.DoubleProperty cellHeightProperty
-
-
Constructor Details
-
TableViewFindSupport
-
TableViewFindSupport
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable) -
TableViewFindSupport
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable, boolean pSearchInBackground)
-
-
Method Details
-
cellHeightProperty
public javafx.beans.property.DoubleProperty cellHeightProperty() -
getColumns
public javafx.collections.ObservableList<javafx.scene.control.TableColumn> getColumns(javafx.scene.control.TableView pTable) - Specified by:
getColumns
in classTableFindSupportBase<javafx.scene.control.TableView<?>,
javafx.scene.control.TableColumn>
-
getCellFactory
public javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>, getCellFactory? extends javafx.scene.control.IndexedCell<?>> (javafx.scene.control.TableColumn pColumn) - Specified by:
getCellFactory
in 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:
setCellFactory
in classTableFindSupportBase<javafx.scene.control.TableView<?>,
javafx.scene.control.TableColumn>
-
getItems
public javafx.collections.ObservableList<?> getItems(javafx.scene.control.TableView pTable) - Specified by:
getItems
in classTableFindSupportBase<javafx.scene.control.TableView<?>,
javafx.scene.control.TableColumn>
-
getSelectionModel
public javafx.scene.control.TableSelectionModel<?> getSelectionModel(javafx.scene.control.TableView<?> pTable) - Specified by:
getSelectionModel
in 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:
getSelectedCells
in 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:
createTablePosition
in 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:TableFindSupportBase
Returns a stream of positions frompFromPos
(inclusive) topToPos
(inclusive). IfpFromPos
is greater thanpToPos
, the elements in the stream are provided in backward order.- Specified by:
positionStream
in 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:TableFindSupportBase
Returns the first cell or row position, depending on whether cell selection is enabled, ornull
if the table is empty or has no columns.- Specified by:
getFirstCellPos
in 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:TableFindSupportBase
Returns the last cell or row position, depending on whether cell selection is enabled, ornull
if the table is empty or has no columns.- Specified by:
getLastCellPos
in 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:TableFindSupportBase
Returns the position of the previous cell ornull
if there is no previous cell or if the specified position isnull
.- Specified by:
prevPosition
in 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:TableFindSupportBase
Returns the position of the next cell ornull
if there is no next cell. If the specified position isnull
and the table is not empty and there is at least one column in the table, the first cell is returned.- Specified by:
nextPosition
in 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:TableFindSupportBase
Selects the specified cell/row and ensures that it's visible. The method does nothing if any of the arguments isnull
.- Specified by:
selectPosition
in classTableFindSupportBase<javafx.scene.control.TableView<?>,
javafx.scene.control.TableColumn>
-
getAdditionalFindObservables
- Overrides:
getAdditionalFindObservables
in classTableFindSupportBase<javafx.scene.control.TableView<?>,
javafx.scene.control.TableColumn>
-
updateFixedCellSize
protected void updateFixedCellSize()- Specified by:
updateFixedCellSize
in 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)
-