| 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.input.InputURIsPanel; |
| 31 |
|
import org.xmlhammer.gui.util.wizard.HelpEnabledWizardPage; |
| 32 |
|
import org.xmlhammer.model.project.Document; |
| 33 |
|
|
| 34 |
|
public class InputURIsPage extends HelpEnabledWizardPage { |
| 35 |
|
private static final long serialVersionUID = 6688922851481710915L; |
| 36 |
220 |
private WizardPage next = null; |
| 37 |
220 |
private InputURIsPanel urisPanel = null; |
| 38 |
|
|
| 39 |
|
public InputURIsPage(String helpID, WizardPage next) { |
| 40 |
176 |
this(helpID, next, false); |
| 41 |
176 |
} |
| 42 |
|
|
| 43 |
|
public InputURIsPage(String helpID, WizardPage next, boolean resultEnabled) { |
| 44 |
220 |
super(new BorderLayout(), helpID); |
| 45 |
|
|
| 46 |
220 |
this.next = next; |
| 47 |
|
|
| 48 |
220 |
setBorder(new EmptyBorder(10, 0, 0, 0)); |
| 49 |
220 |
urisPanel = new InputURIsPanel(null, resultEnabled); |
| 50 |
|
|
| 51 |
220 |
add(urisPanel, BorderLayout.CENTER); |
| 52 |
20 |
|
| 53 |
200 |
urisPanel.setURIs(null, null); |
| 54 |
200 |
} |
| 55 |
0 |
|
| 56 |
|
public List<Document> getURIs() { |
| 57 |
0 |
return urisPanel.getURIs(null); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
10 |
@Override |
| 61 |
|
public String getTitle() { |
| 62 |
100 |
return "Specify Input URIs"; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
10 |
@Override |
| 66 |
|
public String getDescription() { |
| 67 |
100 |
return "Specify specific Input Document URIs"; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
18 |
@Override |
| 71 |
|
public WizardPage getNext() { |
| 72 |
180 |
return next; |
| 73 |
|
} |
| 74 |
|
} |