Ignore:
Timestamp:
2009-01-12T13:04:29+13:00 (15 years ago)
Author:
kjdon
Message:

committed code submitted by Amin Hedjazi for making the GLI right to left. I worked on this code on the rtl-gli branch, then merged the branch back to the trunk at revision 18368. The branch code was slightly different in a couple of places where it shouldn't have been. So don't use the branch code next time. Start a new branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java

    r18199 r18370  
    117117    public GUIManager(Dimension size) {
    118118    super();
     119        this.setComponentOrientation(Dictionary.getOrientation());
    119120    // Initialization
    120121    this.help = new HelpFrame();
     
    329330    public void display() {
    330331    content_pane = (JPanel) this.getContentPane();
     332        content_pane.setComponentOrientation(Dictionary.getOrientation());
     333       
    331334    // Enable window-type events to be fired.
    332335    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
     
    358361        // Create the menu-bar and stick it up the top.
    359362        menu_bar = new MenuBar(new MenuListenerImpl());
     363            menu_bar.setComponentOrientation(Dictionary.getOrientation());
    360364
    361365        //feedback changes
     
    367371        // expand to consume all available space like any good gas would.
    368372        tab_pane = new JTabbedPane();
     373            tab_pane.setComponentOrientation(Dictionary.getOrientation());
    369374        tab_pane.addChangeListener(this);
    370375        tab_pane.setFont(Configuration.getFont("general.font", false));
     
    377382        }
    378383
    379         gather_pane = new GatherPane();
     384        gather_pane = new GatherPane();         
    380385        gather_pane.display();
    381386        if (Configuration.get("workflow.gather", true)) {
     
    408413
    409414        create_pane = new CreatePane();
     415            create_pane.setComponentOrientation(Dictionary.getOrientation());
    410416        create_pane.display();
    411417        if (Configuration.get("workflow.create", true)) {
     
    416422
    417423        format_pane = new FormatPane();
     424            format_pane.setComponentOrientation(Dictionary.getOrientation());
    418425        format_pane.display();
    419426        if (Configuration.get("workflow.format", true)) {
     
    424431        // The MetaAuditFrame must be created after the gather/enrich panes but before they get focus
    425432        meta_audit = new MetaAuditFrame();
    426 
     433            meta_audit.setComponentOrientation(Dictionary.getOrientation());
    427434        // Select the collect pane if it is available
    428435        if (tab_pane.indexOfComponent(gather_pane) != -1) {
     
    444451        if (Gatherer.isGsdlRemote) {
    445452        JPanel remote_greenstone_server_progress_panel = new JPanel();
     453               //remote_greenstone_server_progress_panel.setComponentOrientation(Dictionary.getOrientation());
    446454        JLabel remote_greenstone_server_progress_label = new JLabel(Dictionary.get("RemoteGreenstoneServer.Progress"));
     455                //remote_greenstone_server_progress_label.setComponentOrientation(Dictionary.getOrientation());
    447456        remote_greenstone_server_progress_panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    448457        remote_greenstone_server_progress_panel.setLayout(new BorderLayout());
    449         remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.WEST);
     458        remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.LINE_START);
    450459        remote_greenstone_server_progress_panel.add(Gatherer.remoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER);
    451460        content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH);
     
    715724    {
    716725    OpenCollectionDialog dialog = new OpenCollectionDialog();
     726        dialog.setComponentOrientation(Dictionary.getOrientation());
    717727    if (dialog.display() == OpenCollectionDialog.OK_OPTION) {
    718728        return dialog.getFileName();
Note: See TracChangeset for help on using the changeset viewer.