Changeset 7241


Ignore:
Timestamp:
2004-04-29T10:32:13+12:00 (20 years ago)
Author:
kjdon
Message:

moved the custom arguments panel to teh end of teh scrolling args

File:
1 edited

Legend:

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

    r7109 r7241  
    7373    /** The field for entering custom arguments. */
    7474    private JTextField custom = null;
     75    /** The panel for the custom arguments */
     76    private JPanel custom_pane = null;
    7577    /** The name of the owner of the last argument control. */
    7678    private String previous_owner = null;
     
    100102    JPanel content_pane = (JPanel) getContentPane();
    101103
    102     JPanel custom_pane = new JPanel();
     104    custom_pane = new JPanel();
    103105    String custom_str = data.getCustom();
    104106    if (custom_str != null) {
     
    137139    custom_pane.add(custom, BorderLayout.CENTER);
    138140
    139     header_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
    140     header_pane.setLayout(new BorderLayout());
    141     header_pane.add(header, BorderLayout.NORTH);
    142     header_pane.add(custom_pane, BorderLayout.CENTER);
    143 
    144141    button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    145142    button_pane.setLayout(new GridLayout(1,2));
     
    152149    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    153150    content_pane.setLayout(new BorderLayout());
    154     content_pane.add(header_pane, BorderLayout.NORTH);
     151    content_pane.add(header, BorderLayout.NORTH);
    155152    content_pane.add(new JScrollPane(central_pane), BorderLayout.CENTER);
    156153    content_pane.add(button_pane, BorderLayout.SOUTH);
     
    197194    cancel = null;
    198195    central_pane = null;
     196    custom_pane = null;
    199197    custom = null;
    200198    data = null;
     
    247245        }
    248246    }
     247    // now add in the custom args bit
     248    coloured = !coloured;
     249    Color color = (coloured ? Gatherer.config.getColor("coloring.collection_heading_background", false) : Gatherer.config.getColor("coloring.collection_tree_background", false));
     250    addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color);
     251    custom_pane.setBackground(color);
     252    central_pane.add(custom_pane);
    249253    if(total_height > 0) {
    250254        JPanel filler = new JPanel();
Note: See TracChangeset for help on using the changeset viewer.