1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.xmlhammer.gui.wizard;
23
24 import java.awt.BorderLayout;
25
26 import javax.swing.border.EmptyBorder;
27
28 import org.bounce.wizard.WizardPage;
29 import org.xmlhammer.gui.input.FilterFilesPanel;
30 import org.xmlhammer.gui.util.wizard.HelpEnabledWizardPage;
31 import org.xmlhammer.model.project.Filter;
32
33 public class InputFilterPage extends HelpEnabledWizardPage {
34
35 private static final long serialVersionUID = 2705250173124399728L;
36
37 private FilterFilesPanel filterFiles = null;
38 private WizardPage next = null;
39
40 public InputFilterPage(String helpID, WizardPage next) {
41 this(helpID, next, false);
42 }
43
44 public InputFilterPage(String helpID, WizardPage next, boolean resultEnabled) {
45 super(new BorderLayout(), helpID);
46
47 this.next = next;
48 filterFiles = new FilterFilesPanel(null, resultEnabled);
49
50 setBorder(new EmptyBorder(10, 0, 0, 0));
51
52 add(filterFiles, BorderLayout.CENTER);
53 }
54
55 public Filter getFilter() {
56 return filterFiles.getFilter(null);
57 }
58
59 @Override
60 public String getTitle() {
61 return "Filter Files";
62 }
63
64 @Override
65 public String getDescription() {
66 return "Specify a File Filter using wildcards or regular expressions.";
67 }
68
69 @Override
70 public WizardPage getNext() {
71 return next;
72 }
73 }