S - The type of the objects contained within the TableView items list.T - The type of the content in all cells in this TableColumnpublic class FilteredTableColumn<S,T> extends TableColumn2<S,T>
TableColumn2 that allows filtering options.
A filter button is displayed in the column header. If no predicate is applied
to the column, it is grayed, else it is blue.
The developer can select the action that will be performed when this button
is clicked.| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
filterable
When the filterable property is set to true, the column can be filtered.
|
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> |
onFilterAction
The filter button's action, which is invoked whenever the filter button is
fired.
|
javafx.beans.value.ObservableValue<java.util.function.Predicate<? super T>> |
predicate
This property allows defining a predicate for the column.
|
southNode| Constructor and Description |
|---|
FilteredTableColumn()
Creates a FilteredTableColumn control.
|
FilteredTableColumn(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
filterableProperty()
When the filterable property is set to true, the column can be filtered.
|
javafx.event.EventHandler<javafx.event.ActionEvent> |
getOnFilterAction()
Gets the value of the property onFilterAction.
|
java.util.function.Predicate<? super T> |
getPredicate()
Gets the value of the property predicate.
|
boolean |
isFilterable()
Gets the value of the property filterable.
|
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> |
onFilterActionProperty()
The filter button's action, which is invoked whenever the filter button is
fired.
|
javafx.beans.value.ObservableValue<java.util.function.Predicate<? super T>> |
predicateProperty()
This property allows defining a predicate for the column.
|
void |
setFilterable(boolean value)
Sets the value of the property filterable.
|
void |
setOnFilterAction(javafx.event.EventHandler<javafx.event.ActionEvent> value)
Sets the value of the property onFilterAction.
|
void |
setPredicate(java.util.function.Predicate<? super T> value)
Sets the value of the property predicate.
|
getSouthNode, setSouthNode, southNodePropertycellFactoryProperty, cellValueFactoryProperty, editAnyEvent, editCancelEvent, editCommitEvent, editStartEvent, getCellFactory, getCellObservableValue, getCellObservableValue, getCellValueFactory, getClassCssMetaData, getColumns, getCssMetaData, getOnEditCancel, getOnEditCommit, getOnEditStart, getSortType, getStyleableParent, getTableView, getTypeSelector, impl_styleableGetNode, onEditCancelProperty, onEditCommitProperty, onEditStartProperty, setCellFactory, setCellValueFactory, setOnEditCancel, setOnEditCommit, setOnEditStart, setSortType, sortTypeProperty, tableViewPropertyaddEventHandler, buildEventDispatchChain, comparatorProperty, contextMenuProperty, editableProperty, getCellData, getCellData, getComparator, getContextMenu, getGraphic, getId, getMaxWidth, getMinWidth, getParentColumn, getPrefWidth, getProperties, getPseudoClassStates, getSortNode, getStyle, getStyleClass, getText, getUserData, getWidth, graphicProperty, hasProperties, idProperty, impl_fixedProperty, impl_isFixed, impl_isReorderable, impl_reorderableProperty, impl_setFixed, impl_setReorderable, impl_setWidth, isEditable, isResizable, isSortable, isVisible, maxWidthProperty, minWidthProperty, parentColumnProperty, prefWidthProperty, removeEventHandler, resizableProperty, setComparator, setContextMenu, setEditable, setGraphic, setId, setMaxWidth, setMinWidth, setPrefWidth, setResizable, setSortable, setSortNode, setStyle, setText, setUserData, setVisible, sortableProperty, sortNodeProperty, styleProperty, textProperty, visibleProperty, widthPropertypublic final javafx.beans.property.BooleanProperty filterableProperty
isFilterable(),
setFilterable(boolean)public final javafx.beans.value.ObservableValue<java.util.function.Predicate<? super T>> predicateProperty
TableColumn2.southNode.getPredicate(),
setPredicate(Predicate)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onFilterActionProperty
public FilteredTableColumn()
public FilteredTableColumn(java.lang.String text)
public final void setFilterable(boolean value)
public final boolean isFilterable()
public final javafx.beans.property.BooleanProperty filterableProperty()
isFilterable(),
setFilterable(boolean)public final void setPredicate(java.util.function.Predicate<? super T> value)
TableColumn2.southNode.public final java.util.function.Predicate<? super T> getPredicate()
TableColumn2.southNode.public final javafx.beans.value.ObservableValue<java.util.function.Predicate<? super T>> predicateProperty()
TableColumn2.southNode.getPredicate(),
setPredicate(Predicate)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onFilterActionProperty()
public final void setOnFilterAction(javafx.event.EventHandler<javafx.event.ActionEvent> value)
public final javafx.event.EventHandler<javafx.event.ActionEvent> getOnFilterAction()