Revision 33729 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/creation/panel/SelectOutputFilePanel.java
SelectOutputFilePanel.java | ||
---|---|---|
43 | 43 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
44 | 44 |
*/ |
45 | 45 |
public abstract class SelectOutputFilePanel extends JPanel { |
46 |
protected DefaultSwingInstallerManager swingInstallerManager = null; |
|
47 |
private JLabel fileLabel; |
|
46 |
|
|
47 |
/** |
|
48 |
* |
|
49 |
*/ |
|
50 |
private static final long serialVersionUID = 1219577194134960697L; |
|
51 |
protected DefaultSwingInstallerManager swingInstallerManager = null; |
|
52 |
private JLabel fileLabel; |
|
48 | 53 |
protected FileTextField fileTextField; |
49 | 54 |
private javax.swing.JPanel northPanel; |
50 | 55 |
|
51 |
public SelectOutputFilePanel() { |
|
52 |
super(); |
|
53 |
swingInstallerManager = (DefaultSwingInstallerManager)SwingInstallerLocator.getSwingInstallerManager(); |
|
54 |
initComponents(); |
|
55 |
initLabels(); |
|
56 |
} |
|
56 |
public SelectOutputFilePanel() { |
|
57 |
super(); |
|
58 |
swingInstallerManager = |
|
59 |
(DefaultSwingInstallerManager) SwingInstallerLocator |
|
60 |
.getSwingInstallerManager(); |
|
61 |
initComponents(); |
|
62 |
initLabels(); |
|
63 |
} |
|
57 | 64 |
|
58 |
private void initLabels() {
|
|
59 |
fileLabel.setText(swingInstallerManager.getText("file") + ":");
|
|
60 |
}
|
|
65 |
private void initLabels() {
|
|
66 |
fileLabel.setText(swingInstallerManager.getText("file") + ":");
|
|
67 |
}
|
|
61 | 68 |
|
62 |
private void initComponents() {
|
|
69 |
private void initComponents() {
|
|
63 | 70 |
java.awt.GridBagConstraints gridBagConstraints; |
64 | 71 |
|
65 | 72 |
northPanel = new JPanel(); |
... | ... | |
69 | 76 |
setLayout(new BorderLayout()); |
70 | 77 |
|
71 | 78 |
northPanel.setLayout(new GridBagLayout()); |
72 |
|
|
79 |
|
|
73 | 80 |
northPanel.add(fileLabel, new GridBagConstraints()); |
74 | 81 |
|
75 | 82 |
gridBagConstraints = new GridBagConstraints(); |
... | ... | |
80 | 87 |
northPanel.add(fileTextField, gridBagConstraints); |
81 | 88 |
|
82 | 89 |
add(northPanel, BorderLayout.NORTH); |
83 |
} |
|
84 |
|
|
85 |
public File getSelectedFile(){ |
|
86 |
return fileTextField.getSelectedFile(); |
|
87 |
} |
|
90 |
} |
|
88 | 91 |
|
92 |
public File getSelectedFile() { |
|
93 |
return fileTextField.getSelectedFile(); |
|
94 |
} |
|
95 |
|
|
89 | 96 |
protected void setSelectedFile(File selectedFile) { |
90 | 97 |
fileTextField.setSelectedFile(selectedFile); |
91 | 98 |
} |
92 | 99 |
} |
93 |
|
Also available in: Unified diff