Ignore:
Timestamp:
2003-07-15T14:17:08+12:00 (21 years ago)
Author:
jmt12
Message:

Major CDM rewrite so it uses DOM.

File:
1 edited

Legend:

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

    r4686 r4933  
    137137    int total_height = PANE_SIZE.height;
    138138    for(int i = 0; i < build_argument_count; i++) {
    139                 // Retrieve the argument so we know how to format the control.
     139        // Retrieve the argument so we know how to format the control.
    140140        Argument argument = build_options.getBuildArgument(i);
    141                 // Now attempt to retrieve any existing value for this argument.
     141        // Now attempt to retrieve any existing value for this argument.
    142142        boolean enabled = build_options.getBuildValueEnabled(argument.getName());
    143143        String value = build_options.getBuildValue(argument.getName());
     
    165165    int total_height = PANE_SIZE.height;
    166166    for(int i = 0; i < import_argument_count; i++) {
    167                 // Retrieve the argument so we know how to format the control.
     167        // Retrieve the argument so we know how to format the control.
    168168        Argument argument = build_options.getImportArgument(i);
    169                 // Now attempt to retrieve any existing value for this argument.
     169        // Now attempt to retrieve any existing value for this argument.
    170170        boolean enabled = build_options.getImportValueEnabled(argument.getName());
    171171        String value = build_options.getImportValue(argument.getName());
     
    372372        this.argument = argument;
    373373        this.type = type;
    374         String tooltip = Utility.formatHTMLWidth("<html>" + argument.getDesc() + "</html>", 60);
    375                 // Because of the dynamic order of component creation/connection/layout, we can't really follow that pattern here.
     374        String tooltip = Utility.formatHTMLWidth("<html>" + argument.getDescription() + "</html>", 60);
     375        // Because of the dynamic order of component creation/connection/layout, we can't really follow that pattern here.
    376376        setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    377377        setBorder(BorderFactory.createEmptyBorder(2,0,2,0));
     
    379379        setPreferredSize(ROW_SIZE);
    380380
    381                 /*
    382                   JPanel inner_pane = new JPanel();
    383                   inner_pane.setOpaque(false);
    384                 */
    385 
    386                 // Try to determine what the value_controls value should be.
     381        /*
     382          JPanel inner_pane = new JPanel();
     383          inner_pane.setOpaque(false);
     384        */
     385
     386        // Try to determine what the value_controls value should be.
    387387        if(value == null) {
    388388        value = argument.getDefaultValue();
    389389        }
    390                 // Create a correct value control based on the argument provided.
     390        // Create a correct value control based on the argument provided.
    391391        switch(argument.getType()) {
    392392        case Argument.ENUM:
     
    402402        }
    403403        // Build an option model, wrapping each entry of the list table.
    404         HashMap arg_list = argument.getList();
     404        HashMap arg_list = argument.getOptions();
    405405        Iterator it = arg_list.keySet().iterator();
    406406        while(it.hasNext()) {
Note: See TracChangeset for help on using the changeset viewer.