- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r17252 r18370 155 155 public ExportAsPrompt() { 156 156 super(Gatherer.g_man, true); 157 157 this.setComponentOrientation(Dictionary.getOrientation()); 158 158 plugoutMap.clear(); 159 159 plugoutMap.put("DSpace","dublin-core.xml"); … … 168 168 details_textarea = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 169 169 details_textarea.setEditable(false); 170 170 details_textarea.setComponentOrientation(Dictionary.getOrientation()); 171 171 172 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 172 173 … … 178 179 instructions_textarea.setRows(4); 179 180 instructions_textarea.setWrapStyleWord(true); 180 181 instructions_textarea.setComponentOrientation(Dictionary.getOrientation()); 181 182 182 183 183 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") 184 185 ); 186 saveas_label.setComponentOrientation(Dictionary.getOrientation()); 185 187 //saveas_label.setPreferredSize(LABEL_SIZE); 186 188 … … 188 190 saveas_combobox.setOpaque(false); 189 191 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); 190 192 saveas_combobox.setComponentOrientation(Dictionary.getOrientation()); 191 193 192 194 // Add xml conversion feature … … 203 205 convert_xml_checkbox1.setText(Dictionary.get("ExportAsPrompt.ApplyXSL","doc.xml")); 204 206 convert_xml_checkbox1.setToolTipText(Dictionary.get("ExportAsPrompt.ApplyXSL_Tooltip")); 207 convert_xml_checkbox1.setComponentOrientation(Dictionary.getOrientation()); 205 208 206 209 convert_xml_checkbox2 = new JCheckBox(); 207 210 convert_xml_checkbox2.setToolTipText(Dictionary.get("ExportAsPrompt.ApplyXSL_Tooltip")); 208 209 211 convert_xml_checkbox2.setComponentOrientation(Dictionary.getOrientation()); 212 210 213 output_single_checkbox = new JCheckBox(); 214 output_single_checkbox.setComponentOrientation(Dictionary.getOrientation()); 211 215 output_single_checkbox.setText(Dictionary.get("ExportAsPrompt.MARCXMLGroup")); 212 216 output_single_checkbox.setToolTipText(Dictionary.get("ExportAsPrompt.MARCXMLGroup_Tooltip")); … … 214 218 215 219 mapping_xml_checkbox = new JCheckBox(); 220 mapping_xml_checkbox.setComponentOrientation(Dictionary.getOrientation()); 216 221 mapping_xml_checkbox.setText(Dictionary.get("ExportAsPrompt.MappingXML")); 217 222 mapping_xml_checkbox.setToolTipText(Dictionary.get("ExportAsPrompt.MappingXML_Tooltip")); 218 223 219 220 224 convert_xml_field1 = new JTextField(); 225 convert_xml_field1.setComponentOrientation(Dictionary.getOrientation()); 221 226 convert_xml_field1.setEnabled(false); 227 222 228 convert_xml_field2 = new JTextField(); 229 convert_xml_field2.setComponentOrientation(Dictionary.getOrientation()); 223 230 convert_xml_field2.setEnabled(false); 231 224 232 mapping_xml_field = new JTextField(); 233 mapping_xml_field.setComponentOrientation(Dictionary.getOrientation()); 225 234 mapping_xml_field.setEnabled(false); 226 235 227 236 convert_xml_pane1 = new JPanel(new BorderLayout()); 228 237 convert_xml_pane1.setComponentOrientation(Dictionary.getOrientation()); 238 229 239 convert_xml_pane2 = new JPanel(new BorderLayout()); 230 240 convert_xml_pane2.setComponentOrientation(Dictionary.getOrientation()); 241 231 242 mapping_xml_pane = new JPanel(new BorderLayout()); 232 243 mapping_xml_pane.setComponentOrientation(Dictionary.getOrientation()); 244 233 245 convert_xml_pane = new JPanel(new GridLayout(3,1)); 234 246 convert_xml_pane.setComponentOrientation(Dictionary.getOrientation()); 247 235 248 all_collections = new ArrayList(); 236 249 //list = new CheckList(true); 237 250 list = new JList(getCollectionListModel()); 238 251 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 239 252 list_label.setComponentOrientation(Dictionary.getOrientation()); 253 240 254 ok_button = new GLIButton(Dictionary.get("ExportAsPrompt.Export"), Dictionary.get("ExportAsPrompt.Export_Tooltip")); 241 255 242 256 title_field = new JTextField(); 257 title_field.setComponentOrientation(Dictionary.getOrientation()); 243 258 title_field.setToolTipText(Dictionary.get("ExportAsPrompt.Export_Name_Tooltip")); 244 259 title_label = new JLabel(Dictionary.get("ExportAsPrompt.Export_Name")); 245 260 title_label.setComponentOrientation(Dictionary.getOrientation()); 261 246 262 folder_button = new GLIButton(Dictionary.get("ExportAsPrompt.Browse"),Dictionary.get("ExportAsPrompt.Browse_Tooltip")); 247 263 folder_button.addActionListener(new FolderButtonListener()); … … 294 310 * returns true if it has exported the collections that are currently selected */ 295 311 public boolean display() { 312 JScrollPane scrol_tmp; 296 313 // Top pane 297 314 instructions_pane = new JPanel(new BorderLayout()); 298 instructions_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 299 instructions_pane.add(new JScrollPane(instructions_textarea), BorderLayout.CENTER); 315 instructions_pane.setComponentOrientation(Dictionary.getOrientation()); 316 instructions_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,5)); 317 scrol_tmp = new JScrollPane(instructions_textarea); 318 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 319 instructions_pane.add(scrol_tmp, BorderLayout.CENTER); 300 320 301 321 title_label.setBorder(BorderFactory.createEmptyBorder(0,5,0,15)); 302 322 303 323 JPanel title_pane = new JPanel(new BorderLayout()); 304 title_pane.add(title_label, BorderLayout.WEST); 324 title_pane.setComponentOrientation(Dictionary.getOrientation()); 325 title_pane.add(title_label, BorderLayout.LINE_START); 305 326 title_pane.add(title_field, BorderLayout.CENTER); 306 title_pane.add(folder_button, BorderLayout. EAST);327 title_pane.add(folder_button, BorderLayout.LINE_END); 307 328 //apply xsl pane 308 329 … … 312 333 convert_xml_pane.removeAll(); 313 334 314 convert_xml_pane1.add(convert_xml_checkbox1, BorderLayout. WEST);335 convert_xml_pane1.add(convert_xml_checkbox1, BorderLayout.LINE_START); 315 336 convert_xml_pane1.add(convert_xml_field1, BorderLayout.CENTER); 316 convert_xml_pane1.add(convert_xml_button1, BorderLayout. EAST);317 318 convert_xml_pane2.add(convert_xml_checkbox2, BorderLayout. WEST);337 convert_xml_pane1.add(convert_xml_button1, BorderLayout.LINE_END); 338 339 convert_xml_pane2.add(convert_xml_checkbox2, BorderLayout.LINE_START); 319 340 convert_xml_pane2.add(convert_xml_field2, BorderLayout.CENTER); 320 convert_xml_pane2.add(convert_xml_button2, BorderLayout. EAST);341 convert_xml_pane2.add(convert_xml_button2, BorderLayout.LINE_END); 321 342 322 mapping_xml_pane.add(mapping_xml_checkbox, BorderLayout. WEST);343 mapping_xml_pane.add(mapping_xml_checkbox, BorderLayout.LINE_START); 323 344 mapping_xml_pane.add(mapping_xml_field, BorderLayout.CENTER); 324 mapping_xml_pane.add(convert_xml_button3, BorderLayout. EAST);345 mapping_xml_pane.add(convert_xml_button3, BorderLayout.LINE_END); 325 346 326 347 convert_xml_pane.add(convert_xml_pane1); … … 332 353 // Save as pane 333 354 JPanel saveas_pane = new JPanel(new BorderLayout()); 355 saveas_pane.setComponentOrientation(Dictionary.getOrientation()); 334 356 saveas_label.setBorder(BorderFactory.createEmptyBorder(0,5,0,15)); 335 saveas_pane.add(saveas_label, BorderLayout. WEST);357 saveas_pane.add(saveas_label, BorderLayout.LINE_START); 336 358 saveas_pane.add(saveas_combobox, BorderLayout.CENTER); 337 359 338 360 JPanel tmp_pane = new JPanel(new BorderLayout()); 361 tmp_pane.setComponentOrientation(Dictionary.getOrientation()); 339 362 tmp_pane.add(saveas_pane, BorderLayout.NORTH); 340 363 tmp_pane.add(title_pane, BorderLayout.CENTER); … … 346 369 // Central pane 347 370 JPanel list_pane = new JPanel(new BorderLayout()); 371 list_pane.setComponentOrientation(Dictionary.getOrientation()); 348 372 list_pane.add(list_label, BorderLayout.NORTH); 349 list_pane.add(new JScrollPane(list), BorderLayout.CENTER); 373 scrol_tmp = new JScrollPane(list); 374 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 375 list_pane.add(scrol_tmp, BorderLayout.CENTER); 350 376 list_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); 351 377 352 378 JPanel details_pane = new JPanel(new BorderLayout()); 379 details_pane.setComponentOrientation(Dictionary.getOrientation()); 353 380 details_pane.add(details_label, BorderLayout.NORTH); 354 details_pane.add(new JScrollPane(details_textarea), BorderLayout.CENTER); 381 scrol_tmp = new JScrollPane(details_textarea); 382 scrol_tmp.setComponentOrientation(Dictionary.getOrientation()); 383 details_pane.add(scrol_tmp, BorderLayout.CENTER); 355 384 details_pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 356 385 357 386 JPanel central_pane = new JPanel(new GridLayout(2, 1)); 387 central_pane.setComponentOrientation(Dictionary.getOrientation()); 358 388 central_pane.add(list_pane); 359 389 central_pane.add(details_pane); … … 362 392 // Lower pane 363 393 JPanel button_pane = new JPanel(new GridLayout(1, 2)); 394 button_pane.setComponentOrientation(Dictionary.getOrientation()); 364 395 button_pane.add(ok_button); 365 396 button_pane.add(cancel_button); … … 367 398 368 399 JPanel lower_pane = new JPanel(new BorderLayout()); 400 lower_pane.setComponentOrientation(Dictionary.getOrientation()); 369 401 lower_pane.add(button_pane, BorderLayout.SOUTH); 370 402 lower_pane.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5)); … … 372 404 // Final. 373 405 JPanel content_pane = (JPanel)this.getContentPane(); 406 content_pane.setComponentOrientation(Dictionary.getOrientation()); 374 407 content_pane.setLayout(new BorderLayout()); 375 408 content_pane.add(instructions_pane, BorderLayout.NORTH);
Note:
See TracChangeset
for help on using the changeset viewer.