15 |
15 |
import javax.swing.JRadioButton;
|
16 |
16 |
import javax.swing.JTextField;
|
17 |
17 |
|
|
18 |
import org.gvsig.installer.swing.api.SwingInstallerLocator;
|
|
19 |
import org.gvsig.installer.swing.api.SwingInstallerManager;
|
|
20 |
|
18 |
21 |
import com.jgoodies.forms.layout.CellConstraints;
|
19 |
22 |
import com.jgoodies.forms.layout.FormLayout;
|
20 |
23 |
|
... | ... | |
35 |
38 |
JTextField packageURLTextField = new JTextField();
|
36 |
39 |
JRadioButton usePoolURLRadioButton = new JRadioButton();
|
37 |
40 |
JTextField packageURLPoolTextField = new JTextField();
|
|
41 |
private SwingInstallerManager swingInstallerManager;
|
38 |
42 |
|
39 |
43 |
/**
|
40 |
44 |
* Default constructor
|
41 |
45 |
*/
|
42 |
46 |
public DefaultOutputPanelLayout()
|
43 |
47 |
{
|
|
48 |
swingInstallerManager = SwingInstallerLocator.getSwingInstallerManager();
|
44 |
49 |
initializePanel();
|
45 |
50 |
}
|
46 |
51 |
|
... | ... | |
131 |
136 |
jpanel1.setLayout(formlayout1);
|
132 |
137 |
|
133 |
138 |
fileLabel.setName("fileLabel");
|
134 |
|
fileLabel.setText("Indique la ubicacion en la que se generara el paquete:");
|
|
139 |
fileLabel.setText(swingInstallerManager.getText("select_package_location")+":");
|
135 |
140 |
jpanel1.add(fileLabel,cc.xywh(2,2,5,1));
|
136 |
141 |
|
137 |
142 |
fileTextField.setName("fileTextField");
|
... | ... | |
143 |
148 |
jpanel1.add(fileBrowserButton,cc.xy(6,3));
|
144 |
149 |
|
145 |
150 |
createPackageIndexLabel.setName("createPackageIndexLabel");
|
146 |
|
createPackageIndexLabel.setText("? Desea crear el indice para este paquete ?");
|
|
151 |
createPackageIndexLabel.setText(swingInstallerManager.getText("create_package_index"));
|
147 |
152 |
jpanel1.add(createPackageIndexLabel,cc.xywh(2,5,5,1));
|
148 |
153 |
|
149 |
154 |
createPackageIndexCheckBox.setActionCommand("Crear indice para el paquete");
|
150 |
155 |
createPackageIndexCheckBox.setName("createPackageIndexCheckBox");
|
151 |
|
createPackageIndexCheckBox.setText("Crear indice para el paquete");
|
|
156 |
createPackageIndexCheckBox.setText(swingInstallerManager.getText("create_index_for_package"));
|
152 |
157 |
jpanel1.add(createPackageIndexCheckBox,cc.xywh(2,6,5,1));
|
153 |
158 |
|
154 |
159 |
indexFileLabel.setName("indexFileLabel");
|
155 |
|
indexFileLabel.setText("Indique la ubicacion en la que se generara el indice");
|
|
160 |
indexFileLabel.setText(swingInstallerManager.getText("select_package_index_location"));
|
156 |
161 |
jpanel1.add(indexFileLabel,cc.xywh(3,7,4,1));
|
157 |
162 |
|
158 |
163 |
indexFileTextField.setName("indexFileTextField");
|
... | ... | |
164 |
169 |
jpanel1.add(indexFileBrowserButton,cc.xy(6,8));
|
165 |
170 |
|
166 |
171 |
packageURLLabel.setName("packageURLLabel");
|
167 |
|
packageURLLabel.setText("Para crear un indice debera indicar la url desde la que se podra descargar su paquete una vez generado.");
|
|
172 |
packageURLLabel.setText(swingInstallerManager.getText("destination_package_url"));
|
168 |
173 |
jpanel1.add(packageURLLabel,cc.xywh(3,9,4,1));
|
169 |
174 |
|
170 |
175 |
useAbsoluteURLRadioButton.setActionCommand("Indique una url absoluta a donde se encontrara el paquete:");
|
171 |
176 |
useAbsoluteURLRadioButton.setName("useAbsoluteURLRadioButton");
|
172 |
|
useAbsoluteURLRadioButton.setText("Indique una url absoluta a donde se encontrara el paquete:");
|
|
177 |
useAbsoluteURLRadioButton.setText(swingInstallerManager.getText("absolute_url_package_location")+":");
|
173 |
178 |
buttongroup1.add(useAbsoluteURLRadioButton);
|
174 |
179 |
jpanel1.add(useAbsoluteURLRadioButton,cc.xywh(3,10,4,1));
|
175 |
180 |
|
... | ... | |
178 |
183 |
|
179 |
184 |
usePoolURLRadioButton.setActionCommand("Indique la URL al pool desde el que se podra descargar su paquete (recomendado):");
|
180 |
185 |
usePoolURLRadioButton.setName("usePoolURLRadioButton");
|
181 |
|
usePoolURLRadioButton.setText("Indique la URL al pool desde el que se podra descargar su paquete (recomendado):");
|
|
186 |
usePoolURLRadioButton.setText(swingInstallerManager.getText("pool_url_package_location")+":");
|
182 |
187 |
buttongroup1.add(usePoolURLRadioButton);
|
183 |
188 |
jpanel1.add(usePoolURLRadioButton,cc.xywh(3,12,4,1));
|
184 |
189 |
|