Package de.willuhn.jameica.gui.parts

Examples of de.willuhn.jameica.gui.parts.ButtonArea


   
    c.addInput(version);
    c.addInput(target);
    c.addInput(msg);
   
    ButtonArea buttons = new ButtonArea();
    this.ok = new Button(i18n.tr("Export starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        painVersion = (PainVersion) version.getValue();
        if (painVersion == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Schema-Version aus."));
          return;
        }
       
        String s = StringUtils.trimToNull((String) target.getValue());
        if (s == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Datei aus"));
          return;
        }
       
        file = new File(s);
        if (file.exists() && file.canRead())
        {
          try
          {
            if (!Application.getCallback().askUser(i18n.tr("Datei existiert bereits. �berschreiben?")))
              return;
          }
          catch (OperationCanceledException oce)
          {
            return;
          }
          catch (Exception e)
          {
            Logger.error("error while asking user to overwrite file",e);
            Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Export fehlgeschlagen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR));
          }
        }
        close();
      }
    },null,true,"ok.png");
    buttons.addButton(ok);
   
    buttons.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
View Full Code Here


          TabGroup tab = new TabGroup(folder,i18n.tr("Anzeige einschr�nken"));
         
          tab.addInput(this.getKontoAuswahl());
          tab.addInput(this.getRange());

          ButtonArea buttons = new ButtonArea();
          buttons.addButton(i18n.tr("Aktualisieren"), new Action()
          {
         
            /**
             * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object)
             */
            public void handleAction(Object context) throws ApplicationException
            {
              reloadListener.handleEvent(new Event());
            }
          },null,true,"view-refresh.png");
         
          buttons.paint(parent);
        }
      }
      else
      {
        Container container = new SimpleContainer(parent);
View Full Code Here

    this.group.addInput(open);

    // BUGZILLA 789
    ExtensionRegistry.extend(this);

    ButtonArea buttons = new ButtonArea();
    Button button = new Button(i18n.tr("Export starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        export();
      }
    },null,true,"ok.png");
    button.setEnabled(exportEnabled);
    buttons.addButton(button);
    buttons.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        close();
      }
View Full Code Here

    container.addHeadline(i18n.tr("Details"));
    container.addInput(control.getZweck());
    container.addInput(control.getZweck2());
    container.addInput(control.getBetrag());

    ButtonArea buttonArea = new ButtonArea();
    buttonArea.addButton(i18n.tr("L�schen"), new DBObjectDelete(),transfer,false,"user-trash-full.png");
    Button store = new Button(i18n.tr("Speichern"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        control.handleStore();
      }
    },null,!transfer.ausgefuehrt(),"document-save.png");
    store.setEnabled(!transfer.ausgefuehrt());
    buttonArea.addButton(store);
   
    buttonArea.paint(getParent());
   
    Application.getMessagingFactory().registerMessageConsumer(this.mc);
  }
View Full Code Here

    details.addLabelPair(i18n.tr("Verwendungszweck"),          control.getZweck());
    details.addLabelPair(i18n.tr("Betrag"),                    control.getBetrag());
    details.addSeparator();
    details.addLabelPair(i18n.tr("Auftragsnummer"),            control.getOrderID());
   
    ButtonArea buttonArea = new ButtonArea();
    String s = i18n.tr("Jetzt ausf�hren...");
    if (da.isActive())
      s = i18n.tr("Jetzt aktualisieren...");

    buttonArea.addButton(i18n.tr("L�schen"),        new SepaDauerauftragDelete(), da, false,"user-trash-full.png");
    buttonArea.addButton(s,                          new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        if (control.handleStore())
          new SepaDauerauftragExecute().handleAction(da);
      }
    },null,false,"emblem-important.png");
    buttonArea.addButton(i18n.tr("Speichern"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        control.handleStore();
      }
    },null,true,"document-save.png");
   
    buttonArea.paint(getParent());
  }
