Changeset 18414 for gli


Ignore:
Timestamp:
2009-01-22T12:15:09+13:00 (15 years ago)
Author:
kjdon
Message:

a few more mods for RTL gli

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  
    342342        // the checkbox component
    343343        enabled = new JCheckBox(entry.name);
     344        enabled.setComponentOrientation(Dictionary.getOrientation());
    344345        enabled.setSelected(entry.selected);
    345346        enabled.setOpaque(false);
    346347        enabled.setPreferredSize(LABEL_SIZE);
    347348        enabled.setToolTipText(entry.tooltip);
    348         add(enabled, BorderLayout.WEST);
     349        add(enabled, BorderLayout.LINE_START);
    349350           
    350351        // the drop down list component
     
    354355        }
    355356        value_control = new GComboBox(option_list.toArray(), false, false);
     357        value_control.setComponentOrientation(Dictionary.getOrientation());
    356358        selectValue((JComboBox)value_control, entry.type);
    357359        value_control.setOpaque(true);         
  • gli/trunk/src/org/greenstone/gatherer/cdm/FormatManager.java

    r15137 r18414  
    313313   
    314314    public FormatControl() {
     315      this.setComponentOrientation(Dictionary.getOrientation());
    315316      feature_model = buildFeatureModel();
    316317      part_model = buildPartModel();
     
    324325      selection_pane = new JPanel();
    325326      JPanel feature_pane = new JPanel();
     327      feature_pane.setComponentOrientation(Dictionary.getOrientation());
     328
    326329      JLabel feature_label = new JLabel(Dictionary.get("CDM.FormatManager.Feature"));
    327      
     330      feature_label.setComponentOrientation(Dictionary.getOrientation());
     331
    328332      feature_combobox = new JComboBox(feature_model.toArray());
     333      feature_combobox.setComponentOrientation(Dictionary.getOrientation());
     334
    329335      feature_combobox.setOpaque(!Utility.isMac());
    330336      feature_combobox.setPreferredSize(FIELD_SIZE);
     
    333339     
    334340      part_pane = new JPanel();
     341      part_pane.setComponentOrientation(Dictionary.getOrientation());
    335342      JLabel part_label = new JLabel(Dictionary.get("CDM.FormatManager.Part"));
     343      part_label.setComponentOrientation(Dictionary.getOrientation());
    336344      part_combobox = new JComboBox(part_model.toArray());
     345      part_combobox.setComponentOrientation(Dictionary.getOrientation());
    337346      part_combobox.setOpaque(!Utility.isMac());
    338347      part_combobox.setPreferredSize(FIELD_SIZE);
     
    352361      JPanel editor_header_pane = new JPanel();
    353362      JLabel editor_label = new JLabel(Dictionary.get("CDM.FormatManager.Editor"));
     363      editor_label.setComponentOrientation(Dictionary.getOrientation());
    354364     
    355365      editor_textarea = new JTextArea();
     
    361371      editor_textarea.setToolTipText(Dictionary.get("CDM.FormatManager.Add_Tooltip"));
    362372     
    363       JPanel variable_pane = new JPanel();
    364      
    365373      variable_combobox = new JComboBox(variable_model.toArray());
     374      variable_combobox.setComponentOrientation(Dictionary.getOrientation());
    366375      variable_combobox.setOpaque(!Utility.isMac());
    367376      variable_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Variable_Tooltip"));
     
    373382      JPanel flag_pane = new JPanel();
    374383      enabled_checkbox = new JCheckBox(Dictionary.get("CDM.FormatManager.Enabled"));
     384      enabled_checkbox.setComponentOrientation(Dictionary.getOrientation());
    375385     
    376386      JPanel button_pane = new JPanel();
     387      button_pane.setComponentOrientation(Dictionary.getOrientation());
    377388      add_button = new GLIButton(Dictionary.get("CDM.FormatManager.Add"), Dictionary.get("CDM.FormatManager.Add_Tooltip"));
    378389      add_button.setEnabled(false);
     
    418429      feature_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    419430      feature_pane.setLayout(new BorderLayout(5,0));
    420       feature_pane.add(feature_label, BorderLayout.WEST);
     431      feature_pane.add(feature_label, BorderLayout.LINE_START);
    421432      feature_pane.add(feature_combobox, BorderLayout.CENTER);
    422433     
    423434      part_pane.setBorder(BorderFactory.createEmptyBorder(2,0,0,0));
    424435      part_pane.setLayout(new BorderLayout(5, 0));
    425       part_pane.add(part_label, BorderLayout.WEST);
     436      part_pane.add(part_label, BorderLayout.LINE_START);
    426437      part_pane.add(part_combobox, BorderLayout.CENTER);
    427438     
     
    434445     
    435446      JPanel rupanel = new JPanel();
     447      rupanel.setComponentOrientation(Dictionary.getOrientation());
    436448      rupanel.setLayout(new GridLayout(1,2));
    437449      rupanel.add(undo_button);
    438450      rupanel.add(redo_button);
    439451     
     452      JPanel variable_pane = new JPanel();
     453      variable_pane.setComponentOrientation(Dictionary.getOrientation());
    440454      variable_pane.setBorder(BorderFactory.createEmptyBorder(2,0,2,0));
    441455      variable_pane.setLayout(new GridLayout(1,3));
  • gli/trunk/src/org/greenstone/gatherer/cdm/SearchMetadataManager.java

    r18412 r18414  
    207207    public SearchMetadataTable() {
    208208        // create the model
     209      this.setComponentOrientation(Dictionary.getOrientation());
     210     
    209211        model = new SearchMetadataTableModel();
    210212        setModel(model);
Note: See TracChangeset for help on using the changeset viewer.