- 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 classTreeTableViewFindSupport.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.DoublePropertycellHeightProperty()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, ornullif the table is empty or has no columns.intgetItemCount(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, ornullif 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 ornullif 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 ornullif there is no previous cell or if the specified position isnull.protected voidselectPosition(javafx.scene.control.TreeTableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)Selects the specified cell/row and ensures that it's visible.voidsetCellFactory(javafx.scene.control.TreeTableColumn 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, 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:
getColumnsin classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getItems
public List<?> getItems(javafx.scene.control.TreeTableView<?> pTable)
- Specified by:
getItemsin 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:
getCellFactoryin 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:
setCellFactoryin classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getItemCount
public int getItemCount(javafx.scene.control.TreeTableView pTable)
- Overrides:
getItemCountin classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getSelectionModel
public javafx.scene.control.TableSelectionModel<?> getSelectionModel(javafx.scene.control.TreeTableView<?> pTable)
- Specified by:
getSelectionModelin 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:
getSelectedCellsin 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:
createTablePositionin 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: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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getFirstCellPos
public javafx.scene.control.TablePositionBase<?> getFirstCellPos(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getLastCellPos
public javafx.scene.control.TablePositionBase<?> getLastCellPos(javafx.scene.control.TreeTableView<?> 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.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: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.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: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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
selectPosition
protected void selectPosition(javafx.scene.control.TreeTableView<?> 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.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
getAdditionalFindObservables
protected List<javafx.beans.Observable> getAdditionalFindObservables()
- Overrides:
getAdditionalFindObservablesin classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
updateFixedCellSize
protected void updateFixedCellSize()
- Specified by:
updateFixedCellSizein classTableFindSupportBase<javafx.scene.control.TreeTableView<?>,javafx.scene.control.TreeTableColumn>
-
-