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/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 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.