Package net.sf.gridarta.gui.filter
Class FilterComponent
- java.lang.Object
-
- net.sf.gridarta.gui.filter.FilterComponent
-
public class FilterComponent extends java.lang.ObjectUpdates aComponentto reflect the current state of aNamedFilterConfig. 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 Summary
Constructors Constructor Description FilterComponent(@NotNull java.awt.Container component, @NotNull NamedFilterConfig config)Createsa a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(@NotNull java.lang.String name, @NotNull FilterConfig<?,?> config)voidremoveFilter(@NotNull java.lang.String name)
-
-
-
Constructor Detail
-
FilterComponent
public FilterComponent(@NotNull @NotNull java.awt.Container component, @NotNull @NotNull NamedFilterConfig config)Createsa a new instance.- Parameters:
component- the component that is updated to reflect the state ofconfigconfig- the filter config to show
-
-
Method Detail
-
addFilter
public void addFilter(@NotNull @NotNull java.lang.String name, @NotNull @NotNull FilterConfig<?,?> config)
-
removeFilter
public void removeFilter(@NotNull @NotNull java.lang.String name)
-
-