Changeset 18412


Ignore:
Timestamp:
01/22/09 11:04:31 (12 years ago)
Author:
kjdon
Message:

more modifications for RTL GLI, thanks to Amin Hedjazi

Location:
gli/trunk/src/org/greenstone/gatherer
Files:
28 edited

Legend:

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

    r13073 r18412  
    103103    public BuildTypeControl() {
    104104        super();
    105        
     105        this.setComponentOrientation(Dictionary.getOrientation());
     106           
    106107        JPanel spacer_panel = new JPanel();
    107        
     108        spacer_panel.setComponentOrientation(Dictionary.getOrientation());
     109           
    108110        JPanel main_panel = new JPanel();
     111            main_panel.setComponentOrientation(Dictionary.getOrientation());
    109112        /* may be CDM.BuildTypeManager.mg, CDM.BuildTYpeManager.mgpp, CDM.BuildTypeManager.lucene */
    110113        label = new JLabel(Dictionary.get("CDM.BuildTypeManager.Current_Type", getBuildTypeString(getBuildType())));
    111         change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip"));
     114            label.setComponentOrientation(Dictionary.getOrientation());
     115       
     116            change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip"));
    112117               
    113118        change_button.addActionListener(new ActionListener() {
     
    119124        main_panel.setLayout(new BorderLayout(10,10));
    120125        main_panel.add(label, BorderLayout.CENTER);
    121         main_panel.add(change_button, BorderLayout.EAST);
     126        main_panel.add(change_button, BorderLayout.LINE_END);
    122127
    123128        setBorder(BorderFactory.createEmptyBorder(0,5,0,0));
    124129        setLayout(new BorderLayout());
    125130        add(spacer_panel, BorderLayout.CENTER);
    126         add(main_panel, BorderLayout.EAST);
     131        add(main_panel, BorderLayout.LINE_END);
    127132
    128133        manager.addBuildTypeListener(this);
     
    171176        setSize(DIALOG_SIZE);
    172177        setTitle(Dictionary.get("CDM.BuildTypeManager.Title"));
    173    
     178            this.setComponentOrientation(Dictionary.getOrientation());
    174179        mg_button = new JRadioButton(BUILD_TYPE_MG_STR);
     180            mg_button.setComponentOrientation(Dictionary.getOrientation());
    175181        mg_button.setActionCommand(BUILD_TYPE_MG);
    176182        mgpp_button = new JRadioButton(BUILD_TYPE_MGPP_STR);
     183            mgpp_button.setComponentOrientation(Dictionary.getOrientation());
    177184        mgpp_button.setActionCommand(BUILD_TYPE_MGPP);
    178185        lucene_button = new JRadioButton(BUILD_TYPE_LUCENE_STR);
     186            lucene_button.setComponentOrientation(Dictionary.getOrientation());
    179187        lucene_button.setActionCommand(BUILD_TYPE_LUCENE);
    180188       
     
    188196        build_type_group.add(mg_button);
    189197        build_type_group.add(lucene_button);
    190 
     198           
    191199        if (current_build_type != null) {
    192200        if (current_build_type.equals(BUILD_TYPE_MGPP)) {
     
    204212        radio_pane.add(mg_button);
    205213        radio_pane.add(lucene_button);
    206 
     214            radio_pane.setComponentOrientation(Dictionary.getOrientation());
     215           
    207216        description_textarea = new JTextArea();
    208217        description_textarea.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     
    211220        description_textarea.setLineWrap(true);
    212221        description_textarea.setWrapStyleWord(true);
    213         cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
     222        description_textarea.setComponentOrientation(Dictionary.getOrientation());
     223           
     224            cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
    214225       
    215226        cancel_button.addActionListener(new ActionListener() {
     
    244255        button_pane.add(ok_button);
    245256        button_pane.add(cancel_button);
    246 
     257            button_pane.setComponentOrientation(Dictionary.getOrientation());
     258           
    247259        JPanel content_pane = (JPanel) getContentPane();
    248260        content_pane.setOpaque(true);
     
    251263        content_pane.add(new JScrollPane(description_textarea), BorderLayout.CENTER);
    252264        content_pane.add(button_pane, BorderLayout.SOUTH);
    253 
     265            content_pane.setComponentOrientation(Dictionary.getOrientation());
     266           
    254267        // Center and display.
    255268        Dimension screen_size = Configuration.screen_size;
  • gli/trunk/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r14036 r18412  
    289289        public ClassifierControl () {
    290290            // Create
     291            this.setComponentOrientation(Dictionary.getOrientation());
    291292            add = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Add"), Dictionary.get ("CDM.ClassifierManager.Add_Tooltip"));
    292293           
    293294            JPanel button_pane = new JPanel ();
     295            button_pane.setComponentOrientation(Dictionary.getOrientation());
    294296            JPanel central_pane = new JPanel ();
     297            central_pane.setComponentOrientation(Dictionary.getOrientation());
    295298           
    296299            configure = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Configure"), Dictionary.get ("CDM.ClassifierManager.Configure_Tooltip"));
     
    301304            ClassifierComboboxListener ccl = new ClassifierComboboxListener ();
    302305            classifier_combobox = new JComboBox (getAvailableClassifiers ());
     306            classifier_combobox.setComponentOrientation(Dictionary.getOrientation());
    303307            classifier_combobox.setOpaque (!Utility.isMac ());
    304308            classifier_combobox.setEditable (false);
     
    309313           
    310314            JLabel classifier_label = new JLabel (Dictionary.get ("CDM.ClassifierManager.Classifier"));
     315            classifier_label.setComponentOrientation(Dictionary.getOrientation());
    311316           
    312317            classifier_list = new JList (model);
     318            classifier_list.setComponentOrientation(Dictionary.getOrientation());
     319           
    313320            classifier_list.setOpaque (true);
    314321            classifier_list.setSelectionMode (ListSelectionModel.SINGLE_SELECTION);
    315322            JLabel classifier_list_label = new JLabel (Dictionary.get ("CDM.ClassifierManager.Assigned"));
     323            classifier_list_label.setComponentOrientation(Dictionary.getOrientation());
    316324           
    317325            classifier_list_label.setOpaque (true);
    318326           
    319327            JPanel classifier_list_pane = new JPanel ();
     328            classifier_list_pane.setComponentOrientation(Dictionary.getOrientation());
     329           
    320330            JPanel classifier_pane = new JPanel ();
     331            classifier_pane.setComponentOrientation(Dictionary.getOrientation());
    321332            remove = new GLIButton (Dictionary.get ("CDM.ClassifierManager.Remove"), Dictionary.get ("CDM.ClassifierManager.Remove_Tooltip"));
    322333            remove.setEnabled (false);
    323334           
    324335            JPanel temp = new JPanel (new BorderLayout ());
     336            temp.setComponentOrientation(Dictionary.getOrientation());
    325337           
    326338            JPanel move_button_pane = new JPanel ();
     339            move_button_pane.setComponentOrientation(Dictionary.getOrientation());
    327340           
    328341            move_up_button = new GLIButton (Dictionary.get ("CDM.Move.Move_Up"), JarTools.getImage ("arrow-up.gif"), Dictionary.get ("CDM.Move.Move_Up_Tooltip"));
     
    349362           
    350363            // Layout
     364            JPanel tmp;
    351365            move_button_pane.setLayout (new GridLayout (4,1));
    352366            move_button_pane.add (move_up_button);
    353             move_button_pane.add (new JPanel ());
    354             move_button_pane.add (new JPanel ());
     367            tmp = new JPanel ();
     368            tmp.setComponentOrientation(Dictionary.getOrientation());
     369            move_button_pane.add (tmp);
     370            tmp = new JPanel ();
     371            tmp.setComponentOrientation(Dictionary.getOrientation());
     372            move_button_pane.add (tmp);
    355373            move_button_pane.add (move_down_button);
    356374           
     
    360378            classifier_list_pane.add (classifier_list_label, BorderLayout.NORTH);
    361379            classifier_list_pane.add (new JScrollPane (classifier_list), BorderLayout.CENTER);
    362             classifier_list_pane.add (move_button_pane, BorderLayout.EAST);
     380            classifier_list_pane.add (move_button_pane, BorderLayout.LINE_END);
    363381           
    364382            classifier_label.setBorder (BorderFactory.createEmptyBorder (0,0,5,0));
     
    366384            classifier_pane.setBorder (BorderFactory.createEmptyBorder (5,0,5,0));
    367385            classifier_pane.setLayout (new BorderLayout (5,0));
    368             classifier_pane.add (classifier_label, BorderLayout.WEST);
     386            classifier_pane.add (classifier_label, BorderLayout.LINE_START);
    369387            classifier_pane.add (classifier_combobox, BorderLayout.CENTER);
    370388           
  • gli/trunk/src/org/greenstone/gatherer/cdm/DepositorMetadataManager.java

    r16680 r18412  
    122122    public DepositorControl() {
    123123        super();
    124 
     124            this.setComponentOrientation(Dictionary.getOrientation());
    125125        JPanel header_panel = new DesignPaneHeader("CDM.GUI.DepositorMetadata", "depositormetadatasettings");
    126126           
     
    129129       
    130130        central_pane = new JPanel();
     131            central_pane.setComponentOrientation(Dictionary.getOrientation());
    131132        central_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    132133        central_pane.setLayout(new BoxLayout(central_pane, BoxLayout.Y_AXIS)); 
     
    136137
    137138        JPanel collection_checklist_pane = new JPanel();
     139            collection_checklist_pane.setComponentOrientation(Dictionary.getOrientation());
    138140        collection_checklist_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    139141        collection_checklist_pane.setLayout(new BorderLayout());
     
    328330       
    329331    public MetadataElementControl (MetadataElementEntry entry, String background_color_name) {
    330                        
     332           
     333            this.setComponentOrientation(Dictionary.getOrientation());
    331334        String tip = "<html>" + entry.tooltip + "</html>";
    332335        tip = Utility.formatHTMLWidth(tip, 80);
  • gli/trunk/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r17612 r18412  
    129129    public GeneralControl() {
    130130        super();
     131            this.setComponentOrientation(Dictionary.getOrientation());
    131132        // Retrieve some of the model elements, those we know aren't language dependant
    132133        public_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getPublic());
     
    134135        // Creation
    135136        JPanel header_panel = new DesignPaneHeader("CDM.GUI.General", "generalsettings");
    136 
     137           
    137138        JPanel all_details_panel = new JPanel();
    138139        JPanel details_panel = new JPanel();
    139140        JPanel fields_panel = new JPanel();
    140141
     142            all_details_panel.setComponentOrientation(Dictionary.getOrientation());
     143            details_panel.setComponentOrientation(Dictionary.getOrientation());
     144            fields_panel.setComponentOrientation(Dictionary.getOrientation());
     145                       
    141146        creator_label = new JLabel(Dictionary.get("CDM.General.Email.Creator"));
    142        
     147        creator_label.setComponentOrientation(Dictionary.getOrientation());
     148           
    143149        creator_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false));
    144150        creator_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Creator_Tooltip"));
    145151       
    146152        maintainer_label = new JLabel(Dictionary.get("CDM.General.Email.Maintainer"));
    147        
     153        maintainer_label.setComponentOrientation(Dictionary.getOrientation());
     154           
    148155        maintainer_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false));
    149156        maintainer_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Maintainer_Tooltip"));
    150157       
    151158        name_label = new JLabel(Dictionary.get("CDM.General.Collection_Name"));
     159            name_label.setComponentOrientation(Dictionary.getOrientation());
    152160        name_textfield = new JTextField();
     161            name_textfield.setComponentOrientation(Dictionary.getOrientation());
    153162        name_textfield.setToolTipText(Dictionary.get("CDM.General.Collection_Name_Tooltip"));
    154163       
    155164        JLabel short_name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name"));
    156         JTextField short_name_textfield = new JTextField(CollectionManager.getLoadedCollectionName());
     165        short_name_label.setComponentOrientation(Dictionary.getOrientation());
     166            JTextField short_name_textfield = new JTextField(CollectionManager.getLoadedCollectionName());
     167            short_name_textfield.setComponentOrientation(Dictionary.getOrientation());
    157168        short_name_textfield.setEditable(false);
    158169        short_name_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    159170        JPanel icon_panel = new JPanel();
     171            icon_panel.setComponentOrientation(Dictionary.getOrientation());
    160172        icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection"));
     173            icon_label.setComponentOrientation(Dictionary.getOrientation());
    161174        icon_textfield = new JTextField();
     175            icon_textfield.setComponentOrientation(Dictionary.getOrientation());
    162176        icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Tooltip"));
    163177        browse_about_icon_button = new GLIButton(Dictionary.get("General.Browse"));
    164178        JPanel small_icon_panel = new JPanel();
     179            small_icon_panel.setComponentOrientation(Dictionary.getOrientation());
    165180        small_icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection_Small"));
     181            small_icon_label.setComponentOrientation(Dictionary.getOrientation());
    166182        small_icon_textfield = new JTextField();
     183            small_icon_textfield.setComponentOrientation(Dictionary.getOrientation());
    167184        small_icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Small_Tooltip"));
    168185        browse_home_icon_button = new GLIButton(Dictionary.get("General.Browse"));
     
    170187        // public
    171188        JPanel box_panel = new JPanel();
     189            box_panel.setComponentOrientation(Dictionary.getOrientation());
    172190        public_checkbox = new JCheckBox(Dictionary.get("CDM.General.Access"), public_collectionmeta.getValue(CollectionMeta.TEXT).equals(StaticStrings.TRUE_STR));
    173        
     191        public_checkbox.setComponentOrientation(Dictionary.getOrientation());
     192           
    174193        JPanel description_panel = new JPanel();
     194            description_panel.setComponentOrientation(Dictionary.getOrientation());
    175195        description_label = new JLabel(Dictionary.get("CDM.General.Collection_Extra"));
    176        
     196        description_label.setComponentOrientation(Dictionary.getOrientation());
     197           
    177198        description_textarea = new JTextArea();
     199            description_textarea.setComponentOrientation(Dictionary.getOrientation());
    178200        description_textarea.setBackground(Configuration.getColor("coloring.editable_background", false));
    179201        description_textarea.setToolTipText(Dictionary.get("CDM.General.Collection_Extra_Tooltip"));
     
    198220       
    199221        JPanel fields_label_panel = new JPanel();
     222            fields_label_panel.setComponentOrientation(Dictionary.getOrientation());
    200223        fields_label_panel.setLayout(new GridLayout(6,1));
    201224
    202225        JPanel fields_box_panel = new JPanel();
     226            fields_box_panel.setComponentOrientation(Dictionary.getOrientation());           
    203227        fields_box_panel.setLayout(new GridLayout(6,1));
    204228   
     
    227251        fields_box_panel.add(small_icon_panel);
    228252
    229         fields_panel.add(fields_label_panel, BorderLayout.WEST);
     253        fields_panel.add(fields_label_panel, BorderLayout.LINE_START);
    230254        fields_panel.add(fields_box_panel, BorderLayout.CENTER);
    231255
    232256        icon_panel.setLayout(new BorderLayout());
    233257        icon_panel.add(icon_textfield, BorderLayout.CENTER);
    234         icon_panel.add(browse_about_icon_button, BorderLayout.EAST);
     258        icon_panel.add(browse_about_icon_button, BorderLayout.LINE_END);
    235259
    236260        small_icon_panel.setLayout(new BorderLayout());
    237261        small_icon_panel.add(small_icon_textfield, BorderLayout.CENTER);
    238         small_icon_panel.add(browse_home_icon_button, BorderLayout.EAST);
     262        small_icon_panel.add(browse_home_icon_button, BorderLayout.LINE_END);
    239263
    240264        box_panel.setLayout(new GridLayout(1,1,5,2));
  • gli/trunk/src/org/greenstone/gatherer/cdm/IndexManager.java

    r14232 r18412  
    434434    public IndexControl() {
    435435        super();
    436 
     436            this.setComponentOrientation(Dictionary.getOrientation());
    437437        // Creation
    438438        JPanel assigned_indexes_pane = new JPanel();
    439        
     439        assigned_indexes_pane.setComponentOrientation(Dictionary.getOrientation());
     440           
    440441        JLabel index_label = new JLabel(Dictionary.get("CDM.IndexManager.Indexes"));
     442            index_label.setComponentOrientation(Dictionary.getOrientation());
     443           
    441444        index_list = new JList(index_model);
    442445        index_list.setCellRenderer(new IndexListRenderer());
    443446        index_list.setVisibleRowCount(6);
    444447        index_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    445       index_list.addMouseListener(new ClickListener());
    446      
     448            index_list.addMouseListener(new ClickListener());
     449            index_list.setComponentOrientation(Dictionary.getOrientation());
     450           
    447451        JPanel movement_pane = new JPanel();
     452            movement_pane.setComponentOrientation(Dictionary.getOrientation());
     453           
    448454        move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip"));
    449         move_up_button.setEnabled(false);
    450        
     455        move_up_button.setEnabled(false);       
     456           
    451457        move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip"));
    452458        move_down_button.setEnabled(false);
     
    456462       
    457463        JPanel button_pane = new JPanel();
    458         new_button = new GLIButton(Dictionary.get("CDM.IndexManager.New_Index")+StaticStrings.FURTHER_DIALOG_INDICATOR, Dictionary.get("CDM.IndexManager.New_Index_Tooltip"));
     464        button_pane.setComponentOrientation(Dictionary.getOrientation());
     465           
     466            new_button = new GLIButton(Dictionary.get("CDM.IndexManager.New_Index")+StaticStrings.FURTHER_DIALOG_INDICATOR, Dictionary.get("CDM.IndexManager.New_Index_Tooltip"));
    459467        new_button.setEnabled(true);
    460468       
     
    490498        assigned_indexes_pane.add(index_label, BorderLayout.NORTH);
    491499        assigned_indexes_pane.add(new JScrollPane(index_list), BorderLayout.CENTER);
    492         assigned_indexes_pane.add(movement_pane, BorderLayout.EAST);
     500        assigned_indexes_pane.add(movement_pane, BorderLayout.LINE_END);
    493501
    494502        button_pane.setLayout(new GridLayout(1,3,5,0));
     
    672680        public NewIndexPrompt(String build_type, Index existing_index) {
    673681        super(Gatherer.g_man, true);
     682                this.setComponentOrientation(Dictionary.getOrientation());
     683               
    674684        new_index_prompt = this;
    675685
     
    688698        }
    689699        JPanel content_pane = (JPanel)this.getContentPane();
     700                content_pane.setComponentOrientation(Dictionary.getOrientation());
    690701        ArrayList new_data = new ArrayList();
    691702        new_data.addAll(MetadataSetManager.getEveryMetadataSetElement());
    692703
    693704        JPanel details_pane = new JPanel();
     705                details_pane.setComponentOrientation(Dictionary.getOrientation());
    694706       
    695707        text_checkbox = new JCheckBox(Dictionary.get("CDM.IndexManager.Text_Source"));
    696708        text_checkbox.setToolTipText(Dictionary.get("CDM.IndexManager.Text_Source_Tooltip"));
     709                text_checkbox.setComponentOrientation(Dictionary.getOrientation());               
    697710        text_checkbox.addActionListener(new ActionListener() {
    698711            public void actionPerformed(ActionEvent event) {
     
    701714            });
    702715        JLabel source_label = new JLabel(Dictionary.get("CDM.IndexManager.Source"));
    703         source_list = new CheckList(false);
     716                source_label.setComponentOrientation(Dictionary.getOrientation());
     717        source_list = new CheckList(false);               
    704718        source_list.setListData(new_data);
    705719        source_list.setToolTipText(Dictionary.get("CDM.IndexManager.Source_Tooltip"));
     
    708722        JPanel button_pane = new JPanel();
    709723        button_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    710        
     724        button_pane.setComponentOrientation(Dictionary.getOrientation());
     725               
    711726        if (existing_index == null && mgpp_enabled) {
    712727            button_pane.setLayout(new GridLayout(2,3,5,0));
    713             button_pane.add(new JPanel());
     728                    JPanel tmp = new JPanel();
     729                    tmp.setComponentOrientation(Dictionary.getOrientation());
     730            button_pane.add(tmp);
    714731        } else {
    715732            button_pane.setLayout(new GridLayout(2,2,5,0));
     
    781798            allfields_box = new JCheckBox(Dictionary.get("CDM.IndexManager.Allfields_Index"));
    782799            allfields_box.addItemListener(new AllFieldsBoxListener());
    783             //JLabel allfields_label = new JLabel(Dictionary.get("CDM.IndexManager.Allfields_Index"));
     800            allfields_box.setComponentOrientation(Dictionary.getOrientation());
     801                    //JLabel allfields_label = new JLabel(Dictionary.get("CDM.IndexManager.Allfields_Index"));
    784802            details_pane.add(allfields_box, BorderLayout.SOUTH);
    785803           
     
    788806            // index level
    789807            JLabel level_label = new JLabel(Dictionary.get("CDM.IndexManager.Level"));
    790             level_combobox = new JComboBox();
     808            level_label.setComponentOrientation(Dictionary.getOrientation());
     809                   
     810                    level_combobox = new JComboBox();
    791811            level_combobox.setOpaque(false);
    792812            level_combobox.setPreferredSize(FIELD_SIZE);
     
    798818            level_combobox.setEditable(false);
    799819            level_combobox.setToolTipText(Dictionary.get("CDM.IndexManager.Level_Tooltip"));
    800             level_combobox.addActionListener(new ActionListener() {
     820            level_combobox.setComponentOrientation(Dictionary.getOrientation());
     821                    level_combobox.addActionListener(new ActionListener() {
    801822                public void actionPerformed(ActionEvent event) {
    802823                validateAddOrReplaceButton();
     
    804825            });
    805826            JPanel level_pane = new JPanel();
     827                    level_pane.setComponentOrientation(Dictionary.getOrientation());
    806828            level_pane.setLayout(new BorderLayout());
    807             level_pane.add(level_label, BorderLayout.WEST);
     829            level_pane.add(level_label, BorderLayout.LINE_START);
    808830            level_pane.add(level_combobox, BorderLayout.CENTER);
    809831            details_pane.add(level_pane, BorderLayout.SOUTH);
  • gli/trunk/src/org/greenstone/gatherer/cdm/IndexOptionManager.java

    r18302 r18412  
    134134   
    135135    public IndexOptionControl() {
    136 
     136           
     137            this.setComponentOrientation(Dictionary.getOrientation());
    137138        stem_control = new StemmingControl();
    138139        level_control = new LevelControl();
    139 
     140           
    140141        setLayout(new BorderLayout());
    141142        if (!build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE)) {
     
    194195    public StemmingControl()
    195196    {
     197            this.setComponentOrientation(Dictionary.getOrientation());
    196198        setLayout(new BorderLayout(10,10));
    197199        setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     
    200202        stem_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Stem_Tooltip"));
    201203        stem_checkbox.setActionCommand(StaticStrings.STEM_OPTION_STR);
    202        
     204        stem_checkbox.setComponentOrientation(Dictionary.getOrientation());
     205           
    203206        casefold_checkbox.setText(Dictionary.get("CDM.IndexingManager.Casefold"));
    204207        casefold_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Casefold_Tooltip"));
    205208        casefold_checkbox.setActionCommand(StaticStrings.CASEFOLD_OPTION_STR);
    206        
     209        casefold_checkbox.setComponentOrientation(Dictionary.getOrientation());
     210           
    207211        accentfold_checkbox.setText(Dictionary.get("CDM.IndexingManager.Accent_fold"));
    208212        accentfold_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Accent_fold_Tooltip"));
     
    210214        // Accent-folding is currently not available for MG
    211215        accentfold_checkbox.setEnabled(!build_type.equals(BuildTypeManager.BUILD_TYPE_MG));
    212    
     216            accentfold_checkbox.setComponentOrientation(Dictionary.getOrientation());
     217           
    213218        separate_cjk_checkbox.setText(Dictionary.get("CDM.IndexingManager.Separate_cjk"));
    214219        separate_cjk_checkbox.setToolTipText(Dictionary.get("CDM.IndexingManager.Separate_cjk_Tooltip"));
    215220        separate_cjk_checkbox.setActionCommand(StaticStrings.SEPARATE_CJK_OPTION_STR);
    216 
     221            separate_cjk_checkbox.setComponentOrientation(Dictionary.getOrientation());
     222           
    217223        JPanel checkbox_panel = new JPanel();
    218224        checkbox_panel.setLayout(new GridLayout(2, 1));
    219        
     225        checkbox_panel.setComponentOrientation(Dictionary.getOrientation());
     226           
    220227        JPanel stem_panel = new JPanel();
    221228        stem_panel.setLayout(new GridLayout(1,3));
     
    223230        stem_panel.add(casefold_checkbox);
    224231        stem_panel.add(accentfold_checkbox);
    225        
     232        stem_panel.setComponentOrientation(Dictionary.getOrientation());
     233           
    226234        JPanel other_panel = new JPanel();
    227235        other_panel.setLayout(new GridLayout(1,1));
    228236        other_panel.add(separate_cjk_checkbox);
    229 
     237            other_panel.setComponentOrientation(Dictionary.getOrientation());                   
     238           
    230239        checkbox_panel.add(stem_panel);
    231240        checkbox_panel.add(other_panel);
    232 
    233         add(new JLabel(Dictionary.get("CDM.IndexingManager.Options")), BorderLayout.WEST);
     241           
     242            JLabel tmp = new JLabel(Dictionary.get("CDM.IndexingManager.Options"));
     243            tmp.setComponentOrientation(Dictionary.getOrientation());
     244        add(tmp, BorderLayout.LINE_START);
    234245        add(checkbox_panel, BorderLayout.CENTER);
    235246
     
    327338   
    328339    public LevelControl() {
    329        
     340        this.setComponentOrientation(Dictionary.getOrientation());
    330341        JPanel checkbox_panel = new JPanel();
     342            checkbox_panel.setComponentOrientation(Dictionary.getOrientation());
    331343        JPanel default_panel = new JPanel();
     344            default_panel.setComponentOrientation(Dictionary.getOrientation());
    332345        document_checkbox = new JCheckBox();
     346            document_checkbox.setComponentOrientation(Dictionary.getOrientation());
    333347        document_checkbox.setText(Dictionary.get("CDM.LevelManager.Document"));
    334348        document_checkbox.setActionCommand(StaticStrings.DOCUMENT_STR);
     
    339353        document_default_radio.setIcon(JarTools.getImage("radio_unselected.gif"));
    340354        document_default_radio.setSelectedIcon(JarTools.getImage("radio_selected.gif"));
    341 
     355            document_default_radio.setComponentOrientation(Dictionary.getOrientation());
     356           
    342357        section_checkbox = new JCheckBox();
    343358        section_checkbox.setText(Dictionary.get("CDM.LevelManager.Section"));
    344359        section_checkbox.setActionCommand(StaticStrings.SECTION_STR);
     360            section_checkbox.setComponentOrientation(Dictionary.getOrientation());
     361           
    345362        section_default_radio = new JRadioButton();
    346363        section_default_radio.setOpaque(true);
     
    349366        section_default_radio.setIcon(JarTools.getImage("radio_unselected.gif"));
    350367        section_default_radio.setSelectedIcon(JarTools.getImage("radio_selected.gif"));
    351 
     368            section_default_radio.setComponentOrientation(Dictionary.getOrientation());
     369           
    352370        section_default_radio.setActionCommand(StaticStrings.SECTION_STR);
    353371        ButtonGroup default_group = new ButtonGroup();
     
    401419        checkbox_panel.add(document_checkbox);
    402420        checkbox_panel.add(section_checkbox);
    403 
     421            checkbox_label.setComponentOrientation(Dictionary.getOrientation());
     422           
    404423        JLabel default_label = new JLabel(Dictionary.get("CDM.LevelManager.Default"));
    405424        default_panel.setLayout(new GridLayout(3,1));
     
    408427        default_panel.add(document_default_radio);
    409428        default_panel.add(section_default_radio);
    410 
     429            default_label.setComponentOrientation(Dictionary.getOrientation());
    411430       
    412431        CheckBoxListener cbl = new CheckBoxListener();
     
    425444        setLayout(new BorderLayout(10,10));
    426445        setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    427         add(checkbox_panel, BorderLayout.WEST);
     446        add(checkbox_panel, BorderLayout.LINE_START);
    428447        add(default_panel, BorderLayout.CENTER);
    429448    } // LevelControl
  • gli/trunk/src/org/greenstone/gatherer/cdm/IndexingManager.java

    r13058 r18412  
    133133    public IndexingControl() {
    134134        super();
    135 
     135            this.setComponentOrientation(Dictionary.getOrientation());
    136136        // Creation
    137137        JPanel header_pane = new DesignPaneHeader("CDM.GUI.Indexes", "searchindexes");     
     
    140140        JPanel index_panel = (JPanel)index_manager.getControls();
    141141        index_options_panel = (JPanel)option_manager.getControls();
    142 
     142                       
     143           
    143144        main_index_pane = new JPanel();
    144145        main_index_pane.setLayout(new BorderLayout());
     
    146147        main_index_pane.add(index_panel, BorderLayout.CENTER);
    147148        main_index_pane.add(index_options_panel, BorderLayout.SOUTH);
    148        
     149        main_index_pane.setComponentOrientation(Dictionary.getOrientation());
     150           
    149151        setBorder(BorderFactory.createEmptyBorder(0,5,0,0));
    150152        setLayout(new BorderLayout());
  • gli/trunk/src/org/greenstone/gatherer/cdm/LanguageManager.java

    r14744 r18412  
    306306        super();
    307307        // Creation.
     308            this.setComponentOrientation(Dictionary.getOrientation());
    308309        JPanel center_panel = new JPanel();
    309 
     310            center_panel.setComponentOrientation(Dictionary.getOrientation());
     311           
    310312        JLabel selected_languages_list_label = new JLabel(Dictionary.get("CDM.LanguageManager.Assigned_Languages"));
    311313        selected_languages_list = new JList(model);
     
    313315        selected_languages_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    314316        selected_languages_list.setVisibleRowCount(5);
    315        
     317        selected_languages_list.setComponentOrientation(Dictionary.getOrientation());
     318           
    316319        JPanel control_panel = new JPanel();
    317        
     320        control_panel.setComponentOrientation(Dictionary.getOrientation());
     321           
    318322        JPanel labels_pane = new JPanel();     
    319         JLabel selector_label = new JLabel(Dictionary.get("CDM.LanguageManager.Selector"));
     323        labels_pane.setComponentOrientation(Dictionary.getOrientation());
     324            JLabel selector_label = new JLabel(Dictionary.get("CDM.LanguageManager.Selector"));
     325            selector_label.setComponentOrientation(Dictionary.getOrientation());
    320326        select_all_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_All"), Dictionary.get("CDM.IndexManager.Select_All_Tooltip"));
    321327        select_none_button = new GLIButton(Dictionary.get("CDM.IndexManager.Select_None"), Dictionary.get("CDM.IndexManager.Select_None_Tooltip"));
     
    324330        language_metadata_combo.setOpaque(false);
    325331        language_metadata_combo.setToolTipText(Dictionary.get("CDM.LanguageManager.LanguageMetadata_Tooltip"));
    326         JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata"));
     332            language_metadata_combo.setComponentOrientation(Dictionary.getOrientation());
     333           
     334            JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata"));
     335            language_metadata_label.setComponentOrientation(Dictionary.getOrientation());
     336           
    327337        String current_value = "ex.Language";
    328338        if (language_metadata.getAttribute(StaticStrings.ASSIGNED_ATTRIBUTE).equals(StaticStrings.TRUE_STR) && !language_metadata.getAttribute(StaticStrings.NAME_ATTRIBUTE).equals("")) {
     
    339349               
    340350        JPanel movement_pane = new JPanel();
    341         move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip"));
     351            movement_pane.setComponentOrientation(Dictionary.getOrientation());
     352           
     353            move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip"));
    342354        move_up_button.setEnabled(false);
    343355       
     
    349361       
    350362        JPanel button_panel = new JPanel();
    351 
     363            button_panel.setComponentOrientation(Dictionary.getOrientation());
     364           
    352365        add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.LanguageManager.Add_Tooltip"));
    353366        add_button.setEnabled(false);
     
    394407
    395408        JPanel metadata_panel = new JPanel();
     409            metadata_panel.setComponentOrientation(Dictionary.getOrientation());
    396410        metadata_panel.setLayout(new BorderLayout());
    397411        JPanel inner_panel = new JPanel();
     412            inner_panel.setComponentOrientation(Dictionary.getOrientation());
    398413        inner_panel.setLayout(new BorderLayout(10,10));
    399         inner_panel.add(language_metadata_label, BorderLayout.WEST);
     414        inner_panel.add(language_metadata_label, BorderLayout.LINE_START);
    400415        inner_panel.add(language_metadata_combo, BorderLayout.CENTER);
    401416        metadata_panel.add(new JPanel(), BorderLayout.CENTER);
    402         metadata_panel.add(inner_panel, BorderLayout.EAST);
     417        metadata_panel.add(inner_panel, BorderLayout.LINE_END);
    403418
    404419        movement_pane.setBorder(BorderFactory.createEmptyBorder(0,2,0,0));
     
    439454        labels_pane.add(select_none_button);   
    440455               
    441         control_panel.add(labels_pane, BorderLayout.WEST);
     456        control_panel.add(labels_pane, BorderLayout.LINE_START);
    442457       
    443458        control_panel.add(new JScrollPane(language_list), BorderLayout.CENTER);
     
    447462        center_panel.add(selected_languages_list_label, BorderLayout.NORTH);
    448463        center_panel.add(new JScrollPane(selected_languages_list), BorderLayout.CENTER);
    449         center_panel.add(movement_pane, BorderLayout.EAST);
     464        center_panel.add(movement_pane, BorderLayout.LINE_END);
    450465
    451466        JPanel top_panel = new JPanel();
    452         top_panel.setLayout(new BorderLayout());
     467            top_panel.setComponentOrientation(Dictionary.getOrientation());
     468            top_panel.setLayout(new BorderLayout());
    453469        top_panel.add(metadata_panel, BorderLayout.NORTH);
    454470        top_panel.add(center_panel, BorderLayout.SOUTH);
  • gli/trunk/src/org/greenstone/gatherer/cdm/MacrosManager.java

    r17612 r18412  
    104104    public MacrosControl() {
    105105        super();
    106 
    107         JPanel header_pane = new DesignPaneHeader("CDM.GUI.Macros", "collectionspecificmacros");
    108        
     106            this.setComponentOrientation(Dictionary.getOrientation());
     107           
     108        JPanel header_pane = new DesignPaneHeader("CDM.GUI.Macros", "collectionspecificmacros");       
    109109        JPanel main_pane = new JPanel();
    110         main_pane.setLayout(new BorderLayout());
     110        main_pane.setComponentOrientation(Dictionary.getOrientation());
     111            main_pane.setLayout(new BorderLayout());
    111112        macros_textarea = new JTextArea();
     113            macros_textarea.setComponentOrientation(Dictionary.getOrientation());
    112114        macros_textarea.setBackground(Configuration.getColor("coloring.editable_background", false));
    113115        macros_textarea.setLineWrap(false);
     
    126128       
    127129        JPanel macros_pane = new JPanel();
     130            macros_pane.setComponentOrientation(Dictionary.getOrientation());
    128131        macros_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0));
    129132        macros_pane.setLayout(new BorderLayout());
     
    138141       
    139142        JPanel button_pane = new JPanel();
    140         button_pane.setLayout(new GridLayout(1,2));
     143            button_pane.setComponentOrientation(Dictionary.getOrientation());
     144            button_pane.setLayout(new GridLayout(1,2));
    141145        button_pane.add(undo_button);
    142146        button_pane.add(redo_button);
  • gli/trunk/src/org/greenstone/gatherer/cdm/PluginManager.java

    r17752 r18412  
    471471        button_pane = new JPanel();
    472472        central_pane = new JPanel();
    473 
     473            button_pane.setComponentOrientation(Dictionary.getOrientation());
     474            central_pane.setComponentOrientation(Dictionary.getOrientation());
     475           
    474476        configure = new GLIButton(Dictionary.get("CDM.PlugInManager.Configure"), Dictionary.get("CDM.PlugInManager.Configure_Tooltip"));
    475477        configure.setEnabled(false);
     
    483485       
    484486        movement_pane = new JPanel();
    485 
     487            movement_pane.setComponentOrientation(Dictionary.getOrientation());
     488           
    486489        PluginComboboxListener picl = new PluginComboboxListener();
    487490        plugin_combobox = new JComboBox(getAvailablePlugins());
    488491        plugin_combobox.setOpaque(!Utility.isMac());
    489492        plugin_combobox.setEditable(false);
     493            plugin_combobox.setComponentOrientation(Dictionary.getOrientation());
     494           
    490495        picl.itemStateChanged(new ItemEvent(plugin_combobox, 0, null, ItemEvent.SELECTED));
    491496
    492497        plugin_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn"));
    493        
     498        plugin_label.setComponentOrientation(Dictionary.getOrientation());
     499           
    494500        plugin_list = new JList(model);
    495501        plugin_list.setOpaque(true);
    496502        plugin_list.setCellRenderer(new ListRenderer());
    497503        plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    498         plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned"));
     504        plugin_list.setComponentOrientation(Dictionary.getOrientation());
     505           
     506            plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned"));
    499507        //plugin_list_label.setHorizontalAlignment(JLabel.CENTER);
    500508        plugin_list_label.setOpaque(true);
    501        
     509        plugin_list_label.setComponentOrientation(Dictionary.getOrientation());
     510           
    502511        plugin_list_pane = new JPanel();
     512            plugin_list_pane.setComponentOrientation(Dictionary.getOrientation());
     513           
    503514        plugin_pane = new JPanel();
    504515        plugin_pane.setOpaque(true);
    505 
     516            plugin_pane.setComponentOrientation(Dictionary.getOrientation());
     517           
    506518        remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip"));
    507519        remove.setEnabled(false);
     
    526538        movement_pane.setLayout(new GridLayout(4,1));
    527539        movement_pane.add(move_up_button);
    528         movement_pane.add(new JPanel());
    529         movement_pane.add(new JPanel());
     540            JPanel tmp = new JPanel();
     541            tmp.setComponentOrientation(Dictionary.getOrientation());
     542        movement_pane.add(tmp);
     543            tmp = new JPanel();
     544            tmp.setComponentOrientation(Dictionary.getOrientation());
     545        movement_pane.add(tmp);
    530546        movement_pane.add(move_down_button);
    531547
     
    539555        plugin_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0));
    540556        plugin_pane.setLayout(new BorderLayout(5,0));
    541         plugin_pane.add(plugin_label, BorderLayout.WEST);
     557        plugin_pane.add(plugin_label, BorderLayout.LINE_START);
    542558        plugin_pane.add(plugin_combobox, BorderLayout.CENTER);
    543559
     
    551567        temp.add(plugin_pane, BorderLayout.NORTH);
    552568        temp.add(button_pane, BorderLayout.SOUTH);
    553 
     569            temp.setComponentOrientation(Dictionary.getOrientation());
     570           
    554571        central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    555572        central_pane.setLayout(new BorderLayout());
     
    915932        setSize(size);
    916933        setTitle(Dictionary.get("CDM.PluginManager.SuggestedPluginListTitle"));
    917 
     934            this.setComponentOrientation(Dictionary.getOrientation());
     935           
    918936        String[] args = new String[1];
    919937        args[0] = filename;
     
    925943        instructions_textarea.setRows(5);
    926944        instructions_textarea.setWrapStyleWord(true);
    927 
     945            instructions_textarea.setComponentOrientation(Dictionary.getOrientation());
     946           
    928947        JLabel suitable_plugins_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn"));
    929948        suitable_plugins_label.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
    930 
     949            suitable_plugins_label.setComponentOrientation(Dictionary.getOrientation());
     950           
    931951        suitable_plugins_combobox = new GComboBox(suitable_plugins);
    932952        suitable_plugins_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     
    934954        suitable_plugins_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
    935955        suitable_plugins_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    936 
     956            suitable_plugins_combobox.setComponentOrientation(Dictionary.getOrientation());
     957           
    937958        JPanel suitable_plugins_pane = new JPanel();
     959            suitable_plugins_pane.setComponentOrientation(Dictionary.getOrientation());
    938960        //suitable_plugins_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0));
    939961        suitable_plugins_pane.setLayout(new BorderLayout(5,0));
    940         suitable_plugins_pane.add(suitable_plugins_label, BorderLayout.WEST);
     962        suitable_plugins_pane.add(suitable_plugins_label, BorderLayout.LINE_START);
    941963        suitable_plugins_pane.add(suitable_plugins_combobox, BorderLayout.CENTER);
    942964
     
    951973        button_pane.add(add_button);
    952974        button_pane.add(ignore_button);
    953 
     975            button_pane.setComponentOrientation(Dictionary.getOrientation());
     976           
    954977        JPanel controls_pane = new JPanel();
    955978        controls_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
     
    957980        controls_pane.add(suitable_plugins_pane);
    958981        controls_pane.add(button_pane);
    959 
     982            controls_pane.setComponentOrientation(Dictionary.getOrientation());
     983           
    960984        JPanel content_pane = (JPanel) getContentPane();
     985            content_pane.setComponentOrientation(Dictionary.getOrientation());
    961986        content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    962987        content_pane.setLayout(new BorderLayout());
  • gli/trunk/src/org/greenstone/gatherer/cdm/SearchMetadataManager.java

    r16879 r18412  
    8888    public DisplayControl() {
    8989        super();
    90 
     90            this.setComponentOrientation(Dictionary.getOrientation());
    9191        JPanel header_panel = new DesignPaneHeader("CDM.GUI.SearchMetadata", "searchmetadatasettings");
    9292
     
    9898
    9999        JPanel metadata_table_pane = new JPanel();
     100            metadata_table_pane.setComponentOrientation(Dictionary.getOrientation());
    100101        metadata_table_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    101102        metadata_table_pane.setLayout(new BorderLayout());
  • 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
  • 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);
  • gli/trunk/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java

    r14041 r18412  
    4242import org.greenstone.gatherer.util.Utility;
    4343import org.greenstone.gatherer.gui.DesignPaneHeader;
     44import org.greenstone.gatherer.Dictionary;
    4445import org.w3c.dom.*;
    4546
     
    125126    SuperCollectionControl() {
    126127        super();
    127 
     128            this.setComponentOrientation(Dictionary.getOrientation());
    128129        // Creation
    129130        JPanel header_panel = new DesignPaneHeader("CDM.GUI.SuperCollection", "xcollectionsearching");
     
    134135
    135136        JPanel collection_checklist_pane = new JPanel();
     137            collection_checklist_pane.setComponentOrientation(Dictionary.getOrientation());
    136138        collection_checklist_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    137139        collection_checklist_pane.setLayout(new BorderLayout());
  • gli/trunk/src/org/greenstone/gatherer/cdm/TranslationView.java

    r13195 r18412  
    195195
    196196    TranslationControl() {
     197            this.setComponentOrientation(Dictionary.getOrientation());
    197198        fragment_table_model = new FragmentTableModel("", new TreeSet(), new ArrayList());
    198199        // Creation
     
    200201
    201202        JPanel center_panel = new JPanel();
    202 
     203            center_panel.setComponentOrientation(Dictionary.getOrientation());
     204           
    203205        JPanel selection_panel = new JPanel();
    204 
     206            selection_panel.setComponentOrientation(Dictionary.getOrientation());
     207           
    205208        JPanel component_selection_panel = new JPanel();
     209            component_selection_panel.setComponentOrientation(Dictionary.getOrientation());
     210           
    206211        JLabel component_label = new JLabel(Dictionary.get("CDM.TranslationManager.Affected_Features"));
    207 
    208 
     212            component_label.setComponentOrientation(Dictionary.getOrientation());
     213           
    209214        Object[] features = getFeaturesList();
    210215        features_list = new JList(features);
     
    215220
    216221        JPanel fragment_selection_panel = new JPanel();
    217         JLabel fragment_label = new JLabel(Dictionary.get("CDM.TranslationManager.Assigned_Fragments"));
     222        fragment_selection_panel.setComponentOrientation(Dictionary.getOrientation());
     223            JLabel fragment_label = new JLabel(Dictionary.get("CDM.TranslationManager.Assigned_Fragments"));
     224            fragment_label.setComponentOrientation(Dictionary.getOrientation());
    218225       
    219226        fragment_table = new JTable(fragment_table_model);
     227            fragment_table.setComponentOrientation(Dictionary.getOrientation());
    220228        fragment_table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
    221229        fragment_table.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     
    229237
    230238        JPanel south_panel = new JPanel();
    231 
     239            south_panel.setComponentOrientation(Dictionary.getOrientation());
     240           
    232241        JPanel text_panel = new JPanel();
    233 
     242            text_panel.setComponentOrientation(Dictionary.getOrientation());
     243           
    234244        JPanel language_panel = new JPanel();
     245            language_panel.setComponentOrientation(Dictionary.getOrientation());
     246           
    235247        JLabel language_label = new JLabel(Dictionary.get("CDM.TranslationManager.Language"));
    236        
     248        language_label.setComponentOrientation(Dictionary.getOrientation());
     249           
    237250        language_combobox = new JComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray());
    238251        language_combobox.setOpaque(!Utility.isMac());
     
    240253        language_combobox.setRenderer(new LanguageListCellRenderer());
    241254        language_combobox.setToolTipText(Dictionary.get("CDM.TranslationManager.Language_Tooltip"));
    242        
     255        language_combobox.setComponentOrientation(Dictionary.getOrientation());
     256           
    243257        JPanel default_text_panel = new JPanel();
     258            default_text_panel.setComponentOrientation(Dictionary.getOrientation());
    244259        JLabel default_label = new JLabel(Dictionary.get("CDM.TranslationManager.Default_Text"));
    245        
     260        default_label.setComponentOrientation(Dictionary.getOrientation());
    246261        default_area = new JTextArea();
     262            default_area.setComponentOrientation(Dictionary.getOrientation());
    247263        default_area.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    248264        default_area.setEditable(false);
     
    251267
    252268        JPanel translated_text_panel = new JPanel();
     269            translated_text_panel.setComponentOrientation(Dictionary.getOrientation());
    253270        JLabel translation_label = new JLabel(Dictionary.get("CDM.TranslationManager.Translation"));
    254      
     271            translation_label.setComponentOrientation(Dictionary.getOrientation());
    255272        translation_area = new JTextArea();
     273            translation_area.setComponentOrientation(Dictionary.getOrientation());
    256274        translation_area.setBackground(Configuration.getColor("coloring.disabled", false));
    257275        translation_area.setEnabled(false);
     
    261279
    262280        JPanel button_pane = new JPanel();
     281            button_pane.setComponentOrientation(Dictionary.getOrientation());
    263282        add_button = new GLIButton(Dictionary.get("CDM.TranslationManager.Add"), Dictionary.get("CDM.TranslationManager.Add_Tooltip"));
    264283        add_button.setEnabled(false);
     
    307326
    308327        language_panel.setLayout(new BorderLayout(5,0));
    309         language_panel.add(language_label, BorderLayout.WEST);
     328        language_panel.add(language_label, BorderLayout.LINE_START);
    310329        language_panel.add(language_combobox, BorderLayout.CENTER);
    311330
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java

    r17994 r18412  
    326326        String file_name = "";
    327327       
    328         if (Configuration.fedora_info.isActive()) { // FLI case
     328        if (Configuration.fedora_info != null && Configuration.fedora_info.isActive()) { // FLI case
    329329        // Fedora build
    330330        //file_name = getLoadedCollectionArchivesDirectoryPath() + "import.inf";
  • gli/trunk/src/org/greenstone/gatherer/gems/AttributeTable.java

    r12658 r18412  
    6464    super();       
    6565        setRowHeight(20);
     66        this.setComponentOrientation(Dictionary.getOrientation());
     67        metadata_value_text_field.setComponentOrientation(Dictionary.getOrientation());
    6668    language_dependent = lang_dependent;
    6769   
  • gli/trunk/src/org/greenstone/gatherer/gems/DeleteMetadataSetPrompt.java

    r12679 r18412  
    7272    public DeleteMetadataSetPrompt(Frame parent,MetadataSetManager msm) {
    7373    super(parent, true);
    74 
    7574        self = this;
    7675    meta_manager = msm;
     
    8281    JPanel content_pane = (JPanel) getContentPane();
    8382        content_pane.setOpaque(true);
    84    
     83    content_pane.setComponentOrientation(Dictionary.getOrientation());
    8584
    8685    JLabel available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Available_Sets"));
    8786    available_metadata_sets_label.setOpaque(true);
     87        available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation());
    8888   
    8989    list_model = new DefaultListModel();
     
    9595    available_set_list.setFixedCellHeight(20);
    9696    available_set_list.addListSelectionListener(new MetadataSetListSelectionListener());
    97 
     97        available_set_list.setComponentOrientation(Dictionary.getOrientation());
     98       
    9899    JPanel set_pane = new JPanel();
     100        set_pane.setComponentOrientation(Dictionary.getOrientation());
    99101        set_pane.setLayout(new BorderLayout());
    100102        set_pane.add(available_metadata_sets_label,BorderLayout.NORTH);
     
    110112        description_textarea.setLineWrap(true);
    111113        description_textarea.setWrapStyleWord(true);
    112    
     114    description_textarea.setComponentOrientation(Dictionary.getOrientation());
     115       
    113116    JPanel des_pane = new JPanel();
     117        des_pane.setComponentOrientation(Dictionary.getOrientation());
    114118        des_pane.setLayout(new BorderLayout());
    115119        des_pane.add(metadata_set_des_label,BorderLayout.NORTH);
     
    117121   
    118122    JPanel button_pane = new JPanel();
     123        button_pane.setComponentOrientation(Dictionary.getOrientation());
    119124    delete_button = new GLIButton(Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete"), Dictionary.get("GEMS.DeleteMetadataSetPrompt.Delete_Tooltip"));
    120125    delete_button.setEnabled(false);
     
    124129    confirmation.setEnabled(false);
    125130    confirmation.setSelected(false);
    126 
     131        confirmation.setComponentOrientation(Dictionary.getOrientation());
     132       
    127133    close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip"));
    128134    close_button.setEnabled(true);
     
    151157
    152158        JPanel bottom_pane = new JPanel();
     159        bottom_pane.setComponentOrientation(Dictionary.getOrientation());
    153160        bottom_pane.setLayout(new BorderLayout());
    154161    bottom_pane.add(confirmation,BorderLayout.NORTH);
     
    212219    public MetadatSetListCellRenderer() {
    213220        setOpaque(true);
     221            this.setComponentOrientation(Dictionary.getOrientation());
    214222    }
    215223   
  • gli/trunk/src/org/greenstone/gatherer/gems/MetadataSetTree.java

    r12836 r18412  
    6363    protected JFrame parent_frame;
    6464    public MetadataSetTree(JFrame parent){
    65 
     65        this.setComponentOrientation(Dictionary.getOrientation());
    6666        setCellRenderer(new MetadataSetCellRenderer());
    6767        setRowHeight(20);
  • gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataElementNamePrompt.java

    r12838 r18412  
    6262    JPanel content_pane = (JPanel) getContentPane();
    6363    content_pane.setOpaque(true);
    64        
     64        content_pane.setComponentOrientation(Dictionary.getOrientation());
     65       
    6566    JLabel name_label = new JLabel();
    66     if (subelement) {
     67    name_label.setComponentOrientation(Dictionary.getOrientation());
     68        if (subelement) {
    6769        setTitle(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubTitle"));
    6870        name_label.setText(Dictionary.get("GEMS.NewMetadataElementNamePrompt.SubName"));
     
    7375
    7476    name_textfield = new JTextField();
    75        
     77        name_textfield.setComponentOrientation(Dictionary.getOrientation());
    7678    name_textfield.addKeyListener(new KeyAdapter() {
    7779        public void keyPressed(KeyEvent e) {
     
    8486
    8587    JPanel details_pane = new JPanel();
     88        details_pane.setComponentOrientation(Dictionary.getOrientation());
    8689    details_pane.setLayout(new GridLayout(2,1));
    8790    details_pane.add(name_label);
  • gli/trunk/src/org/greenstone/gatherer/gems/NewMetadataSetPrompt.java

    r12701 r18412  
    8181    JPanel content_pane = (JPanel) getContentPane();
    8282        content_pane.setOpaque(true);
    83    
     83    content_pane.setComponentOrientation(Dictionary.getOrientation());
     84       
    8485    JLabel  instruction_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Instructions"));
    8586    instruction_label.setOpaque(true);
    86    
     87    instruction_label.setComponentOrientation(Dictionary.getOrientation());
     88       
    8789    JLabel  title_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Title"));
    8890    title_label.setOpaque(true);
     91        title_label.setComponentOrientation(Dictionary.getOrientation());
    8992                 
    9093        title_field = new JTextField();
    91 
     94        title_field.setComponentOrientation(Dictionary.getOrientation());
     95       
    9296    JPanel title_pane = new JPanel(new BorderLayout(5,5));
    93         title_pane.add(title_label,BorderLayout.WEST);
     97        title_pane.setComponentOrientation(Dictionary.getOrientation());
     98        title_pane.add(title_label,BorderLayout.LINE_START);
    9499        title_pane.add(title_field, BorderLayout.CENTER);
    95100
    96101   
    97102    JLabel  namespace_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Metadata_Namespace"));
     103        namespace_label.setComponentOrientation(Dictionary.getOrientation());
    98104    namespace_label.setOpaque(true);
    99105                 
    100106        namespace_field = new JTextField();
    101 
     107        namespace_field.setComponentOrientation(Dictionary.getOrientation());
     108       
    102109    JPanel namespace_pane = new JPanel(new BorderLayout(5,5));
    103         namespace_pane.add(namespace_label,BorderLayout.WEST);
     110        namespace_pane.setComponentOrientation(Dictionary.getOrientation());
     111        namespace_pane.add(namespace_label,BorderLayout.LINE_START);
    104112        namespace_pane.add(namespace_field, BorderLayout.CENTER);
    105113
    106114       
    107115        JPanel info_pane = new JPanel();
     116        info_pane.setComponentOrientation(Dictionary.getOrientation());
    108117        info_pane.setLayout(new BorderLayout(5,5));
    109118        info_pane.add(instruction_label,BorderLayout.NORTH);
     
    114123    JLabel description_label = new JLabel(Dictionary.get("GEMS.Set_Description"));
    115124    description_label.setOpaque(true);
    116 
     125        description_label.setComponentOrientation(Dictionary.getOrientation());
     126       
    117127    description_textarea = new JTextArea();
     128        description_textarea.setComponentOrientation(Dictionary.getOrientation());
    118129        description_textarea.setLineWrap(true);
    119130        description_textarea.setWrapStyleWord(true);
    120131
    121132    JPanel description_pane = new JPanel();
     133        description_pane.setComponentOrientation(Dictionary.getOrientation());
    122134        description_pane.setLayout(new BorderLayout());
    123135        description_pane.add(description_label,BorderLayout.NORTH);
     
    127139    JLabel  base_label = new JLabel(Dictionary.get("GEMS.NewMetadataSetPrompt.Base_MetadataSet"));
    128140    base_label.setOpaque(true);
     141        base_label.setComponentOrientation(Dictionary.getOrientation());
    129142       
    130143        base_metadata_combo = new JComboBox();
    131144    base_metadata_combo.setRenderer(new MetadatSetListCellRenderer());
    132    
     145    base_metadata_combo.setComponentOrientation(Dictionary.getOrientation());
     146       
    133147    JPanel base_pane = new JPanel(new BorderLayout(5,5));
    134         base_pane.add(base_label,BorderLayout.WEST);
     148        base_pane.setComponentOrientation(Dictionary.getOrientation());
     149        base_pane.add(base_label,BorderLayout.LINE_START);
    135150        base_pane.add(base_metadata_combo, BorderLayout.CENTER);
    136151
    137152
    138153    JPanel button_pane = new JPanel();
     154        button_pane.setComponentOrientation(Dictionary.getOrientation());
    139155    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));         
    140156    cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
  • gli/trunk/src/org/greenstone/gatherer/gems/OpenMetadataSetPrompt.java

    r12680 r18412  
    7373    public OpenMetadataSetPrompt(Frame parent,MetadataSetManager msm) {
    7474    super(parent, true);
    75 
     75       
    7676        self = this;
    7777    meta_manager = msm;
     
    8282    JPanel content_pane = (JPanel) getContentPane();
    8383        content_pane.setOpaque(true);
    84    
     84    content_pane.setComponentOrientation(Dictionary.getOrientation());
     85       
    8586    JLabel  available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.OpenMetadataSetPrompt.Available_Sets"));
    8687    available_metadata_sets_label.setOpaque(true);
    87 
     88        available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation());
     89       
    8890        available_set_list = new JList();
    8991    available_set_list.setCellRenderer(new MetadatSetListCellRenderer());
     
    9193        available_set_list.setFixedCellHeight(20);
    9294    available_set_list.addListSelectionListener(new MetadataSetListSelectionListener());
    93 
     95        available_set_list.setComponentOrientation(Dictionary.getOrientation());
     96       
    9497        JPanel set_pane = new JPanel();
     98        set_pane.setComponentOrientation(Dictionary.getOrientation());
    9599        set_pane.setLayout(new BorderLayout());
    96100        set_pane.add(available_metadata_sets_label,BorderLayout.NORTH);
    97101    set_pane.add(new JScrollPane(available_set_list),BorderLayout.CENTER);
    98102       
    99 
    100103    JLabel  metadata_set_des_label = new JLabel(Dictionary.get("GEMS.Set_Description"));
    101104    metadata_set_des_label.setOpaque(true);
    102 
     105        metadata_set_des_label.setComponentOrientation(Dictionary.getOrientation());
     106       
    103107    description_textarea = new  JTextArea();
    104108        description_textarea.setOpaque(true);
     
    106110        description_textarea.setLineWrap(true);
    107111        description_textarea.setWrapStyleWord(true);
    108 
     112        description_textarea.setComponentOrientation(Dictionary.getOrientation());
     113       
    109114    JPanel des_pane = new JPanel();
    110115        des_pane.setLayout(new BorderLayout());
    111116        des_pane.add(metadata_set_des_label,BorderLayout.NORTH);
    112117    des_pane.add(new JScrollPane(description_textarea),BorderLayout.CENTER);
    113 
     118        des_pane.setComponentOrientation(Dictionary.getOrientation());
     119       
    114120    JPanel button_pane = new JPanel();
     121        button_pane.setComponentOrientation(Dictionary.getOrientation());
     122       
    115123    open_button = new GLIButton(Dictionary.get("GEMS.OpenMetadataSetPrompt.Open"), Dictionary.get("GEMS.OpenMetadataSetPrompt.Open_Tooltip"));
    116     open_button.setEnabled(true);
    117    
     124    open_button.setEnabled(true);   
     125       
    118126    browse_button = new GLIButton(Dictionary.get("General.Browse"));
    119127        browse_button.setEnabled(true);
  • gli/trunk/src/org/greenstone/gatherer/gui/DownloadPane.java

    r18372 r18412  
    400400    public DesignTree() {
    401401        super();
     402            this.setComponentOrientation(Dictionary.getOrientation());
    402403        resetModel(Configuration.getMode());
    403404        expandRow(0);
  • gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java

    r18372 r18412  
    182182             
    183183       
    184         saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs")
    185 );
     184        saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs"));
    186185        saveas_label.setComponentOrientation(Dictionary.getOrientation());
    187186        //saveas_label.setPreferredSize(LABEL_SIZE);
  • gli/trunk/src/org/greenstone/gatherer/gui/FedoraLogin.java

    r16369 r18412  
    6262import java.awt.Rectangle;
    6363import java.awt.Toolkit;
     64import org.greenstone.gatherer.Dictionary;
    6465
    6566
     
    9192    {
    9293    super(Gatherer.g_man, "Login", true);
     94        this.setComponentOrientation(Dictionary.getOrientation());
    9395    this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    9496       
    95     JLabel serverLabel=new JLabel("Fedora Server");
     97    JLabel serverLabel=new JLabel("Fedora Server");       
    9698    JLabel protocolLabel=new JLabel("Protocol");
    9799        JLabel usernameLabel=new JLabel("Username");
    98100        JLabel passwordLabel=new JLabel("Password");
    99101
     102        serverLabel.setComponentOrientation(Dictionary.getOrientation());
     103        protocolLabel.setComponentOrientation(Dictionary.getOrientation());
     104        usernameLabel.setComponentOrientation(Dictionary.getOrientation());
     105        passwordLabel.setComponentOrientation(Dictionary.getOrientation());
     106       
    100107        m_serverComboBox=new JComboBox(new String[]{m_lastServer});
     108        m_serverComboBox.setComponentOrientation(Dictionary.getOrientation());
    101109        m_serverComboBox.setEditable(true);
    102110    m_protocolComboBox=new JComboBox(new String[]{m_lastProtocol, "https"}); // http and https
     111        m_protocolComboBox.setComponentOrientation(Dictionary.getOrientation());       
    103112    m_protocolComboBox.setEditable(true);
    104113        m_usernameComboBox=new JComboBox(new String[]{m_lastUsername});
     114        m_usernameComboBox.setComponentOrientation(Dictionary.getOrientation());
    105115        m_usernameComboBox.setEditable(true);
    106116        m_passwordField=new JPasswordField();
     
    121131
    122132        JPanel inputPane=new JPanel();
     133        inputPane.setComponentOrientation(Dictionary.getOrientation());
    123134        inputPane.setBorder(BorderFactory.createCompoundBorder(
    124135                BorderFactory.createCompoundBorder(
     
    155166
    156167        JPanel buttonPane=new JPanel();
     168        buttonPane.setComponentOrientation(Dictionary.getOrientation());
    157169        buttonPane.add(loginButton);
    158170        buttonPane.add(cancelButton);
    159171        Container contentPane=getContentPane();
     172        contentPane.setComponentOrientation(Dictionary.getOrientation());
    160173
    161174        contentPane.setLayout(new BorderLayout());
    162175    m_infoPane = new JPanel();
     176        m_infoPane.setComponentOrientation(Dictionary.getOrientation());
    163177    m_infoPane.setBackground(TRANSPARENT);
    164178    contentPane.add(m_infoPane, BorderLayout.NORTH);
  • gli/trunk/src/org/greenstone/gatherer/gui/FileAssociationDialog.java

    r18370 r18412  
    9090    JPanel content_pane = (JPanel) getContentPane();
    9191    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    92 
     92        content_pane.setComponentOrientation(Dictionary.getOrientation());
     93       
    9394    JTextArea instructions_area = new JTextArea(Dictionary.get("FileAssociationDialog.Instructions"));
    9495    instructions_area.setEditable(false);
     
    9697    instructions_area.setRows(5);
    9798    instructions_area.setWrapStyleWord(true);
    98    
     99    instructions_area.setComponentOrientation(Dictionary.getOrientation());
     100       
    99101    JPanel control_pane = new JPanel();
     102        control_pane.setComponentOrientation(Dictionary.getOrientation());
     103       
    100104    existing_associations_table = new JTable(file_association_manager);
    101     existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
     105    existing_associations_table.setComponentOrientation(Dictionary.getOrientation());
     106        existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
    102107    existing_associations_table.setColumnSelectionAllowed(false);
    103108    existing_associations_table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    104109    JPanel lower_pane = new JPanel();
     110        lower_pane.setComponentOrientation(Dictionary.getOrientation());
    105111    JPanel details_pane = new JPanel();
     112        details_pane.setComponentOrientation(Dictionary.getOrientation());
    106113
    107114    JPanel extension_pane = new JPanel();
     115        extension_pane.setComponentOrientation(Dictionary.getOrientation());
    108116    JLabel extension_label = new JLabel(Dictionary.get("FileAssociationDialog.Extension"));
     117        extension_label.setComponentOrientation(Dictionary.getOrientation());
    109118    extension_field = new NonWhitespaceField();
    110119    extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip"));
    111120               
    112121    JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command"));
    113     JPanel command_pane = new JPanel();
     122        command_label.setComponentOrientation(Dictionary.getOrientation());
     123        JPanel command_pane = new JPanel();
     124        command_pane.setComponentOrientation(Dictionary.getOrientation());
    114125    command_field = new JTextField();
     126        command_field.setComponentOrientation(Dictionary.getOrientation());
    115127    command_field.setToolTipText(Dictionary.get("FileAssociationDialog.Command_Tooltip"));
    116128    browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse"));
     
    124136
    125137    JPanel button_pane = new JPanel();       
     138        button_pane.setComponentOrientation(Dictionary.getOrientation());
    126139       
    127140    add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip"));
     
    170183    button_pane.add(replace_button);
    171184    button_pane.add(remove_button);
    172     button_pane.add(new JPanel());
    173     button_pane.add(new JPanel());
     185        JPanel tmp ;
     186        tmp = new JPanel();
     187        tmp.setComponentOrientation(Dictionary.getOrientation());
     188    button_pane.add(tmp);
     189        tmp = new JPanel();
     190        tmp.setComponentOrientation(Dictionary.getOrientation());
     191    button_pane.add(tmp);
    174192    button_pane.add(close_button);
    175193
     
    198216    screen = null;
    199217       
    200         //RTL
    201         content_pane.setComponentOrientation(Dictionary.getOrientation());
    202         instructions_area.setComponentOrientation(Dictionary.getOrientation());
    203         control_pane.setComponentOrientation(Dictionary.getOrientation());
    204         existing_associations_table.setComponentOrientation(Dictionary.getOrientation());
    205         lower_pane.setComponentOrientation(Dictionary.getOrientation());
    206         details_pane.setComponentOrientation(Dictionary.getOrientation());
    207         extension_pane.setComponentOrientation(Dictionary.getOrientation());
    208         extension_label.setComponentOrientation(Dictionary.getOrientation());
    209         extension_field.setComponentOrientation(Dictionary.getOrientation());
    210         command_label.setComponentOrientation(Dictionary.getOrientation());
    211         command_pane.setComponentOrientation(Dictionary.getOrientation());
    212         //end
    213218    }
    214219
  • gli/trunk/src/org/greenstone/gatherer/gui/ModalDialog.java

    r8480 r18412  
    3030import javax.swing.*;
    3131import org.greenstone.gatherer.DebugStream;
     32import org.greenstone.gatherer.Dictionary;
    3233
    3334
     
    5253    public ModalDialog() {
    5354    super((Frame)null, "", false);
     55        this.setComponentOrientation(Dictionary.getOrientation());
    5456    }
    5557
     
    5961    public ModalDialog(Dialog parent) {
    6062    super(parent, "", false);
     63        this.setComponentOrientation(Dictionary.getOrientation());
    6164    }
    6265
     
    6770    public ModalDialog(Dialog parent, boolean modal) {
    6871    super(parent, "", false);
     72        this.setComponentOrientation(Dictionary.getOrientation());
    6973    this.modal = modal;
    7074    }
     
    7680    public ModalDialog(Dialog parent, String title) {
    7781    super (parent, title, false);
     82        this.setComponentOrientation(Dictionary.getOrientation());
    7883    this.modal = false;
    7984    }
     
    8691    public ModalDialog(Dialog parent, String title, boolean modal) {
    8792    super (parent, title, false);
     93        this.setComponentOrientation(Dictionary.getOrientation());
    8894    this.modal = modal;
    8995    }
     
    94100    public ModalDialog(Frame parent) {
    95101    super(parent, "", false);
     102        this.setComponentOrientation(Dictionary.getOrientation());
    96103    }
    97104
     
    102109    public ModalDialog(Frame parent, boolean modal) {
    103110    super(parent, "", false);
     111        this.setComponentOrientation(Dictionary.getOrientation());
    104112    this.modal = modal;
    105113    }
     
    111119    public ModalDialog(Frame parent, String title) {
    112120    super (parent, title, false);
     121        this.setComponentOrientation(Dictionary.getOrientation());
    113122    }
    114123
     
    121130    super (parent, title, false);
    122131    this.modal = modal;
     132        this.setComponentOrientation(Dictionary.getOrientation());
    123133    }
    124134
  • gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java

    r18397 r18412  
    113113    JPanel content_pane = (JPanel) getContentPane();
    114114    content_pane.setOpaque(true);
    115    
     115    content_pane.setComponentOrientation(Dictionary.getOrientation());       
    116116    options_pane = new JPanel();
     117       
    117118    addScriptOptions(options_pane);
    118119    JScrollPane middle_pane = new JScrollPane(options_pane);
    119 
     120        middle_pane.setComponentOrientation(Dictionary.getOrientation());
     121       
    120122    JTextArea instructions_area = new JTextArea(Dictionary.get("ReplaceSrcWithHTMLPrompt.Instructions"));
    121     instructions_area.setEditable(false);
     123    instructions_area.setComponentOrientation(Dictionary.getOrientation());
     124        instructions_area.setEditable(false);
    122125    instructions_area.setLineWrap(true);
    123126    instructions_area.setRows(5);
     
    125128   
    126129    JPanel button_pane = new JPanel();
     130        button_pane.setComponentOrientation(Dictionary.getOrientation());
    127131    JButton srcreplace_button = new GLIButton(Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc"), Dictionary.get("ReplaceSrcWithHTMLPrompt.ReplaceSrc_Tooltip"));
    128132    JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
Note: See TracChangeset for help on using the changeset viewer.