- java.lang.Object
-
- com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
-
- com.iamsoft.util.ui.javafx.table.TableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
- com.iamsoft.util.ui.javafx.table.TreeTableViewFindSupport
-
public class TreeTableViewFindSupport extends TableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TreeTableViewFindSupport.Cell<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 TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport)
TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TreeTableView<?> pTable)
TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TreeTableView<?> pTable, boolean pSearchInBackground)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.DoubleProperty
cellHeightProperty()
javafx.scene.control.TablePositionBase<?>
createTablePosition(javafx.scene.control.TreeTableView<?> pTable, int pRow, javafx.scene.control.TreeTableColumn pColumn)
protected List<javafx.beans.Observable>
getAdditionalFindObservables()
javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>>
getCellFactory(javafx.scene.control.TreeTableColumn pColumn)
javafx.collections.ObservableList<javafx.scene.control.TreeTableColumn>
getColumns(javafx.scene.control.TreeTableView pTable)
javafx.scene.control.TablePositionBase<?>
getFirstCellPos(javafx.scene.control.TreeTableView<?> 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.int
getItemCount(javafx.scene.control.TreeTableView pTable)
List<?>
getItems(javafx.scene.control.TreeTableView<?> pTable)
javafx.scene.control.TablePositionBase<?>
getLastCellPos(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?> pTable)
javafx.scene.control.TableSelectionModel<?>
getSelectionModel(javafx.scene.control.TreeTableView<?> pTable)
javafx.scene.control.TablePositionBase<?>
nextPosition(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?> 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.TreeTableView<?> 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.TreeTableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)
Selects the specified cell/row and ensures that it's visible.void
setCellFactory(javafx.scene.control.TreeTableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> pCellFactory)
protected void
updateFixedCellSize()
-
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, 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
-
TreeTableViewFindSupport
public TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport)
-
TreeTableViewFindSupport
public TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TreeTableView<?> pTable)
-
TreeTableViewFindSupport
public TreeTableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TreeTableView<?> pTable, boolean pSearchInBackground)
-
-
Method Detail
-
cellHeightProperty
public javafx.beans.property.DoubleProperty cellHeightProperty()
-
getColumns
public javafx.collections.ObservableList<javafx.scene.control.TreeTableColumn> getColumns(javafx.scene.control.TreeTableView pTable)
- Specified by:
getColumns
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getItems
public List<?> getItems(javafx.scene.control.TreeTableView<?> pTable)
- Specified by:
getItems
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getCellFactory
public javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> getCellFactory(javafx.scene.control.TreeTableColumn pColumn)
- Specified by:
getCellFactory
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
setCellFactory
public void setCellFactory(javafx.scene.control.TreeTableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> pCellFactory)
- Specified by:
setCellFactory
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getItemCount
public int getItemCount(javafx.scene.control.TreeTableView pTable)
- Overrides:
getItemCount
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getSelectionModel
public javafx.scene.control.TableSelectionModel<?> getSelectionModel(javafx.scene.control.TreeTableView<?> pTable)
- Specified by:
getSelectionModel
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getSelectedCells
public javafx.collections.ObservableList<? extends javafx.scene.control.TablePositionBase> getSelectedCells(javafx.scene.control.TreeTableView<?> pTable)
- Specified by:
getSelectedCells
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
createTablePosition
public javafx.scene.control.TablePositionBase<?> createTablePosition(javafx.scene.control.TreeTableView<?> pTable, int pRow, javafx.scene.control.TreeTableColumn pColumn)
- Specified by:
createTablePosition
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
positionStream
public Stream<? extends javafx.scene.control.TablePositionBase<?>> positionStream(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getFirstCellPos
public javafx.scene.control.TablePositionBase<?> getFirstCellPos(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getLastCellPos
public javafx.scene.control.TablePositionBase<?> getLastCellPos(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
prevPosition
public javafx.scene.control.TablePositionBase<?> prevPosition(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
nextPosition
public javafx.scene.control.TablePositionBase<?> nextPosition(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
selectPosition
protected void selectPosition(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getAdditionalFindObservables
protected List<javafx.beans.Observable> getAdditionalFindObservables()
- Overrides:
getAdditionalFindObservables
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
updateFixedCellSize
protected void updateFixedCellSize()
- Specified by:
updateFixedCellSize
in classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
-