Changeset 17252 for gli


Ignore:
Timestamp:
09/11/08 14:30:22 (12 years ago)
Author:
kjdon
Message:

small changes to do with updating fields based on saveas, and disable the text fields if checkbox not selected

File:
1 edited

Legend:

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

    r17145 r17252  
    219219
    220220        convert_xml_field1 = new JTextField();
     221    convert_xml_field1.setEnabled(false);
    221222    convert_xml_field2 = new JTextField();
     223    convert_xml_field2.setEnabled(false);
    222224    mapping_xml_field = new JTextField();
     225    mapping_xml_field.setEnabled(false);
    223226
    224227        convert_xml_pane1 = new JPanel(new BorderLayout());
     
    324327       
    325328        String saveas = (String)saveas_combobox.getSelectedItem();
    326     if (saveas.equals("MARCXML")){
    327         convert_xml_pane.add(mapping_xml_pane);
    328             convert_xml_pane.add(output_single_checkbox);
    329     }
    330         else{
    331         if (saveas.endsWith("METS")){
    332         convert_xml_pane.add(convert_xml_pane2);
    333         }
    334     }
    335     convert_xml_pane.revalidate();
    336     convert_xml_pane.repaint();
     329    // force the updating of which fields we are displaying
     330    saveas_combobox.setSelectedIndex(0);
    337331
    338332        // Save as pane
     
    786780     
    787781        convert_xml_button1.setEnabled(convert_xml_checkbox1.isSelected());
     782        convert_xml_field1.setEnabled(convert_xml_checkbox1.isSelected());
    788783        convert_xml_button2.setEnabled(convert_xml_checkbox2.isSelected());
     784        convert_xml_field2.setEnabled(convert_xml_checkbox2.isSelected());
    789785        convert_xml_button3.setEnabled(mapping_xml_checkbox.isSelected());
     786        mapping_xml_field.setEnabled(mapping_xml_checkbox.isSelected());
    790787           
    791788    }
Note: See TracChangeset for help on using the changeset viewer.