Package net.geco.model

Examples of net.geco.model.HeatSet


    Object[] selectedValues = heatList.getSelectedValues();
    return Arrays.copyOf(selectedValues, selectedValues.length, HeatSet[].class );
  }
 
  public void showPoolList() {
    HeatSet currentHeatset = getSelectedHeatset();
    final List<String> poolnames = getAllPoolnames(currentHeatset);
    poolList.setModel(new AbstractListModel() {
      public int getSize() {
        return poolnames.size();
      }
View Full Code Here


    return indices;
  }
 
 
  private void setPoolsForHeatSet() {
    HeatSet set = getSelectedHeatset();
    set.setSelectedPools(getSelectedPoolsFromList(set, poolList.getSelectedValues()));
  }
View Full Code Here


  public void showHeatSetCreationDialog() {
    heatDialog.showHeatSet(geco().heatBuilder().createHeatSet());
    if( !heatDialog.cancelled() ) {
      HeatSet newHeatset = heatDialog.getHeatSet();
      heatlistModel.addElement(newHeatset);
      heatList.setSelectedValue(newHeatset, true);
      registry().addHeatSet(newHeatset);
    }
  }
View Full Code Here

    return values;
  }

  @Override
  public HeatSet importTData(String[] record) {
    HeatSet heatSet = this.factory.createHeatSet();
    heatSet.setName(record[0]);
    heatSet.setSetType(ResultType.valueOf(record[1]));
    heatSet.setQualifyingRank(new Integer(record[2]));
    int nbHeats = new Integer(record[3]);
    String[] heatNames = new String[nbHeats];
    for (int i = 0; i < nbHeats; i++) {
      heatNames[i] = record[4 + i];
    }
    heatSet.setHeatNames(heatNames);
    int nbSets = record.length - nbHeats - 4;
    Pool[] selectedSets = new Pool[nbSets];
    if( heatSet.isCourseType() ) {
      for (int i = 0; i < selectedSets.length; i++) {
        selectedSets[i] = registry.findCourse(record[4 + nbHeats + i]);
      }
    } else {
      for (int i = 0; i < selectedSets.length; i++) {
        selectedSets[i] = registry.findCategory(record[4 + nbHeats + i]);
      }     
    }
    heatSet.setSelectedPools(selectedSets);
    return heatSet;
  }
View Full Code Here

TOP

Related Classes of net.geco.model.HeatSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.