Ignore:
Timestamp:
2009-01-22T11:04:31+13:00 (15 years ago)
Author:
kjdon
Message:

more modifications for RTL GLI, thanks to Amin Hedjazi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r13195 r18412  
    178178        border_pane = new JPanel();
    179179        card_layout = new CardLayout();
    180 
     180            border_pane.setComponentOrientation(Dictionary.getOrientation());
     181           
     182           
    181183        tabbed_pane = new JTabbedPane();
    182184        tabbed_pane.addChangeListener(this);
    183 
     185            tabbed_pane.setComponentOrientation(Dictionary.getOrientation());
     186           
    184187        JPanel button_pane_3 = new JPanel();
    185         add_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Add"), Dictionary.get("CDM.SubcollectionManager.Add_Tooltip"));
     188        button_pane_3.setComponentOrientation(Dictionary.getOrientation());
     189            add_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Add"), Dictionary.get("CDM.SubcollectionManager.Add_Tooltip"));
    186190        add_button.setEnabled(false);
    187191       
     
    193197       
    194198        JPanel button_pane = new JPanel();
     199            button_pane.setComponentOrientation(Dictionary.getOrientation());
    195200        JPanel button_pane_1 = new JPanel();
     201            button_pane_1.setComponentOrientation(Dictionary.getOrientation());
    196202        include_button = new JRadioButton(Dictionary.get("CDM.SubcollectionManager.Include"));
    197         include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     203        include_button.setComponentOrientation(Dictionary.getOrientation());
     204            include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    198205        include_button.setOpaque(false);
    199206       
     
    201208        exclude_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    202209        exclude_button.setOpaque(false);
    203        
     210        exclude_button.setComponentOrientation(Dictionary.getOrientation());
     211           
    204212        JLabel flags_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Flags"));
    205        
     213        flags_label.setComponentOrientation(Dictionary.getOrientation());
     214           
    206215        flags_field = new NonWhitespaceField();
    207216        flags_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Flags_Tooltip"));
    208 
     217            flags_field.setComponentOrientation(Dictionary.getOrientation());
     218           
    209219        JPanel inclusive_pane = new JPanel();
     220            inclusive_pane.setComponentOrientation(Dictionary.getOrientation());
    210221        JLabel inclusive_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Inclusive"));
    211        
     222        inclusive_label.setComponentOrientation(Dictionary.getOrientation());
     223           
    212224        JLabel match_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Match"));
    213        
     225        match_label.setComponentOrientation(Dictionary.getOrientation());
     226           
    214227        match_field = new JTextField();
    215228        match_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Match_Tooltip"));
    216        
     229        match_field.setComponentOrientation(Dictionary.getOrientation());
     230           
    217231        JLabel name_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Name"));
    218        
     232        name_label.setComponentOrientation(Dictionary.getOrientation());
     233           
    219234        name_field = new NonWhitespaceField();
    220235        name_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Name_Tooltip"));
    221236       
    222237        JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Source"));
    223        
     238        source_label.setComponentOrientation(Dictionary.getOrientation());
     239           
    224240        ArrayList every_metadata_set_element = MetadataSetManager.getEveryMetadataSetElement();
    225241        Vector source_model = new Vector(every_metadata_set_element);
    226242        source_model.add(0, StaticStrings.FILENAME_STR);
    227243        source_combobox = new JComboBox(source_model);
     244            source_combobox.setComponentOrientation(Dictionary.getOrientation());
    228245        source_combobox.setOpaque(false);
    229246        source_combobox.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Source_Tooltip"));
     
    232249        subcollection_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    233250        JPanel subcollection_pane = new JPanel();
     251            subcollection_pane.setComponentOrientation(Dictionary.getOrientation());
    234252        ButtonGroup bg = new ButtonGroup();
    235253        bg.add(include_button);
     
    237255        include_button.setSelected(true);
    238256        JPanel subcollection_list_pane = new JPanel();
     257            subcollection_list_pane.setComponentOrientation(Dictionary.getOrientation());
    239258        JLabel subcollection_list_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Assigned"));
    240        
     259        subcollection_list_label.setComponentOrientation(Dictionary.getOrientation());
    241260        // Create a message pane which explains why these controls are not currently active
    242261        JPanel message_pane = new JPanel();
     262            message_pane.setComponentOrientation(Dictionary.getOrientation());
     263           
    243264        String args[] = new String[3];
    244265        args[0] = Configuration.getModeAsString();
     
    246267        args[2] = Dictionary.get("Preferences.Mode.Expert");
    247268        JTextArea message_textarea = new JTextArea(Dictionary.get("CDM.SubcollectionManager.Partitions_Disabled", args));
    248        
     269        message_textarea.setComponentOrientation(Dictionary.getOrientation());
     270           
    249271        message_textarea.setEditable(false);
    250272        message_textarea.setHighlighter(null); // Prevent highlighting
     
    307329        tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Subindex_Controls"), (JPanel) CollectionDesignManager.subcollectionindex_manager.getControls());
    308330        tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Language_Controls"), (JPanel) CollectionDesignManager.language_manager.getControls());
    309 
     331            JPanel tmp ;
    310332        message_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
    311333        message_pane.setLayout(new GridLayout(3,1,0,0));
    312         message_pane.add(new JPanel());
     334            tmp =new JPanel();
     335            tmp.setComponentOrientation(Dictionary.getOrientation());
     336        message_pane.add(tmp);
    313337        message_pane.add(message_textarea);
    314         message_pane.add(new JPanel());
     338            tmp = new JPanel();
     339            tmp.setComponentOrientation(Dictionary.getOrientation());
     340        message_pane.add(tmp);
    315341
    316342        border_pane.setLayout(card_layout);
Note: See TracChangeset for help on using the changeset viewer.