Changeset 5210
- Timestamp:
- 2003-08-19T15:38:42+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java
r5164 r5210 406 406 if(value.length() > 0) { 407 407 text.append(StaticStrings.SPACE_CHARACTER); 408 // If the value contains a space, add speech marks 409 if(value.indexOf(StaticStrings.SPACE_CHARACTER) != -1) { 410 value = StaticStrings.QUOTE_CHARACTER + value + StaticStrings.QUOTE_CHARACTER; 411 } 408 412 // Tokenize the string 409 413 StringTokenizer tokenizer = new StringTokenizer(value, ","); -
trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java
r5164 r5210 89 89 setSize(SIZE); 90 90 setTitle(get("Title")); 91 setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether 92 // we are doing a classifier or plugin, to make the help 93 //more specific?? 91 setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether we are doing a classifier or plugin, to make the help more specific?? 94 92 JPanel button_pane = new JPanel(); 95 93 cancel = new JButton(get("General.Cancel")); … … 285 283 if(previous_owner == null) { 286 284 previous_owner = argument.getOwner(); 287 addHeader(previous_owner, colour_ one);285 addHeader(previous_owner, colour_two); 288 286 } 289 287 // Otherwise if the owner of the control has changed since the last argument, toggle the colouring of the control. … … 291 289 coloured = !coloured; 292 290 previous_owner = argument.getOwner(); 293 addHeader(previous_owner, (coloured ? colour_ two : colour_one));291 addHeader(previous_owner, (coloured ? colour_one : colour_two)); 294 292 } 295 293 // Create … … 783 781 private class ListOption 784 782 implements Comparable { 785 786 private int MAX_DESC = 35;783 /** The maximum length of this String version of this item. */ 784 //private int MAX_DESC = 35; 787 785 /** The description of the value for this item. */ 788 786 private String description = null; … … 831 829 public String toString() { 832 830 if(text == null) { 833 if(description.length() >= MAX_DESC) {834 text = value + " - " + description.substring(0, MAX_DESC);835 }836 else {837 838 }831 //if(description.length() >= MAX_DESC) { 832 // text = value + " - " + description.substring(0, MAX_DESC); 833 //} 834 //else { 835 text = value + " - " + description; 836 //} 839 837 } 840 838 return text;
Note:
See TracChangeset
for help on using the changeset viewer.