Package model

Examples of model.Trener


    super.COLUMNS = TrenerTableModel.COLUMNS;
  }

  @Override
  public Object getValueAt(int arg0, int arg1) {
    Trener trener = objects.get(arg0);
    switch(arg1) {
    case -1:
      return trener.getId();
    case 0:
      return trener.getImie();
    case 1:
      return trener.getNazwisko();
    default:
      return 0;
    }
  }
View Full Code Here


  }

  @Override
  public void setValueAt(Object Value, int rowIndex, int columnIndex) {
   
    Trener trener = objects.get(rowIndex);
    switch(columnIndex) {
    case -1:
      trener.setId((Long)Value);
      break;
    case 0:
      trener.setImie((String)Value);
      break;
    case 1:
      trener.setNazwisko((String)Value);
    }
    fireTableCellUpdated(rowIndex, columnIndex);
  }
View Full Code Here

  }

  private static final long serialVersionUID = -3616695363372287806L;
   
  public Trener getObject() {
    Trener trener = new Trener();
    trener.setImie(((JTextField)textFields.get("imie")).getText());
    trener.setNazwisko(((JTextField)textFields.get("nazwisko")).getText());
    return trener;
  }
View Full Code Here

TOP

Related Classes of model.Trener

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.