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/SubcollectionIndexManager.java

    r14742 r18412  
    264264        {
    265265            super();
    266 
     266                        this.setComponentOrientation(Dictionary.getOrientation());   
    267267            ArrayList sources = new ArrayList();
    268268            ListModel source_model = CollectionDesignManager.subcollection_manager;
     
    273273            // Creation
    274274            JPanel assigned_indexes_pane = new JPanel();
     275                        assigned_indexes_pane.setComponentOrientation(Dictionary.getOrientation());
    275276            JLabel index_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Subindexes"));
     277                        index_label.setComponentOrientation(Dictionary.getOrientation());
    276278            subcollection_index_list = new JList(model);
    277279            subcollection_index_list.setCellRenderer(new SubcollectionIndexListCellRenderer());
    278280            subcollection_index_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    279281            subcollection_index_list.setVisibleRowCount(2);
    280 
     282                        subcollection_index_list.setComponentOrientation(Dictionary.getOrientation());
     283                       
    281284            JPanel movement_pane = new JPanel();
    282             move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip"));
     285            movement_pane.setComponentOrientation(Dictionary.getOrientation());
     286                        move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip"));
    283287            move_up_button.setEnabled(false);
    284288
     
    290294
    291295            JPanel index_pane = new JPanel();
     296                        index_pane.setComponentOrientation(Dictionary.getOrientation());
    292297            JPanel details_pane = new JPanel();
    293            
     298            details_pane.setComponentOrientation(Dictionary.getOrientation());
    294299            JPanel labels_pane = new JPanel();
    295            
     300            labels_pane.setComponentOrientation(Dictionary.getOrientation());
     301                       
    296302            select_all_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_All"), Dictionary.get("CDM.IndexManager.Select_All_Tooltip"));
    297303            select_none_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_None"), Dictionary.get("CDM.IndexManager.Select_None_Tooltip"));
     
    299305           
    300306            JPanel boxes_pane = new JPanel();
    301             JPanel content_pane = new JPanel();
    302 
     307            boxes_pane.setComponentOrientation(Dictionary.getOrientation());
     308                        JPanel content_pane = new JPanel();
     309                        content_pane.setComponentOrientation(Dictionary.getOrientation());
     310                       
    303311            JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Source"));
    304 
     312                        source_label.setComponentOrientation(Dictionary.getOrientation());
     313                       
    305314            source_list = new CheckList(false);
    306315            source_list.setListData(sources);
     
    311320
    312321            JPanel button_pane = new JPanel();
    313             add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex_Tooltip"));
     322            button_pane.setComponentOrientation(Dictionary.getOrientation());
     323                       
     324                        add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex_Tooltip"));
    314325            add_button.setEnabled(false);
    315326
     
    353364            assigned_indexes_pane.add(index_label, BorderLayout.NORTH);
    354365            assigned_indexes_pane.add(new JScrollPane(subcollection_index_list), BorderLayout.CENTER);
    355             assigned_indexes_pane.add(movement_pane, BorderLayout.EAST);
     366            assigned_indexes_pane.add(movement_pane, BorderLayout.LINE_END);
    356367
    357368            labels_pane.setLayout(new BorderLayout());
     
    388399
    389400            details_pane.setLayout(new BorderLayout());
    390             details_pane.add(labels_pane, BorderLayout.WEST);
     401            details_pane.add(labels_pane, BorderLayout.LINE_START);
    391402            details_pane.add(boxes_pane, BorderLayout.CENTER);
    392403
Note: See TracChangeset for help on using the changeset viewer.