Revision 35745 branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/panel/SelectFileOptionPanel.java
SelectFileOptionPanel.java | ||
---|---|---|
26 | 26 |
import java.io.File; |
27 | 27 |
|
28 | 28 |
import javax.swing.JOptionPane; |
29 |
import javax.swing.JPanel; |
|
29 | 30 |
|
30 | 31 |
import org.gvsig.exportto.swing.ExporttoSwingLocator; |
31 | 32 |
import org.gvsig.exportto.swing.ExporttoSwingManager; |
32 | 33 |
import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException; |
33 | 34 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel; |
35 |
import org.gvsig.i18n.Messages; |
|
34 | 36 |
|
35 | 37 |
/** |
36 | 38 |
* @author gvSIG Team |
... | ... | |
39 | 41 |
*/ |
40 | 42 |
public class SelectFileOptionPanel extends ExporttoSwingProviderPanel{ |
41 | 43 |
private static final long serialVersionUID = -7417782279157857962L; |
42 |
|
|
44 |
private JPanel optionsPanel; |
|
45 |
|
|
43 | 46 |
private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER = |
44 | 47 |
ExporttoSwingLocator.getSwingManager(); |
45 | 48 |
|
... | ... | |
49 | 52 |
* @param fileText |
50 | 53 |
*/ |
51 | 54 |
public SelectFileOptionPanel() { |
55 |
this(null); |
|
56 |
} |
|
57 |
|
|
58 |
public SelectFileOptionPanel(JPanel optionsPanel) { |
|
52 | 59 |
super(); |
53 | 60 |
this.setLayout(new BorderLayout()); |
54 | 61 |
selectFileOptionPanel = new org.gvsig.gui.beans.wizard.panel.SelectFileOptionPanel(null); |
55 | 62 |
add(selectFileOptionPanel, BorderLayout.NORTH); |
63 |
if (optionsPanel != null){ |
|
64 |
optionsPanel.setBorder( |
|
65 |
javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createTitledBorder(Messages.getText("options")), |
|
66 |
javax.swing.BorderFactory.createEmptyBorder(10, 5, 5, 5))); |
|
67 |
add(optionsPanel, BorderLayout.CENTER); |
|
68 |
this.optionsPanel = optionsPanel; |
|
69 |
} |
|
56 | 70 |
} |
57 | 71 |
|
58 | 72 |
@Override |
... | ... | |
79 | 93 |
} |
80 | 94 |
} |
81 | 95 |
return true; |
96 |
} |
|
97 |
|
|
98 |
/** |
|
99 |
* @return the optionsPanel |
|
100 |
*/ |
|
101 |
public JPanel getOptionsPanel() { |
|
102 |
return optionsPanel; |
|
82 | 103 |
} |
83 | 104 |
} |
Also available in: Unified diff