java.lang.Object
com.iamsoft.util.ui.javafx.table.AbstractTableFindSupport
- Direct Known Subclasses:
MultiTableViewFindSupport
,TableFindSupportBase
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,
?>>> javafx.beans.property.ObjectProperty<javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,
?>, ? extends javafx.scene.control.IndexedCell<?>>> javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,
?>>> javafx.beans.property.BooleanProperty
javafx.beans.property.StringProperty
javafx.beans.property.ObjectProperty<AbstractTableFindSupport.FindStrategy>
javafx.beans.property.BooleanProperty
javafx.beans.property.BooleanProperty
javafx.beans.property.ReadOnlyProperty<Integer>
javafx.beans.property.ReadOnlyProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<String>
javafx.beans.property.ReadOnlyProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Double>
javafx.beans.property.ReadOnlyProperty<String>
javafx.beans.property.ReadOnlyProperty<String>
protected javafx.beans.property.ObjectProperty<AbstractTableFindSupport.SearchResult>
javafx.beans.property.ReadOnlyProperty<javafx.scene.control.IndexRange>
javafx.beans.property.ReadOnlyProperty<javafx.scene.control.TablePositionBase<?>>
Note that the returned value isnull
if multiple items are selected. -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Find strategy type.static class
Represents an integer range.protected static final class
Search result from a background search. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,
?>>> javafx.beans.property.ObjectProperty<javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,
?>, ? extends javafx.scene.control.IndexedCell<?>>> javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,
?>>> javafx.beans.property.BooleanProperty
javafx.beans.property.StringProperty
javafx.beans.property.ObjectProperty<AbstractTableFindSupport.FindStrategy>
javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,
?>, ? extends javafx.scene.control.IndexedCell<?>> Gets the value of the property cellFactory.Predicate<javafx.scene.control.TableColumnBase<?,
?>> Gets the value of the property cellFactoryFilter.Predicate<javafx.scene.control.TableColumnBase<?,
?>> Gets the value of the property columnFilter.Gets the value of the property errorMessage.abstract javafx.beans.Observable
Gets an observable which fires events when the table selection changes because of an 'find' event - the previous/next buttons are clicked, selection change due to find string/type change, etc.Gets the value of the property findStrategy.protected FindTextFieldSupport
boolean
Gets the value of the property lineWrap.boolean
Gets the value of the property matchCase.int
Gets the value of the property matchCount.javafx.scene.control.TextField
Gets the value of the property searchFieldBackgroundStyle.Gets the value of the property searchProgress.protected AbstractTableFindSupport.SearchResult
Gets the value of the property searchResult.Gets the value of the property searchResultInfo.Gets the value of the property searchResultMessage.javafx.scene.control.IndexRange
Gets the value of the property selectedMatchRange.javafx.scene.control.TablePositionBase<?>
Gets the value of the property selectedPosition.boolean
boolean
static void
installStylesheet
(javafx.beans.value.ObservableValue<? extends javafx.scene.control.Control> pCurrentTableProperty, String pStylesheet) Ensures that the specified stylesheet is added to the stylesheets of the specified current table.boolean
Gets the value of the property disabled.javafx.beans.property.BooleanProperty
javafx.beans.property.BooleanProperty
javafx.beans.property.ReadOnlyProperty<Integer>
protected javafx.beans.property.ReadOnlyObjectWrapper<Integer>
protected javafx.beans.property.ObjectProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
protected javafx.beans.property.ObjectProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
protected javafx.beans.property.ObjectProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
protected javafx.beans.property.ObjectProperty<String>
javafx.beans.property.ReadOnlyProperty<String>
protected javafx.beans.property.ObjectProperty<Boolean>
javafx.beans.property.ReadOnlyProperty<Boolean>
protected javafx.beans.property.ObjectProperty<Double>
javafx.beans.property.ReadOnlyProperty<Double>
protected javafx.beans.property.ObjectProperty<String>
javafx.beans.property.ReadOnlyProperty<String>
protected javafx.beans.property.ObjectProperty<String>
javafx.beans.property.ReadOnlyProperty<String>
protected javafx.beans.property.ObjectProperty<AbstractTableFindSupport.SearchResult>
javafx.beans.property.ReadOnlyProperty<javafx.scene.control.IndexRange>
protected javafx.beans.property.ReadOnlyObjectWrapper<javafx.scene.control.IndexRange>
javafx.beans.property.ReadOnlyProperty<javafx.scene.control.TablePositionBase<?>>
Note that the returned value isnull
if multiple items are selected.protected javafx.beans.property.ReadOnlyObjectWrapper<javafx.scene.control.TablePositionBase<?>>
javafx.scene.control.TablePositionBase<?>
protected abstract javafx.scene.control.TablePositionBase<?>
selectNext
(boolean pBackwards) javafx.scene.control.TablePositionBase<?>
void
setCellFactory
(javafx.util.Callback<javafx.scene.control.TableColumnBase<?, ?>, ? extends javafx.scene.control.IndexedCell<?>> pCellFactory) Sets the value of the property cellFactory.void
setCellFactoryFilter
(Predicate<javafx.scene.control.TableColumnBase<?, ?>> pCellFactoryFilter) Sets the value of the property cellFactoryFilter.void
setColumnFilter
(Predicate<javafx.scene.control.TableColumnBase<?, ?>> pColumnFilter) Sets the value of the property columnFilter.void
setDisabled
(boolean pDisabled) Sets the value of the property disabled.void
setErrorMessage
(String pErrorMessage) Sets the value of the property errorMessage.void
setFindStrategy
(AbstractTableFindSupport.FindStrategy pFindStrategy) Sets the value of the property findStrategy.void
setFoundCellClass
(String pFoundCellClass) void
setFoundCellStyle
(String pFoundCellStyle) void
setFoundTextClass
(String pFoundTextClass) void
setFoundTextStyle
(String pFoundTextStyle) void
setLineWrap
(boolean pLineWrap) Sets the value of the property lineWrap.void
setMatchCase
(boolean pMatchCase) Sets the value of the property matchCase.protected void
setSearchResult
(AbstractTableFindSupport.SearchResult pSearchResult) Sets the value of the property searchResult.protected void
protected void
protected void
protected void
protected void
updateSearchProgress
(double pProgress) Use this method to set determinate progress only for a short duration.protected javafx.scene.control.TablePositionBase<?>
updateSelectedMatchRange
(javafx.scene.control.TablePositionBase<?> pPos)
-
Property Details
-
cellFactory
public javafx.beans.property.ObjectProperty<javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>, cellFactoryProperty? extends javafx.scene.control.IndexedCell<?>>> - See Also:
-
cellFactoryFilter
public javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,?>>> cellFactoryFilterProperty -
columnFilter
public javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,?>>> columnFilterProperty- See Also:
-
findStrategy
public javafx.beans.property.ObjectProperty<AbstractTableFindSupport.FindStrategy> findStrategyProperty -
lineWrap
public javafx.beans.property.BooleanProperty lineWrapProperty- See Also:
-
matchCase
public javafx.beans.property.BooleanProperty matchCaseProperty- See Also:
-
errorMessage
public javafx.beans.property.StringProperty errorMessageProperty- See Also:
-
searchResultInfo
- See Also:
-
searchResultMessage
- See Also:
-
searchFieldBackgroundStyle
- See Also:
-
noOccurrences
-
prevBtnDisable
-
nextBtnDisable
-
disabled
public javafx.beans.property.BooleanProperty disabledProperty- See Also:
-
searchInProgress
-
searchProgress
- See Also:
-
searchResult
protected javafx.beans.property.ObjectProperty<AbstractTableFindSupport.SearchResult> searchResultProperty -
matchCount
- See Also:
-
selectedMatchRange
public javafx.beans.property.ReadOnlyProperty<javafx.scene.control.IndexRange> selectedMatchRangeProperty- See Also:
-
selectedPosition
public javafx.beans.property.ReadOnlyProperty<javafx.scene.control.TablePositionBase<?>> selectedPositionPropertyNote that the returned value isnull
if multiple items are selected.- See Also:
-
-
Field Details
-
FOUND_CELL_CLASS
- See Also:
-
FOUND_TEXT_CLASS
- See Also:
-
FOUND_CELL_STYLE
- See Also:
-
FOUND_TEXT_STYLE
- See Also:
-
TABLE_VIEW_CSS
-
TREE_TABLE_VIEW_CSS
-
SEARCH_FIELD_BACKGROUND_STYLE
- See Also:
-
SEARCH_FIELD_NOT_FOUND_BACKGROUND_STYLE
- See Also:
-
-
Constructor Details
-
AbstractTableFindSupport
-
-
Method Details
-
getFoundCellClass
-
setFoundCellClass
-
getFoundCellStyle
-
setFoundCellStyle
-
getFoundTextStyle
-
setFoundTextStyle
-
getFoundTextClass
-
setFoundTextClass
-
getFindTextFieldSupport
-
cellFactoryProperty
public javafx.beans.property.ObjectProperty<javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>, cellFactoryProperty()? extends javafx.scene.control.IndexedCell<?>>> - See Also:
-
getCellFactory
public javafx.util.Callback<? extends javafx.scene.control.TableColumnBase<?,?>, getCellFactory()? extends javafx.scene.control.IndexedCell<?>> Gets the value of the property cellFactory.- Property description:
-
setCellFactory
public void setCellFactory(javafx.util.Callback<javafx.scene.control.TableColumnBase<?, ?>, ? extends javafx.scene.control.IndexedCell<?>> pCellFactory) Sets the value of the property cellFactory.- Property description:
-
cellFactoryFilterProperty
public javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,?>>> cellFactoryFilterProperty() -
getCellFactoryFilter
Gets the value of the property cellFactoryFilter.- Property description:
-
setCellFactoryFilter
public void setCellFactoryFilter(Predicate<javafx.scene.control.TableColumnBase<?, ?>> pCellFactoryFilter) Sets the value of the property cellFactoryFilter.- Property description:
-
columnFilterProperty
public javafx.beans.property.ObjectProperty<Predicate<javafx.scene.control.TableColumnBase<?,?>>> columnFilterProperty()- See Also:
-
getColumnFilter
Gets the value of the property columnFilter.- Property description:
-
setColumnFilter
Sets the value of the property columnFilter.- Property description:
-
findStrategyProperty
public javafx.beans.property.ObjectProperty<AbstractTableFindSupport.FindStrategy> findStrategyProperty() -
getFindStrategy
Gets the value of the property findStrategy.- Property description:
-
setFindStrategy
Sets the value of the property findStrategy.- Property description:
-
lineWrapProperty
public javafx.beans.property.BooleanProperty lineWrapProperty()- See Also:
-
getLineWrap
public boolean getLineWrap()Gets the value of the property lineWrap.- Property description:
-
setLineWrap
public void setLineWrap(boolean pLineWrap) Sets the value of the property lineWrap.- Property description:
-
matchCaseProperty
public javafx.beans.property.BooleanProperty matchCaseProperty()- See Also:
-
getMatchCase
public boolean getMatchCase()Gets the value of the property matchCase.- Property description:
-
setMatchCase
public void setMatchCase(boolean pMatchCase) Sets the value of the property matchCase.- Property description:
-
errorMessageProperty
public javafx.beans.property.StringProperty errorMessageProperty()- See Also:
-
getErrorMessage
Gets the value of the property errorMessage.- Property description:
-
setErrorMessage
Sets the value of the property errorMessage.- Property description:
-
searchResultInfo
-
searchResultInfoProperty
- See Also:
-
getSearchResultInfo
Gets the value of the property searchResultInfo.- Property description:
-
searchResultMessage
-
searchResultMessageProperty
- See Also:
-
getSearchResultMessage
Gets the value of the property searchResultMessage.- Property description:
-
searchFieldBackgroundStyle
-
searchFieldBackgroundStyleProperty
- See Also:
-
getSearchFieldBackgroundStyle
Gets the value of the property searchFieldBackgroundStyle.- Property description:
-
noOccurrences
-
noOccurrencesProperty
-
hasNoOccurrences
public boolean hasNoOccurrences() -
prevBtnDisable
-
prevBtnDisableProperty
-
nextBtnDisable
-
nextBtnDisableProperty
-
disabledProperty
public javafx.beans.property.BooleanProperty disabledProperty()- See Also:
-
isDisabled
public boolean isDisabled()Gets the value of the property disabled.- Property description:
-
setDisabled
public void setDisabled(boolean pDisabled) Sets the value of the property disabled.- Property description:
-
searchInProgress
-
searchInProgressProperty
-
hasSearchInProgress
public boolean hasSearchInProgress() -
searchProgress
-
searchProgressProperty
- See Also:
-
getSearchProgress
Gets the value of the property searchProgress.- Property description:
-
searchResultProperty
protected javafx.beans.property.ObjectProperty<AbstractTableFindSupport.SearchResult> searchResultProperty() -
getSearchResult
Gets the value of the property searchResult.- Property description:
-
setSearchResult
Sets the value of the property searchResult.- Property description:
-
matchCountWrapper
-
matchCountProperty
- See Also:
-
getMatchCount
public int getMatchCount()Gets the value of the property matchCount.- Property description:
-
selectedMatchRangeWrapper
protected javafx.beans.property.ReadOnlyObjectWrapper<javafx.scene.control.IndexRange> selectedMatchRangeWrapper() -
selectedPositionWrapper
protected javafx.beans.property.ReadOnlyObjectWrapper<javafx.scene.control.TablePositionBase<?>> selectedPositionWrapper() -
selectedMatchRangeProperty
public javafx.beans.property.ReadOnlyProperty<javafx.scene.control.IndexRange> selectedMatchRangeProperty()- See Also:
-
getSelectedMatchRange
public javafx.scene.control.IndexRange getSelectedMatchRange()Gets the value of the property selectedMatchRange.- Property description:
-
selectedPositionProperty
public javafx.beans.property.ReadOnlyProperty<javafx.scene.control.TablePositionBase<?>> selectedPositionProperty()Note that the returned value isnull
if multiple items are selected.- See Also:
-
getSelectedPosition
public javafx.scene.control.TablePositionBase<?> getSelectedPosition()Gets the value of the property selectedPosition.- Property description:
- Note that the returned value is
null
if multiple items are selected.
-
selectNext
protected abstract javafx.scene.control.TablePositionBase<?> selectNext(boolean pBackwards) -
selectNext
public javafx.scene.control.TablePositionBase<?> selectNext() -
selectPrev
public javafx.scene.control.TablePositionBase<?> selectPrev() -
updateSelectedMatchRange
protected javafx.scene.control.TablePositionBase<?> updateSelectedMatchRange(javafx.scene.control.TablePositionBase<?> pPos) -
getSearchField
public javafx.scene.control.TextField getSearchField() -
setupSearchFieldBackgroundStyle
protected void setupSearchFieldBackgroundStyle() -
setupSearchResultMessage
protected void setupSearchResultMessage() -
setupSearchResultInfo
protected void setupSearchResultInfo() -
setupSearchField
protected void setupSearchField() -
getFindSelectionChange
public abstract javafx.beans.Observable getFindSelectionChange()Gets an observable which fires events when the table selection changes because of an 'find' event - the previous/next buttons are clicked, selection change due to find string/type change, etc.- Returns:
- observable
-
updateSearchProgress
protected void updateSearchProgress(double pProgress) Use this method to set determinate progress only for a short duration. This is useful for semi-determinate progress indicators, where progress value might be unknown in certain cases. -
installStylesheet
public static void installStylesheet(javafx.beans.value.ObservableValue<? extends javafx.scene.control.Control> pCurrentTableProperty, String pStylesheet) Ensures that the specified stylesheet is added to the stylesheets of the specified current table.- Parameters:
pCurrentTableProperty
- proppStylesheet
- String URL linking to the stylesheet to install
-