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.XMLOutputPanel;
32 import org.xmlhammer.model.tools.xslt.OutputProperty;
33
34 public class TextOutputPropertiesPage extends HelpEnabledWizardPage {
35 private static final long serialVersionUID = 6688922851481710915L;
36
37 private XMLOutputPanel propertiesPanel = null;
38
39 public TextOutputPropertiesPage(String helpID) {
40 super(new BorderLayout(), helpID);
41
42 setBorder(new EmptyBorder(10, 10, 0, 10));
43 propertiesPanel = new XMLOutputPanel(null, XMLOutputPanel.OUTPUT_METHOD_TEXT);
44
45 add(propertiesPanel, BorderLayout.NORTH);
46 }
47
48 public List<OutputProperty> getProperties() {
49 return propertiesPanel.getProperties(null);
50 }
51
52 @Override
53 public String getTitle() {
54 return "Text Output Method";
55 }
56
57 @Override
58 public String getDescription() {
59 return "Specify the properties for the Text output-method.";
60 }
61
62 @Override
63 public WizardPage getNext() {
64 return null;
65 }
66 }