 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.filter;
22 import java.util.ArrayList;
23 import java.util.Collection;
24 import java.util.Map.Entry;
25 import javax.swing.JComponent;
26 import javax.swing.JMenu;
32 import org.apache.log4j.Category;
33 import org.apache.log4j.Logger;
34 import org.jetbrains.annotations.NotNull;
53 private final Collection<FilterComponent>
components =
new ArrayList<>();
65 filterComponent.
addFilter(entry.getKey(), entry.getValue());
72 final JComponent menu =
new JMenu(getName());
79 final JComponent menu =
new JMenu(getName());
94 if (
LOG.isDebugEnabled()) {
95 LOG.debug(
"set sub filter enabled(), calling on " + filterName);
104 filterComponent.removeFilter(filterName);
Enumeration of event types of NamedFilterEvent.
Base package of all Gridarta classes.
Updates a Component to reflect the current state of a {}.
A FilterConfig that has a name.
Map< String, FilterConfig<?, ?> > getEntries()
Returns a Map containing all configurations of sub-filters.
Interface for filter configurations.
void addFilter(@NotNull final String name, @NotNull final FilterConfig<?, ?> config)
Interface for listeners interested in NamedFilter related events.
void setSubFilterEnabled(@NotNull final String name, final boolean enabled)
Sets whether a sub-filter is enabled.
FilterConfig<?, ?> getConfig(@NotNull final String name)
Returns the FilterConfig for a sub-filter.