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.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ListChangeListener | |
| private final ChangeListener | |
| private static final PseudoClass | |
| private final BooleanProperty | filterable
When the filterable property is set to true, the column can be filtered. |
| private final Button | |
| private final ChangeListener | |
| private InvalidationListener | |
| private final ObjectProperty | onFilterAction
The filter button's action, which is invoked whenever the filter button is fired. |
| private InvalidationListener | |
| private final ObjectProperty | predicate
This property allows defining a predicate for the column. |
| private final InvalidationListener | |
| private final HashMap | trackedCells
Private Fields |
| private final WeakChangeListener | |
| private WeakInvalidationListener | |
| private final WeakListChangeListener | |
| private WeakInvalidationListener | |
| private final WeakInvalidationListener |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final BooleanProperty | |
| private Optional | |
| public final EventHandler | |
| public final Predicate | |
| private void | |
| public final boolean | |
| public final ObjectProperty | |
| public final ObservableValue | |
| private void | |
| private void | |
| public final void | |
| public final void | |
| public final void | |
| private void | |
| private void |
| backingListListener | back to summary |
|---|---|
| private final ListChangeListener<S> backingListListener | |
| changeListener | back to summary |
|---|---|
| private final ChangeListener<T> changeListener | |
| FILTER_ON | back to summary |
|---|---|
| private static final PseudoClass FILTER_ON | |
| filterable | back to summary |
|---|---|
| private final BooleanProperty filterable When the filterable property is set to true, the column can be filtered. | |
| filterButton | back to summary |
|---|---|
| private final Button filterButton | |
| filterListener | back to summary |
|---|---|
| private final ChangeListener<Predicate<?>> filterListener | |
| itemsPropertyListener | back to summary |
|---|---|
| private InvalidationListener itemsPropertyListener | |
| onFilterAction | back to summary |
|---|---|
| private final ObjectProperty<EventHandler<ActionEvent>> onFilterAction The filter button's action, which is invoked whenever the filter button is fired. | |
| parentListener | back to summary |
|---|---|
| private InvalidationListener parentListener | |
| predicate | back to summary |
|---|---|
| private final ObjectProperty<Predicate<? super T>> predicate This property allows defining a predicate for the column.
This predicate can be nullified when the table's predicate is reset,
so it is convenient that this property can be set again dynamically via
the UI option | |
| tableListener | back to summary |
|---|---|
| private final InvalidationListener tableListener | |
| trackedCells | back to summary |
|---|---|
| private final HashMap<FilteredTableColumn. Private Fields | |
| weakFilterListener | back to summary |
|---|---|
| private final WeakChangeListener<Predicate<?>> weakFilterListener | |
| weakItemsPropertyListener | back to summary |
|---|---|
| private WeakInvalidationListener weakItemsPropertyListener | |
| weakListChangeListener | back to summary |
|---|---|
| private final WeakListChangeListener<S> weakListChangeListener | |
| weakParentListener | back to summary |
|---|---|
| private WeakInvalidationListener weakParentListener | |
| weakTableListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakTableListener | |
| FilteredTableColumn | back to summary |
|---|---|
| public FilteredTableColumn() Creates a FilteredTableColumn control. | |
| FilteredTableColumn | back to summary |
|---|---|
| public FilteredTableColumn(String text) | |
| addBackingItem | back to summary |
|---|---|
| private void addBackingItem(S item, ObservableValue<T> cellValue) | |
| filterableProperty | back to summary |
|---|---|
| public final BooleanProperty filterableProperty() | |
| getFilteredTableView | back to summary |
|---|---|
| private Optional | |
| getOnFilterAction | back to summary |
|---|---|
| public final EventHandler | |
| getPredicate | back to summary |
|---|---|
| public final Predicate | |
| init | back to summary |
|---|---|
| private void init() Private Implementation | |
| isFilterable | back to summary |
|---|---|
| public final boolean isFilterable() | |
| onFilterActionProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| predicateProperty | back to summary |
|---|---|
| public final ObservableValue | |
| removeBackingItem | back to summary |
|---|---|
| private void removeBackingItem(S item, ObservableValue<T> cellValue) | |
| runOnFilteredTableView | back to summary |
|---|---|
| private void runOnFilteredTableView(Consumer<FilteredTableView<S>> consumer) | |
| setFilterable | back to summary |
|---|---|
| public final void setFilterable(boolean value) | |
| setOnFilterAction | back to summary |
|---|---|
| public final void setOnFilterAction(EventHandler<ActionEvent> value) | |
| setPredicate | back to summary |
|---|---|
| public final void setPredicate(Predicate<? super T> value) | |
| updateButton | back to summary |
|---|---|
| private void updateButton(boolean value) | |
| updateFilterButton | back to summary |
|---|---|
| private void updateFilterButton(TableView<S> tableView) | |
| Modifier and Type | Field and Description |
|---|---|
| private final S |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| item | back to summary |
|---|---|
| private final S item | |
| CellIdentity | back to summary |
|---|---|
| pack-priv CellIdentity(S item) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |