01: package tijmp.actions;
02:
03: import javax.swing.AbstractAction;
04: import tijmp.ui.FilterConfig;
05:
06: /** An action that acts on a given filter config.
07: */
08: public abstract class FilterAction extends AbstractAction {
09: private FilterConfig fc;
10:
11: public FilterAction(String title, FilterConfig fc) {
12: super (title);
13: if (fc == null)
14: throw new IllegalArgumentException("fc may not be null");
15: this .fc = fc;
16: }
17:
18: public FilterConfig getFilterConfig() {
19: return fc;
20: }
21: }
|