- Timestamp:
- 2009-01-22T12:15:09+13:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/cdm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/DepositorMetadataManager.java
r18412 r18414 342 342 // the checkbox component 343 343 enabled = new JCheckBox(entry.name); 344 enabled.setComponentOrientation(Dictionary.getOrientation()); 344 345 enabled.setSelected(entry.selected); 345 346 enabled.setOpaque(false); 346 347 enabled.setPreferredSize(LABEL_SIZE); 347 348 enabled.setToolTipText(entry.tooltip); 348 add(enabled, BorderLayout. WEST);349 add(enabled, BorderLayout.LINE_START); 349 350 350 351 // the drop down list component … … 354 355 } 355 356 value_control = new GComboBox(option_list.toArray(), false, false); 357 value_control.setComponentOrientation(Dictionary.getOrientation()); 356 358 selectValue((JComboBox)value_control, entry.type); 357 359 value_control.setOpaque(true); -
gli/trunk/src/org/greenstone/gatherer/cdm/FormatManager.java
r15137 r18414 313 313 314 314 public FormatControl() { 315 this.setComponentOrientation(Dictionary.getOrientation()); 315 316 feature_model = buildFeatureModel(); 316 317 part_model = buildPartModel(); … … 324 325 selection_pane = new JPanel(); 325 326 JPanel feature_pane = new JPanel(); 327 feature_pane.setComponentOrientation(Dictionary.getOrientation()); 328 326 329 JLabel feature_label = new JLabel(Dictionary.get("CDM.FormatManager.Feature")); 327 330 feature_label.setComponentOrientation(Dictionary.getOrientation()); 331 328 332 feature_combobox = new JComboBox(feature_model.toArray()); 333 feature_combobox.setComponentOrientation(Dictionary.getOrientation()); 334 329 335 feature_combobox.setOpaque(!Utility.isMac()); 330 336 feature_combobox.setPreferredSize(FIELD_SIZE); … … 333 339 334 340 part_pane = new JPanel(); 341 part_pane.setComponentOrientation(Dictionary.getOrientation()); 335 342 JLabel part_label = new JLabel(Dictionary.get("CDM.FormatManager.Part")); 343 part_label.setComponentOrientation(Dictionary.getOrientation()); 336 344 part_combobox = new JComboBox(part_model.toArray()); 345 part_combobox.setComponentOrientation(Dictionary.getOrientation()); 337 346 part_combobox.setOpaque(!Utility.isMac()); 338 347 part_combobox.setPreferredSize(FIELD_SIZE); … … 352 361 JPanel editor_header_pane = new JPanel(); 353 362 JLabel editor_label = new JLabel(Dictionary.get("CDM.FormatManager.Editor")); 363 editor_label.setComponentOrientation(Dictionary.getOrientation()); 354 364 355 365 editor_textarea = new JTextArea(); … … 361 371 editor_textarea.setToolTipText(Dictionary.get("CDM.FormatManager.Add_Tooltip")); 362 372 363 JPanel variable_pane = new JPanel();364 365 373 variable_combobox = new JComboBox(variable_model.toArray()); 374 variable_combobox.setComponentOrientation(Dictionary.getOrientation()); 366 375 variable_combobox.setOpaque(!Utility.isMac()); 367 376 variable_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Variable_Tooltip")); … … 373 382 JPanel flag_pane = new JPanel(); 374 383 enabled_checkbox = new JCheckBox(Dictionary.get("CDM.FormatManager.Enabled")); 384 enabled_checkbox.setComponentOrientation(Dictionary.getOrientation()); 375 385 376 386 JPanel button_pane = new JPanel(); 387 button_pane.setComponentOrientation(Dictionary.getOrientation()); 377 388 add_button = new GLIButton(Dictionary.get("CDM.FormatManager.Add"), Dictionary.get("CDM.FormatManager.Add_Tooltip")); 378 389 add_button.setEnabled(false); … … 418 429 feature_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 419 430 feature_pane.setLayout(new BorderLayout(5,0)); 420 feature_pane.add(feature_label, BorderLayout. WEST);431 feature_pane.add(feature_label, BorderLayout.LINE_START); 421 432 feature_pane.add(feature_combobox, BorderLayout.CENTER); 422 433 423 434 part_pane.setBorder(BorderFactory.createEmptyBorder(2,0,0,0)); 424 435 part_pane.setLayout(new BorderLayout(5, 0)); 425 part_pane.add(part_label, BorderLayout. WEST);436 part_pane.add(part_label, BorderLayout.LINE_START); 426 437 part_pane.add(part_combobox, BorderLayout.CENTER); 427 438 … … 434 445 435 446 JPanel rupanel = new JPanel(); 447 rupanel.setComponentOrientation(Dictionary.getOrientation()); 436 448 rupanel.setLayout(new GridLayout(1,2)); 437 449 rupanel.add(undo_button); 438 450 rupanel.add(redo_button); 439 451 452 JPanel variable_pane = new JPanel(); 453 variable_pane.setComponentOrientation(Dictionary.getOrientation()); 440 454 variable_pane.setBorder(BorderFactory.createEmptyBorder(2,0,2,0)); 441 455 variable_pane.setLayout(new GridLayout(1,3)); -
gli/trunk/src/org/greenstone/gatherer/cdm/SearchMetadataManager.java
r18412 r18414 207 207 public SearchMetadataTable() { 208 208 // create the model 209 this.setComponentOrientation(Dictionary.getOrientation()); 210 209 211 model = new SearchMetadataTableModel(); 210 212 setModel(model);
Note:
See TracChangeset
for help on using the changeset viewer.