Package org.pocui.example.composites.stammdaten

Examples of org.pocui.example.composites.stammdaten.VisualisiereStammdatenComposite


  /**
   * {@inheritDoc}
   */
  public AbsComposite<VisualisiereStammdatenAC, EmptyResourceConfiguration, VisualisiereStammdatenSelectionInOut> createAbsJPanel() {
    try {
      VisualisiereStammdatenComposite comp = new VisualisiereStammdatenComposite(
          new VisualisiereStammdatenAC());
      KundenFindenAction action = new KundenFindenAction();
      KundenFindenActionSelectionIn inSelection = new KundenFindenActionSelectionIn();
      inSelection.setKundenname("Meier");
      action.setInSelection(inSelection);
      action.performAction(null);

      VisualisiereStammdatenSelectionInOut selection = new VisualisiereStammdatenSelectionInOut();
      selection.setKunden(action.getOutSelection().getKunden());
      selection.setKundenname("Meier");
     
      List<String> laender = new ArrayList<String>();
      laender.add("Hamburg");
      laender.add("Bremen");
      laender.add("Berlin");
      selection.setBundeslaender(laender);

      selection.setHausnummer("12 a");
      selection.setPostleitzahl(20099);
      selection.setSelektiertesBundesland("Hamburg");
      selection.setStrasse("Ulmenstrasse");
      selection.setWohnort("Hamburg");
      List<String> produkte = new ArrayList<String>();
      produkte.add("Natur");
      produkte.add("Mix");
      produkte.add("Extra");
      selection.setProdukte(produkte);

      selection.setSelektiertesProdukt("Mix");
      selection.setVertragsbeginn(System.currentTimeMillis());
      selection.setVertragsende(System.currentTimeMillis());
      selection.setZusatzInfos("Additional Infos");
     
      comp.setSelection(selection);

      return comp;
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.pocui.example.composites.stammdaten.VisualisiereStammdatenComposite

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.