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 import java.util.List;
26
27 import javax.swing.border.EmptyBorder;
28
29 import org.bounce.wizard.WizardPage;
30 import org.xmlhammer.gui.util.wizard.HelpEnabledWizardPage;
31 import org.xmlhammer.gui.xslt.StylesheetURIsPanel;
32 import org.xmlhammer.model.project.Document;
33
34 public class StylesheetURIsPage extends HelpEnabledWizardPage {
35 private static final long serialVersionUID = 6688922851481710915L;
36
37 private OutputPropertiesSelectionPage outputPropertiesSelectionPage = null;
38
39 private StylesheetURIsPanel stylesheetsPanel = null;
40
41 public StylesheetURIsPage(String helpID, OutputPropertiesSelectionPage outputPropertiesSelectionPage) {
42 super(new BorderLayout(), helpID);
43
44 this.outputPropertiesSelectionPage = outputPropertiesSelectionPage;
45
46 setBorder(new EmptyBorder(20, 10, 0, 10));
47 stylesheetsPanel = new StylesheetURIsPanel(null);
48
49 add(stylesheetsPanel, BorderLayout.NORTH);
50
51 stylesheetsPanel.setURIs(null, null);
52 }
53
54 public List<Document> getURIs() {
55 return stylesheetsPanel.getURIs(null);
56 }
57
58 @Override
59 public String getTitle() {
60 return "Specify Stylesheet";
61 }
62
63 @Override
64 public String getDescription() {
65 return "Specify a set of Stylesheets URIs.";
66 }
67
68 @Override
69 public WizardPage getNext() {
70 return outputPropertiesSelectionPage;
71 }
72 }