public class TableViewFindSupport extends TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
Modifier and Type | Class and Description |
---|---|
static class |
TableViewFindSupport.Cell<S,T>
A table cell supporting 'found' text highlighting.
|
TableFindSupportBase.SearchFunction
AbstractTableFindSupport.FindStrategy, AbstractTableFindSupport.Range, AbstractTableFindSupport.SearchResult
DUMMY_OBSERVABLE
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 and Description |
---|
TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport) |
TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport,
javafx.scene.control.TableView<?> pTable) |
TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport,
javafx.scene.control.TableView<?> pTable,
boolean pSearchInBackground) |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.DoubleProperty |
cellHeightProperty() |
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,
or
null if the table is empty or has no columns. |
int |
getItemCount(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,
or
null 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 or
null 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 from
pFromPos (inclusive) to
pToPos (inclusive). |
javafx.scene.control.TablePositionBase<?> |
prevPosition(javafx.scene.control.TableView<?> pTable,
javafx.scene.control.TablePositionBase<?> pPos)
Returns the position of the previous cell or
null
if there is no previous cell or if the specified position is null . |
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 |
updateFixedCellSize() |
autoSelectProperty, cancelCurrentFindTask, currentTableProperty, find, findAndSelect, findFirst, findNext, findNext, findNextOccurrence, findNextOccurrence, findNextOccurrence, fireFindSelectionChange, getAutoSelect, getCurrentTable, getDisplayText, getFindObservable, getFindSelectionChange, getFirstSelectedCell, getSearchFunction, handleCellSelectionModeChanges, installDefaultStyles, installDefaultStyles, isInSearchState, isMatchingCell, isMatchingRow, searchFunctionProperty, searchInBackground, selectNext, selectNext, setAutoSelect, setCurrentTable, setStringConverter, toLowerCase, updateFindObservables, updateSearchFunction, updateTableSelection, updateTableSelection
cellFactoryFilterProperty, cellFactoryProperty, columnFilterProperty, disabledProperty, errorMessageProperty, findStrategyProperty, getCellFactory, getCellFactoryFilter, getColumnFilter, getErrorMessage, getFindStrategy, getFindTextFieldSupport, getFoundCellClass, getFoundCellStyle, getFoundTextClass, getFoundTextStyle, getLineWrap, getMatchCase, getSearchField, getSearchFieldBackgroundStyle, getSearchResult, getSearchResultInfo, getSearchResultMessage, hasNoOccurrences, hasSearchInProgress, installStylesheet, isDisabled, lineWrapProperty, matchCaseProperty, nextBtnDisable, nextBtnDisableProperty, noOccurrences, noOccurrencesProperty, prevBtnDisable, prevBtnDisableProperty, searchFieldBackgroundStyle, searchFieldBackgroundStyleProperty, searchInProgress, searchInProgressProperty, searchResultInfo, searchResultInfoProperty, searchResultMessage, searchResultMessageProperty, searchResultProperty, selectNext, selectPrev, setCellFactory, setCellFactoryFilter, setColumnFilter, setDisabled, setErrorMessage, setFindStrategy, setFoundCellClass, setFoundCellStyle, setFoundTextClass, setFoundTextStyle, setLineWrap, setMatchCase, setSearchResult, setupSearchField, setupSearchFieldBackgroundStyle, setupSearchResultInfo, setupSearchResultMessage
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport)
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable)
public TableViewFindSupport(FindTextFieldSupport pFindTextFieldSupport, javafx.scene.control.TableView<?> pTable, boolean pSearchInBackground)
public javafx.beans.property.DoubleProperty cellHeightProperty()
public javafx.collections.ObservableList<javafx.scene.control.TableColumn> getColumns(javafx.scene.control.TableView pTable)
getColumns
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> getCellFactory(javafx.scene.control.TableColumn pColumn)
getCellFactory
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public void setCellFactory(javafx.scene.control.TableColumn pColumn, javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>,? extends javafx.scene.control.IndexedCell<?>> pCellFactory)
setCellFactory
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public int getItemCount(javafx.scene.control.TableView pTable)
getItemCount
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TableSelectionModel<?> getSelectionModel(javafx.scene.control.TableView<?> pTable)
getSelectionModel
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.collections.ObservableList<? extends javafx.scene.control.TablePositionBase> getSelectedCells(javafx.scene.control.TableView<?> pTable)
getSelectedCells
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TablePositionBase<?> createTablePosition(javafx.scene.control.TableView<?> pTable, int pRow, javafx.scene.control.TableColumn pColumn)
createTablePosition
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public Stream<? extends javafx.scene.control.TablePositionBase<?>> positionStream(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pFrom, javafx.scene.control.TablePositionBase<?> pTo)
TableFindSupportBase
pFromPos
(inclusive) to
pToPos
(inclusive). If pFromPos
is greater than pToPos
,
the elements in the stream are provided in backward order.positionStream
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TablePositionBase<?> getFirstCellPos(javafx.scene.control.TableView<?> pTable)
TableFindSupportBase
null
if the table is empty or has no columns.getFirstCellPos
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TablePositionBase<?> getLastCellPos(javafx.scene.control.TableView<?> pTable)
TableFindSupportBase
null
if the table is empty or has no columns.getLastCellPos
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TablePositionBase<?> prevPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)
TableFindSupportBase
null
if there is no previous cell or if the specified position is null
.prevPosition
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
public javafx.scene.control.TablePositionBase<?> nextPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)
TableFindSupportBase
null
if there is no next cell.
If the specified position is null
and the table is not empty and
there is at least one column in the table, the first cell is returned.nextPosition
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
protected void selectPosition(javafx.scene.control.TableView<?> pTable, javafx.scene.control.TablePositionBase<?> pPos)
TableFindSupportBase
null
.selectPosition
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
protected List<javafx.beans.Observable> getAdditionalFindObservables()
getAdditionalFindObservables
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
protected void updateFixedCellSize()
updateFixedCellSize
in class TableFindSupportBase<javafx.scene.control.TableView<?>,javafx.scene.control.TableColumn>
Copyright © 2023. All rights reserved.