Changeset 11038

Show
Ignore:
Timestamp:
16.01.2006 12:39:17 (14 years ago)
Author:
mdewsnip
Message:

Tidied up the look of the Design pane. Each Design pane screen now has consistent borders, and vertical spacing between elements has been improved.

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r11031 r11038  
    635635        button_pane.add(remove); 
    636636 
    637         // Scope these mad bordering skillz. 
    638         temp.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,0,5,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("CDM.ClassifierManager.Controls")), BorderFactory.createEmptyBorder(2,2,2,2)))); 
    639637        temp.add(classifier_pane, BorderLayout.NORTH); 
    640638        temp.add(button_pane, BorderLayout.SOUTH); 
    641639 
     640        central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    642641        central_pane.setLayout(new BorderLayout()); 
    643642        central_pane.add(classifier_list_pane, BorderLayout.CENTER); 
    644643        central_pane.add(temp, BorderLayout.SOUTH); 
    645644 
    646         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     645        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    647646        setLayout(new BorderLayout()); 
    648647        add(header_pane, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java

    r11031 r11038  
    359359 
    360360        // Layout 
     361        JPanel format_list_pane = new JPanel(); 
     362        format_list_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
     363        format_list_pane.setLayout(new BorderLayout()); 
     364        format_list_pane.add(new JScrollPane(format_list), BorderLayout.CENTER); 
     365 
     366        feature_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    361367        feature_pane.setLayout(new BorderLayout(5,0)); 
    362368        feature_pane.add(feature_label, BorderLayout.WEST); 
    363369        feature_pane.add(feature_combobox, BorderLayout.CENTER); 
    364370 
     371        part_pane.setBorder(BorderFactory.createEmptyBorder(2,0,0,0)); 
    365372        part_pane.setLayout(new BorderLayout(5, 0)); 
    366373        part_pane.add(part_label, BorderLayout.WEST); 
     
    403410        button_pane.add(remove_button); 
    404411 
    405         center_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("CDM.FormatManager.Editing_Controls")), BorderFactory.createEmptyBorder(2,2,2,2))); 
    406412        center_pane.setLayout(new BorderLayout()); 
    407413        center_pane.add(feature_pane, BorderLayout.NORTH); 
     
    409415        center_pane.add(button_pane, BorderLayout.SOUTH); 
    410416 
    411         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     417        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    412418        setLayout(new BorderLayout()); 
    413419        add(header_pane, BorderLayout.NORTH); 
    414         add(new JScrollPane(format_list), BorderLayout.CENTER); 
     420        add(format_list_pane, BorderLayout.CENTER); 
    415421        add(center_pane, BorderLayout.SOUTH); 
    416422        ready = true; 
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r11031 r11038  
    8787    tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER); 
    8888 
    89     setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); 
     89    setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
    9090    setLayout(new BorderLayout()); 
    9191    add(tree_pane, BorderLayout.WEST); 
     
    323323        all_details_panel.add(description_panel, BorderLayout.CENTER); 
    324324 
    325         setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 
     325        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    326326        setLayout(new BorderLayout()); 
    327327        add(header_panel, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java

    r11031 r11038  
    733733        main_index_pane.add(new_index_pane, BorderLayout.CENTER); 
    734734 
    735         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     735        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    736736        setLayout(new BorderLayout()); 
    737737        add(header_pane, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java

    r11031 r11038  
    208208        set_pane.add(new JScrollPane(set_list), BorderLayout.CENTER); 
    209209 
     210        element_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    210211        element_pane.setLayout(new BorderLayout()); 
    211212        element_pane.add(element_label, BorderLayout.NORTH); 
    212213        element_pane.add(element_list_scroll_pane, BorderLayout.CENTER); 
    213214 
     215        central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    214216        central_pane.setLayout(new GridLayout(2,1)); 
    215217        central_pane.add(set_pane); 
     
    222224        button_pane.add(remove_button); 
    223225 
    224         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     226        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    225227        setLayout(new BorderLayout()); 
    226228        add(header_pane, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r11031 r11038  
    764764 
    765765        // Layout 
    766         plugin_list_label.setBorder(BorderFactory.createEmptyBorder(0,2,0,2)); 
    767  
    768766        movement_pane.setBorder(BorderFactory.createEmptyBorder(0,2,0,0)); 
    769767        movement_pane.setLayout(new GridLayout(4,1)); 
     
    792790        // Scope these mad bordering skillz. 
    793791        JPanel temp = new JPanel(new BorderLayout()); 
    794         temp.setBorder 
    795         (BorderFactory.createCompoundBorder 
    796          (BorderFactory.createEmptyBorder(5,0,5,0), 
    797           BorderFactory.createCompoundBorder 
    798           (BorderFactory.createTitledBorder(Dictionary.get("CDM.PlugInManager.Controls")), 
    799            BorderFactory.createEmptyBorder(2,2,2,2)))); 
    800  
    801792        temp.add(plugin_pane, BorderLayout.NORTH); 
    802793        temp.add(button_pane, BorderLayout.SOUTH); 
    803794 
     795        central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    804796        central_pane.setLayout(new BorderLayout()); 
    805797        central_pane.add(plugin_list_pane, BorderLayout.CENTER); 
    806798        central_pane.add(temp, BorderLayout.SOUTH); 
    807799 
    808         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     800        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    809801        setLayout(new BorderLayout()); 
    810802        add(header_pane, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java

    r11031 r11038  
    2727package org.greenstone.gatherer.cdm; 
    2828 
    29 /************************************************************************************** 
    30  * Written:      16/07/03 
    31  * Revised: 
    32  **************************************************************************************/ 
    3329import java.awt.*; 
    3430import java.awt.event.*; 
     
    307303        button_panel.add(remove_button); 
    308304 
     305        search_type_panel.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 
    309306        search_type_panel.setLayout(new BorderLayout(5,3)); 
    310307        search_type_panel.add(search_type_label, BorderLayout.WEST); 
     
    312309        search_type_panel.add(button_panel, BorderLayout.SOUTH); 
    313310 
     311        inner_panel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    314312        inner_panel.setLayout(new BorderLayout()); 
    315313        inner_panel.add(indexer_type_panel, BorderLayout.NORTH); 
     
    321319        spacer_panel.add(empty_panel, BorderLayout.CENTER); 
    322320 
    323         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     321        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    324322        setLayout(new BorderLayout()); 
    325323        add(header_panel, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r11031 r11038  
    328328        message_pane.add(new JPanel()); 
    329329 
    330         border_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5)); 
    331330        border_pane.setLayout(card_layout); 
    332331        if(Configuration.getMode() > Configuration.LIBRARIAN_MODE) { 
     
    339338        } 
    340339 
     340        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    341341        setLayout(new BorderLayout()); 
    342342        add(header_pane, BorderLayout.NORTH); 
  • trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java

    r11031 r11038  
    130130        collection_checklist.setListData(collection_checklist_model); 
    131131 
    132         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     132        JPanel collection_checklist_pane = new JPanel(); 
     133        collection_checklist_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
     134        collection_checklist_pane.setLayout(new BorderLayout()); 
     135        collection_checklist_pane.add(new JScrollPane(collection_checklist), BorderLayout.CENTER); 
     136 
     137        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    133138        setLayout(new BorderLayout()); 
    134139        add(header_panel, BorderLayout.NORTH); 
    135         add(new JScrollPane(collection_checklist), BorderLayout.CENTER); 
     140        add(collection_checklist_pane, BorderLayout.CENTER); 
    136141    } 
    137142 
  • trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java

    r11031 r11038  
    273273 
    274274        // Layout 
    275  
     275        component_selection_panel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    276276        component_selection_panel.setLayout(new BorderLayout()); 
    277277        component_selection_panel.add(component_label, BorderLayout.NORTH); 
     
    316316        button_pane.add(remove_button); 
    317317 
    318         setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 
     318        setBorder(BorderFactory.createEmptyBorder(0,5,0,0)); 
    319319        setLayout(new BorderLayout()); 
    320320        add(header_panel, BorderLayout.NORTH);