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.util.wizard.HelpEnabledWizardPage;
30 import org.xmlhammer.gui.xpath.XPathPanel;
31 import org.xmlhammer.model.tools.xpath.XPath;
32
33 public class XPathPage extends HelpEnabledWizardPage {
34 private static final long serialVersionUID = 6688922851481710915L;
35
36 private XPathPanel xpathPanel = null;
37
38 public XPathPage(String helpID) {
39 super(new BorderLayout(), helpID);
40
41 setBorder(new EmptyBorder(20, 10, 0, 10));
42 xpathPanel = new XPathPanel(null);
43 xpathPanel.setXPath(new XPath());
44
45 add(xpathPanel, BorderLayout.NORTH);
46 }
47
48 public XPath getXPath() {
49 return xpathPanel.getXPath();
50 }
51
52 @Override
53 public String getTitle() {
54 return "XPath Expression";
55 }
56
57 @Override
58 public String getDescription() {
59 return "Specify a XPath Expression and the return-type";
60 }
61
62 @Override
63 public WizardPage getNext() {
64 return null;
65 }
66 }