Ignore:
Timestamp:
08/13/12 14:00:14 (12 years ago)
Author:
zastrow
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/java/clarind/fcs/Aggregator.java

    r2016 r2075  
    88import org.zkoss.zul.Row;
    99import org.zkoss.zul.Checkbox;
     10import org.zkoss.zul.Combobox;
    1011
    1112public class Aggregator extends GenericAutowireComposer {
    12    
     13
    1314    private Textbox searchString;
    1415    private Rows rowsIds;
    15         private Rows rowsTue;
     16    private Rows rowsTue;
     17    private Combobox languageSelect;
    1618
    1719    public void onExecuteSearch(Event ev) {
     
    1921            String display = "SearchString: " + searchString.getText() + "\n";
    2022           
     23            display = display + "Language: " + languageSelect.getSelectedItem().getLabel() + "\n";
     24
    2125            int i, i2;
    22            
     26
    2327            // ----- IDS:
    24            
     28
    2529            display = display + "IDS:\n";
    26            
    27                 for(i=0; i<rowsIds.getChildren().size(); i++){
    28                     Row r = (Row)rowsIds.getChildren().get(i);
    29                    
    30                     for(i2=0; i2<r.getChildren().size();i2++){
    31                         Checkbox cb = (Checkbox)r.getChildren().get(i2);
    32                         if(cb.isChecked()) display = display + cb.getLabel() + "\n";
    33                     } // for i2...
    34                    
    35                 } // for i ...
    36                
    37                
    38                 // ----- TÃŒbingen:
    39                
    40                 display = display + "TÃŒbingen:\n";
    41            
    42                 for(i=0; i<rowsTue.getChildren().size(); i++){
    43                     Row r = (Row)rowsTue.getChildren().get(i);
    44                    
    45                     for(i2=0; i2<r.getChildren().size();i2++){
    46                         Checkbox cb = (Checkbox)r.getChildren().get(i2);
    47                         if(cb.isChecked()) display = display + cb.getLabel() + "\n";
    48                     } // for i2...
    49                    
    50                 } // for i ...
    51                        
     30
     31            for (i = 0; i < rowsIds.getChildren().size(); i++) {
     32                Row r = (Row) rowsIds.getChildren().get(i);
     33
     34                for (i2 = 0; i2 < r.getChildren().size(); i2++) {
     35                    Checkbox cb = (Checkbox) r.getChildren().get(i2);
     36                    if (cb.isChecked()) {
     37                        display = display + cb.getLabel() + "\n";
     38                    }
     39                } // for i2...
     40
     41            } // for i ...
     42
     43
     44            // ----- TÃŒbingen:
     45
     46            display = display + "TÃŒbingen:\n";
     47
     48            for (i = 0; i < rowsTue.getChildren().size(); i++) {
     49                Row r = (Row) rowsTue.getChildren().get(i);
     50
     51                for (i2 = 0; i2 < r.getChildren().size(); i2++) {
     52                    Checkbox cb = (Checkbox) r.getChildren().get(i2);
     53                    if (cb.isChecked()) {
     54                        display = display + cb.getLabel() + "\n";
     55                    }
     56                } // for i2...
     57
     58            } // for i ...
     59
    5260            Messagebox.show(display);
    53            
     61
    5462        } catch (Exception ex) {
    5563            System.out.println(ex.getMessage());
Note: See TracChangeset for help on using the changeset viewer.