Examples of MannschaftErgebnis


Examples of de.achim.turnier.utility.MannschaftErgebnis

    mannschaften.add("Albertshausen");
    mannschaften.add("Aufhausen");
   
    //init Mannschaftsergebnisse
   
    MannschaftErgebnis maWeilheim1 = new MannschaftErgebnis("Weilheim 1");
    MannschaftErgebnis maWeilheim2 = new MannschaftErgebnis("Weilheim 2");
    MannschaftErgebnis maSalach = new MannschaftErgebnis("Salach");
    MannschaftErgebnis maUlm = new MannschaftErgebnis("Ulm");
    MannschaftErgebnis maAlbertshausen = new MannschaftErgebnis("Albertshausen");
    MannschaftErgebnis maAufhausen = new MannschaftErgebnis("Aufhausen");
   
    System.out.println(maAufhausen.getMannschaftName() + "  " + maAufhausen.getMannschaftPunkte());
   
    //generate spiel-paarungen

    int index = 0;
    Vector<Begegnung> paarungen = new Vector<Begegnung>();
View Full Code Here

Examples of de.achim.turnier.utility.MannschaftErgebnis

   
    SpielPlanPanel spp = (SpielPlanPanel) sp.getMotherPanel();
    spp.getName();
   
    MannschaftErgebnis me1 = new MannschaftErgebnis(sp.getMannschaft1());
   
    me1.setManschaftTorePlus(new Integer(sp.getTore1()))
    me1.setMannschaftToreMinus(new Integer(sp.getTore2()));
    me1.setMannschaftSpiele(1);
   
    if(sp.getBegegnung() != null){
      Begegnung bg = sp.getBegegnung();
      bg.setToreMannschaft1(sp.getTore1());
      bg.setToreMannschaft2(sp.getTore2());
      bg.setSpielfertig(true);
    }
   
    if(sp.getTore1()>sp.getTore2())
      me1.setMannschaftPunkte(gewinn);
    else if(sp.getTore1()<sp.getTore2())
      me1.setMannschaftPunkte(niederlage);
    else
      me1.setMannschaftPunkte(unentschieden);
   
    MannschaftErgebnis me2 = new MannschaftErgebnis(sp.getMannschaft2());
    me2.setManschaftTorePlus(new Integer(sp.getTore2()));
    me2.setMannschaftToreMinus(new Integer(sp.getTore1()));
    me2.setMannschaftSpiele(1);
    if(sp.getTore1()>sp.getTore2())
      me2.setMannschaftPunkte(niederlage);
    else if(sp.getTore1()<sp.getTore2())
      me2.setMannschaftPunkte(gewinn);
    else
      me2.setMannschaftPunkte(unentschieden);
   
    //welche tabelle ist diesem panel zugeordnet?
    //sp.tabelle.addRow(me1);
    //sp.tabelle.addRow(me2);
    spp.getTabellenPanel().addRow(me1);
View Full Code Here

Examples of de.achim.turnier.utility.MannschaftErgebnis

    if(e.getActionCommand().equals("tore1")) {      
      JTextField txtf = (JTextField) e.getSource();
      sTore1 = txtf.getText().trim();
    //  sp.setTore1(Integer.parseInt(sTore1));
      sp.tore1 = Integer.parseInt(sTore1);
      MannschaftErgebnis me1 = new MannschaftErgebnis(sp.getMannschaft1());
      me1.setManschaftTorePlus(new Integer(sTore1));     
    }

    if(e.getActionCommand().equals("tore2")) {
      JTextField txtf = (JTextField) e.getSource();
      sTore2 = txtf.getText().trim();
    //  sp.setTore2(Integer.parseInt(sTore2));
      sp.tore2 = Integer.parseInt(sTore2);
      MannschaftErgebnis me2 = new MannschaftErgebnis(sp.getMannschaft2());
      me2.setManschaftTorePlus(new Integer(sTore2));
    }

  }
View Full Code Here

Examples of de.achim.turnier.utility.MannschaftErgebnis

    this.sp = comp;
  }
 
  public void actionPerformed( ActionEvent e ) {
   
    MannschaftErgebnis me1 = new MannschaftErgebnis(sp.getMannschaft1());
   
    me1.setManschaftTorePlus(new Integer(sp.tore1))
    me1.setMannschaftToreMinus(new Integer(sp.tore2));
    me1.setMannschaftSpiele(1);
   
    if(sp.getBegegnung() != null){
      Begegnung bg = sp.getBegegnung();
      bg.setToreMannschaft1(sp.tore1);
      bg.setToreMannschaft2(sp.tore2);
      bg.setSpielfertig(true);
    }
   
    if(sp.tore1>sp.tore2)
      me1.setMannschaftPunkte(gewinn);
    else if(sp.tore1<sp.tore2)
      me1.setMannschaftPunkte(niederlage);
    else
      me1.setMannschaftPunkte(unentschieden);
   
    MannschaftErgebnis me2 = new MannschaftErgebnis(sp.getMannschaft2());
    me2.setManschaftTorePlus(new Integer(sp.tore2));
    me2.setMannschaftToreMinus(new Integer(sp.tore1));
    me2.setMannschaftSpiele(1);
    if(sp.tore1>sp.tore2)
      me2.setMannschaftPunkte(niederlage);
    else if(sp.tore1<sp.tore2)
      me2.setMannschaftPunkte(gewinn);
    else
      me2.setMannschaftPunkte(unentschieden);
   
    if(sp.tabelle != null){
      sp.tabelle.addRow(me1);
      sp.tabelle.addRow(me2);
    }
View Full Code Here

Examples of de.achim.turnier.utility.MannschaftErgebnis

    }
  }
 
  public void initFromLine(String s){
    StringTokenizer st = new StringTokenizer(s, ";");
    MannschaftErgebnis me = new MannschaftErgebnis(st.nextToken());
    me.setMannschaftSpiele(new Integer(st.nextToken()));
    me.setManschaftTorePlus(new Integer(st.nextToken()));
    me.setMannschaftToreMinus(new Integer(st.nextToken()));
    st.nextToken();
    me.setMannschaftPunkte(new Integer(st.nextToken()));
   
    addRow(me);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.