Package de.willuhn.jameica.gui.util

Examples of de.willuhn.jameica.gui.util.Container


  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container ct = new SimpleContainer(parent,true);
    ct.addText(i18n.tr("Bei einer regelm��igen Wiederholung wird der Auftrag " +
                       "im angegebenen Intervall (beginnend mit dem ersten " +
                       "F�lligkeitstermin) automatisch durch Hibiscus " +
                       "dupliziert"),true);

    final Listener listener = new Listener() {
      public void handleEvent(Event event)
      {
        updatePreview();
      }
    };
   

    ////////////////////////////////////////////////////////////////////////////
    // Die Buttons
    final Button apply = new Button(i18n.tr("�bernehmen"), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        boolean enabled = ((Boolean)checkbox.getValue()).booleanValue();
        interval = (enabled) ? (ReminderInterval) input.getValue() : null;
        close();
      }
    },null,true,"ok.png");
    final Button cancel = new Button(i18n.tr("Abbrechen"), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");
    //
    ////////////////////////////////////////////////////////////////////////////

   
    ////////////////////////////////////////////////////////////////////////////
    // Checkbox
    this.checkbox = new CheckboxInput(this.interval != null);
    this.checkbox.setName(i18n.tr("Auftrag regelm��ig wiederholen"));
    this.checkbox.addListener(listener);
    ////////////////////////////////////////////////////////////////////////////
   
    ////////////////////////////////////////////////////////////////////////////
    // Intervalle
    this.input = new ReminderIntervalInput(this.interval);
    this.input.addListener(listener);
    ////////////////////////////////////////////////////////////////////////////
   
    TextInput startInput = new TextInput(HBCI.DATEFORMAT.format(this.start));
    startInput.setEnabled(false);
    startInput.setName("Erste Ausf�hrung");

   
    ////////////////////////////////////////////////////////////////////////////
    // End-Datum
    this.error = new LabelInput("");
    this.error.setName("");
    this.error.setColor(Color.ERROR);
   
    this.endInput = new DateInput(this.end,HBCI.DATEFORMAT);
    this.endInput.setName(i18n.tr("Letzte Ausf�hrung"));
    this.endInput.addListener(new Listener() {
      public void handleEvent(Event event)
      {
        Date myEnd = (Date) endInput.getValue();
        if (myEnd != null && !myEnd.after(start))
        {
          error.setValue(i18n.tr("End-Datum liegt vor Start-Datum"));
          preview.removeAll();
          apply.setEnabled(false);
        }
        else
        {
          error.setValue("");
          apply.setEnabled(true);
        }
      }
    });
    this.endInput.addListener(listener);
    ////////////////////////////////////////////////////////////////////////////

    ////////////////////////////////////////////////////////////////////////////
    // Preview
    this.preview = new TablePart(null);
    this.preview.addColumn(i18n.tr("Vorschau auf die ersten 10 Folge-Termine"),null);
    this.preview.setSummary(false);
    this.preview.setFormatter(new TableFormatter() {
      public void format(TableItem item)
      {
        Date d = (Date) item.getData();
        item.setText(d != null ? HBCI.DATEFORMAT.format(d) : "-");
      }
    });
    ////////////////////////////////////////////////////////////////////////////
   
    this.updatePreview(); // einmal initial aktualisieren

    ct.addInput(this.checkbox);
    ct.addInput(this.input);
    ct.addInput(startInput);
    ct.addInput(this.endInput);
    ct.addInput(this.error);
    ct.addPart(this.preview);

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(apply);
    buttons.addButton(cancel);
    ct.addButtonArea(buttons);
  }
