public class FilterComponent
extends java.lang.Object
Component
to reflect the current state of a NamedFilterConfig
. This means that checkbox menu entries for "active" and
"inverted" states are added and further menu items for sub-filter. The
components will be updated whenever the filter config changes.Constructor and Description |
---|
FilterComponent(@NotNull java.awt.Container component,
@NotNull NamedFilterConfig config)
Createsa a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(@NotNull java.lang.String name,
@NotNull FilterConfig<?,?> config) |
void |
removeFilter(@NotNull java.lang.String name) |
public FilterComponent(@NotNull @NotNull java.awt.Container component, @NotNull @NotNull NamedFilterConfig config)
component
- the component that is updated to reflect the state of
config
config
- the filter config to showpublic void addFilter(@NotNull @NotNull java.lang.String name, @NotNull @NotNull FilterConfig<?,?> config)
public void removeFilter(@NotNull @NotNull java.lang.String name)