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