Package Logica

Examples of Logica.Rekening


    return fData.size();
  }

  @Override
  public Object getValueAt(int row, int colm) {
    Rekening temp = fData.get(row);
    switch (colm) {
    case 0:
      return row+1;
    case 1:
      return temp.getName();
    case 2:
      return temp.getTafel();
    case 3:
      return temp.getSize();
    case 4:
      try {
        return "€" + DecimalPlaces.set2decimals(temp.getTotaal());
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    case 5:
      try {
        return "€" + DecimalPlaces.set2decimals(temp.getSubTotaal());
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    default:
View Full Code Here


    });
  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Rekening rek;
    if(comboBox.getSelectedItem() != ""){
      rek = fMap.get(comboBox.getSelectedItem());
      fGUI.open(new BestelFrom(fKassa, fGUI, rek.getTafel()));
    }else if(isNumeric(textField.getText())){
      int tafel = Integer.parseInt(textField.getText());
      if(fKassa.existingTafel(tafel)){
        try {
          rek = Rekening.getRekeningFromTafel(tafel, fKassa.getDB());
          fGUI.open(new BestelFrom(fKassa, fGUI, rek.getTafel()));
        } catch (Exception e) {
          e.printStackTrace();
          return;
        }
      }else{
View Full Code Here

TOP

Related Classes of Logica.Rekening

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.