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/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());
Note: See TracChangeset for help on using the changeset viewer.