| 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.xslt.AssociatedStylesheetPanel; |
| 31 |
|
import org.xmlhammer.model.tools.xslt.Associated; |
| 32 |
|
|
| 33 |
|
public class AssociatedStylesheetPage extends HelpEnabledWizardPage { |
| 34 |
|
private static final long serialVersionUID = 6688922851481710915L; |
| 35 |
|
|
| 36 |
44 |
private OutputPropertiesSelectionPage outputPropertiesSelectionPage = null; |
| 37 |
|
|
| 38 |
44 |
private AssociatedStylesheetPanel stylesheetsPanel = null; |
| 39 |
|
|
| 40 |
|
public AssociatedStylesheetPage(String helpID, OutputPropertiesSelectionPage outputPropertiesSelectionPage) { |
| 41 |
44 |
super(new BorderLayout(), helpID); |
| 42 |
|
|
| 43 |
44 |
this.outputPropertiesSelectionPage = outputPropertiesSelectionPage; |
| 44 |
|
|
| 45 |
44 |
setBorder(new EmptyBorder(20, 10, 0, 10)); |
| 46 |
44 |
stylesheetsPanel = new AssociatedStylesheetPanel(null); |
| 47 |
|
|
| 48 |
44 |
add(stylesheetsPanel, BorderLayout.NORTH); |
| 49 |
44 |
} |
| 50 |
|
|
| 51 |
|
public Associated getAssociated() { |
| 52 |
0 |
return stylesheetsPanel.getAssociated(); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
@Override |
| 56 |
|
public String getTitle() { |
| 57 |
22 |
return "Use Associated Stylesheet"; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
@Override |
| 61 |
|
public String getDescription() { |
| 62 |
22 |
return "Specify the properties for an associated stylesheet."; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
@Override |
| 66 |
|
public WizardPage getNext() { |
| 67 |
22 |
return outputPropertiesSelectionPage; |
| 68 |
|
} |
| 69 |
|
} |