Changeset 18911 for gli/trunk/src/org/greenstone/gatherer/cdm/Argument.java
- Timestamp:
- 2009-04-08T13:27:32+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/Argument.java
r17826 r18911 72 72 /** An element of the argument type enumeration specifying a metadata set combobox control. */ 73 73 static final public byte METADATA_SET_NAMESPACE = 9; 74 75 ///////////kk added the number was 9, I changed it to 10//////////////76 74 /** An element of the argument type enumeration specifying a text field. */ 77 75 static final public byte URL = 10; 76 /** An editable combo box */ 77 static final public byte ENUM_STRING = 11; 78 78 79 ///////////////////////////////////////////////////////////////// 79 80 … … 94 95 /** The DOM element this argument is built around, if any. */ 95 96 private Element element; 96 /** If the argument is of type ENUM then this map holds all the various options. Each entry is an <option value> -> <description> mapping. */97 /** If the argument is of type ENUM or ENUM_STRING then this map holds all the various options. Each entry is an <option value> -> <description> mapping. */ 97 98 private ArrayList option_list = null; 98 99 /** A default value for parameter-type arguments. May be a Perl pattern. */ … … 123 124 */ 124 125 public void addOption(String name, String desc) { 125 if(type == ENUM&& name != null) {126 if((type == ENUM || type == ENUM_STRING) && name != null) { 126 127 if(desc == null) { 127 128 desc = ""; … … 412 413 if(new_type.equalsIgnoreCase(StaticStrings.ENUM_STR)) { 413 414 this.type = ENUM; 415 option_list = new ArrayList(); 416 } 417 else if(new_type.equalsIgnoreCase(StaticStrings.ENUM_STRING_STR)) { 418 this.type = ENUM_STRING; 414 419 option_list = new ArrayList(); 415 420 }
Note:
See TracChangeset
for help on using the changeset viewer.