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

more modifications for RTL GLI, thanks to Amin Hedjazi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/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
Note: See TracChangeset for help on using the changeset viewer.