- Timestamp:
- 2003-07-15T14:17:08+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/OptionsPane.java
r4686 r4933 137 137 int total_height = PANE_SIZE.height; 138 138 for(int i = 0; i < build_argument_count; i++) { 139 139 // Retrieve the argument so we know how to format the control. 140 140 Argument argument = build_options.getBuildArgument(i); 141 141 // Now attempt to retrieve any existing value for this argument. 142 142 boolean enabled = build_options.getBuildValueEnabled(argument.getName()); 143 143 String value = build_options.getBuildValue(argument.getName()); … … 165 165 int total_height = PANE_SIZE.height; 166 166 for(int i = 0; i < import_argument_count; i++) { 167 167 // Retrieve the argument so we know how to format the control. 168 168 Argument argument = build_options.getImportArgument(i); 169 169 // Now attempt to retrieve any existing value for this argument. 170 170 boolean enabled = build_options.getImportValueEnabled(argument.getName()); 171 171 String value = build_options.getImportValue(argument.getName()); … … 372 372 this.argument = argument; 373 373 this.type = type; 374 String tooltip = Utility.formatHTMLWidth("<html>" + argument.getDesc () + "</html>", 60);375 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. 376 376 setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false)); 377 377 setBorder(BorderFactory.createEmptyBorder(2,0,2,0)); … … 379 379 setPreferredSize(ROW_SIZE); 380 380 381 382 383 384 385 386 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. 387 387 if(value == null) { 388 388 value = argument.getDefaultValue(); 389 389 } 390 390 // Create a correct value control based on the argument provided. 391 391 switch(argument.getType()) { 392 392 case Argument.ENUM: … … 402 402 } 403 403 // Build an option model, wrapping each entry of the list table. 404 HashMap arg_list = argument.get List();404 HashMap arg_list = argument.getOptions(); 405 405 Iterator it = arg_list.keySet().iterator(); 406 406 while(it.hasNext()) {
Note:
See TracChangeset
for help on using the changeset viewer.