Changeset 11028


Ignore:
Timestamp:
2006-01-12T11:21:19+13:00 (18 years ago)
Author:
kjdon
Message:

new argument parsing means we can't have new args, so commented out the custom args stuff

File:
1 edited

Legend:

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

    r10237 r11028  
    6868    private JPanel central_pane = null;
    6969    /** The field for entering custom arguments. */
    70     private JTextField custom = null;
     70    //private JTextField custom = null;
    7171    /** The panel for the custom arguments */
    72     private JPanel custom_pane = null;
     72    //private JPanel custom_pane = null;
    7373    /** The name of the owner of the last argument control. */
    7474    private String previous_owner = null;
     
    9898    JPanel content_pane = (JPanel) getContentPane();
    9999
    100     custom_pane = new JPanel();
    101     String custom_str = data.getCustom();
    102     if (custom_str != null) {
    103         custom = new JTextField(custom_str);
    104     }
    105     else {
    106         custom = new JTextField();
    107     }
    108     JLabel custom_label = new JLabel();
    109     custom_label.setPreferredSize(LABEL_SIZE);
    110     Dictionary.setText(custom_label, "CDM.ArgumentConfiguration.Custom");
     100// custom_pane = new JPanel();
     101// String custom_str = data.getCustom();
     102// if (custom_str != null) {
     103//      custom = new JTextField(custom_str);
     104// }
     105// else {
     106//      custom = new JTextField();
     107// }
     108// JLabel custom_label = new JLabel();
     109// custom_label.setPreferredSize(LABEL_SIZE);
     110// Dictionary.setText(custom_label, "CDM.ArgumentConfiguration.Custom");
    111111
    112112    JPanel header_pane = new JPanel();
     
    132132
    133133    // Layout
    134     custom_pane.setLayout(new BorderLayout());
    135     custom_pane.add(custom_label, BorderLayout.WEST);
    136     custom_pane.add(custom, BorderLayout.CENTER);
     134// custom_pane.setLayout(new BorderLayout());
     135// custom_pane.add(custom_label, BorderLayout.WEST);
     136// custom_pane.add(custom, BorderLayout.CENTER);
    137137
    138138    button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
     
    168168    if (event.getSource() == ok) {
    169169        // Clear the current focus to ensure components such as combobox have correctly updated
    170         custom.requestFocus();
     170        //custom.requestFocus();
    171171        // Update the details stored in the data objects arguments.
    172         data.setCustom(custom.getText());
     172        //data.setCustom(custom.getText());
    173173        // Loop through each of the controls in the central pane, updating the matching argument as necessary.
    174174        for(int i = 0; i < central_pane.getComponentCount(); i++) {
     
    191191    cancel = null;
    192192    central_pane = null;
    193     custom_pane = null;
    194     custom = null;
     193    //custom_pane = null;
     194    //custom = null;
    195195    data = null;
    196196    ok = null;
     
    243243    }
    244244    // now add in the custom args bit
    245     coloured = !coloured;
    246     Color color = (coloured ? Configuration.getColor("coloring.collection_heading_background", false) : Configuration.getColor("coloring.collection_tree_background", false));
    247     addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color);
    248     custom_pane.setBackground(color);
    249     central_pane.add(custom_pane);
     245// coloured = !coloured;
     246// Color color = (coloured ? Configuration.getColor("coloring.collection_heading_background", false) : Configuration.getColor("coloring.collection_tree_background", false));
     247// addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color);
     248// custom_pane.setBackground(color);
     249// central_pane.add(custom_pane);
    250250    if(total_height > 0) {
    251251        JPanel filler = new JPanel();
Note: See TracChangeset for help on using the changeset viewer.