View Full Code Here

    c.addText(i18n.tr("Klicken Sie auf \"Neuer Bank-Zugang...\", um eine neue PIN/TAN- oder " +
                      "Kartenleser-Konfiguration anzulegen oder eine Schl�sseldatei zu erstellen bzw. zu importieren."),true);

    final PassportTree tree = control.getPassports();

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(new Button(i18n.tr("Neuer Bank-Zugang..."),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        new PassportDetail().handleAction(tree.getPassport());
      }
    },null,false,"seahorse-preferences.png"));
    buttons.paint(getParent());

    tree.paint(getParent());
  }
View Full Code Here

   
    EmpfaengerControl control = new EmpfaengerControl(this);
   
    control.getEmpfaengerListe().paint(getParent());

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Neue Adresse"),new EmpfaengerNew(),null,true,"contact-new.png");
    buttons.paint(getParent());
  }
View Full Code Here

    container.addInput(control.getZweck());
    container.addInput(control.getZweck2());
    container.addInput(control.getBetrag());
    container.addInput(control.getTyp());

    ButtonArea buttonArea = new ButtonArea();
    buttonArea.addButton(i18n.tr("L�schen"),new DBObjectDelete(),transfer,false,"user-trash-full.png");
    Button store = new Button(i18n.tr("Speichern"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        control.handleStore();
      }
    },null,!transfer.ausgefuehrt(),"document-save.png");
    store.setEnabled(!transfer.ausgefuehrt());
   
    buttonArea.addButton(store);
   
    buttonArea.paint(getParent());

    Application.getMessagingFactory().registerMessageConsumer(this.mc);
  }
View Full Code Here

   */
  public void bind() throws Exception
  {
    super.bind();

    ButtonArea buttons = new ButtonArea();
   
    Umsatz u = getControl().getUmsatz();
   
    GUI.getView().addPanelButton(new PanelButtonPrint(new PrintSupportUmsatzList(u)));
   
    this.checked = new Button(i18n.tr("Gepr�ft"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        new UmsatzMarkChecked(Umsatz.FLAG_CHECKED,true).handleAction(context);
        checked.setEnabled(false); // nur einmal moeglich
      }
    },u,false,"emblem-default.png");
    checked.setEnabled(!u.hasFlag(Umsatz.FLAG_NOTBOOKED) && !u.hasFlag(Umsatz.FLAG_CHECKED));
    buttons.addButton(checked);
   
    Button ab = null;
    final Address found = getControl().getAddressbookEntry();
    if (found != null)
    {
      ab = new Button(i18n.tr("In Adressbuch �ffnen"),new de.willuhn.jameica.hbci.gui.action.EmpfaengerNew(),found,false,"contact-new.png");
    }
    else
    {
      ab = new Button(i18n.tr("In Adressbuch �bernehmen"),new Action()
      {
        public void handleAction(Object context) throws ApplicationException
        {
          new EmpfaengerAdd().handleAction(getControl().getUmsatz());
        }
      },null,false,"contact-new.png");
    }
    buttons.addButton(ab);

    Button edit = new Button(i18n.tr("Bearbeiten"),new de.willuhn.jameica.hbci.gui.action.UmsatzDetailEdit(),u,false,"text-x-generic.png");
    edit.setEnabled((u.getFlags() & Umsatz.FLAG_NOTBOOKED) == 0);
    buttons.addButton(edit);
   
    Button store = new Button(i18n.tr("Speichern"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        getControl().handleStore();
      }
    },null,false,"document-save.png");
    store.setEnabled((u.getFlags() & Umsatz.FLAG_NOTBOOKED) == 0);
    buttons.addButton(store);

    buttons.paint(getParent());
  }
View Full Code Here

    final KontoControl control = new KontoControl(this);
    GUI.getView().setTitle(i18n.tr("Vorhandene Bankverbindungen"));

    control.getKontoListe().paint(getParent());

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Konten aus HBCI-Konfiguration laden..."), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        control.handleReadFromPassport();
      }
    },null,false,"mail-send-receive.png");
    buttons.addButton(i18n.tr("Konto manuell anlegen"),new KontoNew(),null,false,"system-file-manager.png");
    buttons.paint(getParent());
  }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.gui.parts.ButtonArea

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.