View Full Code Here


  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
    group.addHeadline(i18n.tr("Details des SEPA-Dauerauftrages"));
     
    Input kto = new LabelInput(auftrag.getKonto().getKontonummer());
    kto.setComment(auftrag.getKonto().getBezeichnung());
    group.addLabelPair(i18n.tr("Eigenes Konto"),kto);

    Input empfName = new LabelInput(auftrag.getGegenkontoName());
    group.addLabelPair(i18n.tr("Name des Empf�nger"),empfName);

    Input empfKto = new LabelInput(HBCIProperties.formatIban(auftrag.getGegenkontoNummer()));
    group.addLabelPair(i18n.tr("IBAN des Empf�ngers"),empfKto);

    Input empfBic = new LabelInput(auftrag.getGegenkontoBLZ());
    group.addLabelPair(i18n.tr("BIC des Empf�ngers"),empfBic);

    LabelInput betrag = new LabelInput(HBCI.DECIMALFORMAT.format(auftrag.getBetrag()) + " " + auftrag.getKonto().getWaehrung());
    betrag.setColor(Color.ERROR);
    group.addLabelPair(i18n.tr("Betrag"),betrag);

    group.addSeparator();

    Date e = auftrag.getErsteZahlung();
    String se = i18n.tr("Zum n�chstm�glichen Termin");
    if (e != null) se = HBCI.DATEFORMAT.format(e);
    Input ersteZahlung = new LabelInput(se);
    group.addLabelPair(i18n.tr("Erste Zahlung"),ersteZahlung);

    Date l = auftrag.getLetzteZahlung();
    String sl = i18n.tr("keine End-Datum vorgegeben");
    if (l != null) sl = HBCI.DATEFORMAT.format(l);
    Input letzteZahlung = new LabelInput(sl);
    group.addLabelPair(i18n.tr("Letzte Zahlung"),letzteZahlung);

    Input turnus = new LabelInput(TurnusHelper.createBezeichnung(auftrag.getTurnus()));
    group.addLabelPair(i18n.tr("Zahlungsturnus"),turnus);

    group.addHeadline(i18n.tr("Verwendungszweck"));
    group.addText(VerwendungszweckUtil.toString(auftrag,"\n"),false);

    group.addSeparator();
   
    if (auftrag.isActive())
      group.addText(i18n.tr("Sind Sie sicher, da� Sie diese �nderungen jetzt zur Bank senden wollen?") + "\n",true);
    else
      group.addText(i18n.tr("Sind Sie sicher, da� Sie diesen Dauerauftrag jetzt ausf�hren wollen?") + "\n",true);
   
    super.paint(parent);
    getShell().setMinimumSize(getShell().computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
    group.addHeadline(i18n.tr("Details der SEPA-�berweisung"));
     
    Input kto = new LabelInput(ueb.getKonto().getKontonummer());
    kto.setComment(ueb.getKonto().getBezeichnung());
    group.addLabelPair(i18n.tr("Eigenes Konto"),kto);

    Input empfName = new LabelInput(ueb.getGegenkontoName());
    group.addLabelPair(i18n.tr("Name des Empf�nger"),empfName);

    Input empfKto = new LabelInput(HBCIProperties.formatIban(ueb.getGegenkontoNummer()));
    group.addLabelPair(i18n.tr("IBAN des Empf�ngers"),empfKto);

    Input empfBic = new LabelInput(ueb.getGegenkontoBLZ());
    group.addLabelPair(i18n.tr("BIC des Empf�ngers"),empfBic);


    LabelInput betrag = new LabelInput(HBCI.DECIMALFORMAT.format(ueb.getBetrag()) + " " + ueb.getKonto().getWaehrung());
    betrag.setColor(Color.ERROR);
    group.addLabelPair(i18n.tr("Betrag"),betrag);

    if (ueb.isTerminUeberweisung())
    {
      Input termin = new LabelInput(HBCI.DATEFORMAT.format(ueb.getTermin()));
      group.addLabelPair(i18n.tr("F�llig am"),termin);
    }

    group.addHeadline(i18n.tr("Verwendungszweck"));
    group.addText(VerwendungszweckUtil.toString(ueb,"\n"),false);
   
    super.paint(parent);
    getShell().setMinimumSize(getShell().computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
    group.addHeadline(i18n.tr("Details der �berweisung"));
     
    Input kto = new LabelInput(ueb.getKonto().getKontonummer());
    kto.setComment(ueb.getKonto().getBezeichnung());
    group.addLabelPair(i18n.tr("Eigenes Konto"),kto);

    Input empfName = new LabelInput(ueb.getGegenkontoName());
    group.addLabelPair(i18n.tr("Name des Empf�nger"),empfName);

    Input empfKto = new LabelInput(ueb.getGegenkontoNummer());
    empfKto.setComment(ueb.getGegenkontoBLZ() + "/" + HBCIProperties.getNameForBank(ueb.getGegenkontoBLZ()));
    group.addLabelPair(i18n.tr("Konto des Empf�ngers"),empfKto);

    LabelInput betrag = new LabelInput(HBCI.DECIMALFORMAT.format(ueb.getBetrag()) + " " + ueb.getKonto().getWaehrung());
    betrag.setColor(Color.ERROR);
    group.addLabelPair(i18n.tr("Betrag"),betrag);

    if (ueb.isTerminUeberweisung())
    {
      Input termin = new LabelInput(HBCI.DATEFORMAT.format(ueb.getTermin()));
      group.addLabelPair(i18n.tr("F�llig am"),termin);
    }

    group.addHeadline(i18n.tr("Verwendungszweck"));
    group.addText(VerwendungszweckUtil.toString(ueb,"\n"),false);

    super.paint(parent);
    getShell().setMinimumSize(getShell().computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container group = new SimpleContainer(parent);
   
    group.addText(i18n.tr("Bitte w�hlen Sie das gew�nschte PIN/TAN-Verfahren"),true);
   
    group.addLabelPair(i18n.tr("Bezeichnung"), getType());
    group.addCheckbox(getSave(),i18n.tr("Auswahl speichern"));
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("�bernehmen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
          choosen = (PtSecMech) getType().getValue();
         
          if (choosen != null)
          {
            Boolean b = (Boolean) getSave().getValue();
            if (getSave().isEnabled() && b.booleanValue())
            {
              // BUGZILLA 218
              try
              {
                Application.getCallback().notifyUser(
                    i18n.tr("Sie k�nnen diese Vorauswahl sp�ter in der PIN/TAN-Konfiguration\n" +
                             "�ber die Option \"TAN-Verfahren zur�cksetzen\" wieder\n" +
                             "r�ckg�ngig machen."));
              }
              catch (Exception e)
              {
                Logger.error("unable to notify user",e);
              }
              if (config != null)
                config.setSecMech(choosen.getId());
            }
          }
          close();
        }
        catch (RemoteException e)
        {
          Logger.error("unable to apply data",e);
          throw new ApplicationException(i18n.tr("Fehler beim �bernehmen des PIN/TAN-Verfahrens"));
        }
      }
    },null,true,"ok.png");
    buttons.addButton(i18n.tr("Abbrechen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");
   
    group.addButtonArea(buttons);
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container container = new SimpleContainer(parent,true,1);
    this.ewz.paint(container.getComposite());

    ButtonArea buttons = new ButtonArea();
    Button apply = new Button(i18n.tr("�bernehmen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
          lines = ewz.getTexts();
          close();
        }
        catch (RemoteException re)
        {
          Logger.error("unable to apply data",re);
          throw new ApplicationException(i18n.tr("Fehler beim �bernehmen der Verwendungszwecke"));
        }
      }
    },null,true,"ok.png");
    apply.setEnabled(!this.readOnly);
   
    buttons.addButton(apply);
    buttons.addButton(i18n.tr("Abbrechen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");
   
    container.addButtonArea(buttons);
  }
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container container = new SimpleContainer(parent);
   
    createCaptcha(container);
   
    container.addInput(this.getSolution());
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(this.getApplyButton());
    buttons.addButton(i18n.tr("Abbrechen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException("Dialog abgebrochen");
      }
    },null,false,"process-stop.png");
    container.addButtonArea(buttons);

    // Apply-Button erst freischalten, wenn eine Loesung eingegeben wurde
    getSolution().getControl().addKeyListener(new KeyAdapter()
    {
      public void keyReleased(KeyEvent e)
View Full Code Here

     
      this.left.addInput(this.getKonto());
    }
   
    {
      Container right = new SimpleContainer(cols.getComposite());
     
      right.addInput(this.getRange());
      MultiInput range = new MultiInput(this.getFrom(),this.getTo());
      right.addInput(range);
    }

    this.buttons.addButton(i18n.tr("Aktualisieren"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
View Full Code Here

  public void bind() throws Exception
  {
    GUI.getView().setTitle(i18n.tr("PIN/TAN-Konfigurationen"));
    final Controller control = new Controller(this);

    Container c = new SimpleContainer(getParent());
    c.addText(i18n.tr("Klicken Sie auf \"PIN/TAN-Zugang anlegen\", um einen neuen Bank-Zugang �ber das PIN/TAN-Verfahren einzurichten."),true);

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("PIN/TAN-Zugang anlegen"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
View Full Code Here

  /**
   * @see de.willuhn.jameica.gui.dialogs.PasswordDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container container = new SimpleContainer(parent);
    container.addHeadline(i18n.tr("Flicker-Grafik"));
    container.addText(i18n.tr("Klicken Sie \"-\" bzw. \"+\", um die Breite anzupassen."),true);
   
    FlickerPart flicker = new FlickerPart(this.code);
    flicker.paint(parent);
   
    // Hier stehen dann noch die Anweisungen von der Bank drin
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.gui.util.Container

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.