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

more modifications for RTL GLI, thanks to Amin Hedjazi

Location:
gli/trunk/src/org/greenstone/gatherer/gems
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.