View Javadoc

1   package org.xmlhammer.gui.wizard;
2   
3   import javax.swing.JCheckBox;
4   import javax.swing.border.EmptyBorder;
5   
6   import org.bounce.FormLayout;
7   import org.bounce.wizard.WizardPage;
8   import org.xmlhammer.gui.util.wizard.HelpEnabledWizardPage;
9   
10  public class ParserPropertiesPage extends HelpEnabledWizardPage {
11  
12      private static final long serialVersionUID = -1909903213579390495L;
13      
14      private WizardPage nextPage = null;
15      
16  //  private JCheckBox validating            = null;
17      private JCheckBox namespaceAware        = null;
18      private JCheckBox xincludeAware         = null;
19  
20      public ParserPropertiesPage(String helpID, WizardPage next) {
21          super(new FormLayout(0, 5), helpID);
22          
23          this.nextPage = next;
24          
25          setBorder(new EmptyBorder(20, 50, 10, 10));
26          
27          namespaceAware = new JCheckBox( "Namespace Aware");
28          namespaceAware.setSelected(true);
29          xincludeAware = new JCheckBox( "XInclude Aware");
30  //      validating = new JCheckBox( "Validating");
31  
32          add(namespaceAware, FormLayout.FULL);
33          add(xincludeAware, FormLayout.FULL);
34  //      add(validating, FormLayout.FULL);
35      }
36      
37      @Override
38      public String getTitle() {
39          return "Parser Properties";
40      }
41  
42      @Override
43      public String getDescription() {
44          return "Specify the Parser Properties.";
45      }
46  
47      @Override
48      public WizardPage getNext() {
49          return nextPage;
50      }
51      
52  //  public boolean isValidating() {
53  //      return validating.isSelected();
54  //  }
55  
56      public boolean isNamespaceAware() {
57          return namespaceAware.isSelected();
58      }
59  
60      public boolean isXincludeAware() {
61          return xincludeAware.isSelected();
62      }
63  }