Package de.willuhn.jameica.gui.parts

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


    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Ums�tze importieren..."), new UmsatzImport(),control.getKonto(),false,"document-open.png");

    int flags = control.getKonto().getFlags();

    Button fetch = null;

    if ((flags & Konto.FLAG_OFFLINE) == Konto.FLAG_OFFLINE)
      fetch = new Button(i18n.tr("Umsatz anlegen"), new UmsatzDetailEdit(),control.getKonto(),false,"emblem-documents.png");
    else
      fetch = new Button(i18n.tr("Ums�tze abrufen"), new KontoFetchUmsaetze(),control.getKonto(),false,"mail-send-receive.png");
   
    fetch.setEnabled((flags & Konto.FLAG_DISABLED) != Konto.FLAG_DISABLED);
    buttons.addButton(fetch);

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


    TabGroup tab2 = new TabGroup(folder,i18n.tr("Saldo im Verlauf"),false,1);
    control.getSaldoChart().paint(tab2.getComposite());

    ButtonArea buttons = new ButtonArea();

    Button fetch = null;

    Konto konto = control.getKonto();
    if (konto.hasFlag(Konto.FLAG_OFFLINE))
    {
      fetch = new Button(i18n.tr("Umsatz anlegen"), new UmsatzDetailEdit(),konto,false,"emblem-documents.png");

      // Checken, ob wir fuer das Konto den neuen Synchronize-Support haben
      if (synchronizeEngine.supports(SynchronizeJobKontoauszug.class,konto))
      {
        Button sync = new Button(i18n.tr("Saldo und Ums�tze abrufen"), new KontoFetchUmsaetze(),konto,false,"mail-send-receive.png");
        sync.setEnabled(!konto.hasFlag(Konto.FLAG_DISABLED));
        buttons.addButton(sync);
      }
      else // Fallback auf das alte Verfahren
      {
        Button sync = new Button(i18n.tr("via Scripting synchronisieren"), new KontoSyncViaScripting(),konto,false,"mail-send-receive.png");
        sync.setEnabled(!konto.hasFlag(Konto.FLAG_DISABLED));
        buttons.addButton(sync);
      }
    }
    else
    {
      fetch = new Button(i18n.tr("Saldo und Ums�tze abrufen"), new KontoFetchUmsaetze(),konto,false,"mail-send-receive.png");
    }
    fetch.setEnabled(!konto.hasFlag(Konto.FLAG_DISABLED));
    buttons.addButton(fetch);
   
    buttons.addButton(i18n.tr("Alle Ums�tze anzeigen"),new UmsatzList(),konto,false,"text-x-generic.png");
View Full Code Here

        if (control.handleStore())
          new Duplicate().handleAction(transfer);
      }
    },null,false,"edit-copy.png");

    Button add = new Button(i18n.tr("Neue Buchungen hinzuf�gen"), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        if (control.handleStore())
          new de.willuhn.jameica.hbci.gui.action.SepaSammelUeberweisungBuchungNew().handleAction(transfer);
      }
    },null,false,"text-x-generic.png");
    add.setEnabled(!transfer.ausgefuehrt());
   
    Button execute = new Button(i18n.tr("Jetzt ausf�hren..."), new Action() {
      public void handleAction(Object context) throws ApplicationException {
        if (control.handleStore())
          new SepaSammelUeberweisungExecute().handleAction(transfer);
      }
    },null,false,"emblem-important.png");
    execute.setEnabled(!transfer.ausgefuehrt());
   
    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());
   
    buttons.addButton(add);
    buttons.addButton(execute);
    buttons.addButton(store);
   
View Full Code Here

    group.addText("\n",true);
    group.addInput(printers);
    group.addInput(getError());
   
    ButtonArea buttons = new ButtonArea();
    Button print = new Button(i18n.tr("Drucken"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        print();
        close();
      }
    },null,true,"document-print.png");
    print.setEnabled((printers instanceof SelectInput)); // Drucken nur moeglich, wenn Drucker vorhanden.
    buttons.addButton(print);
   
    buttons.addButton(i18n.tr("Speichern unter..."),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
View Full Code Here

  public Button getSynchronizeOptions() throws RemoteException
  {
    if (this.synchronizeOptions != null)
      return this.synchronizeOptions;

    this.synchronizeOptions = new Button(i18n.tr("Synchronisierungsoptionen"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
          SynchronizeOptionsDialog d = new SynchronizeOptionsDialog(getKonto(),SynchronizeOptionsDialog.POSITION_CENTER);
View Full Code Here

  public Button getProtoButton() throws RemoteException
  {
    if (this.protoButton != null)
      return this.protoButton;
   
    this.protoButton = new Button(i18n.tr("Protokoll des Kontos"),new de.willuhn.jameica.hbci.gui.action.ProtokollList(),this.getKonto(),false,"dialog-information.png");
    this.protoButton.setEnabled(!this.getKonto().isNewObject());
    return this.protoButton;
  }
View Full Code Here

  public Button getDelButton() throws RemoteException
  {
    if (this.delButton != null)
      return this.delButton;
   
    this.delButton = new Button(i18n.tr("Konto l�schen"),new KontoDelete(),this.getKonto(),false,"user-trash-full.png");
    this.delButton.setEnabled(!this.getKonto().isNewObject());
    return this.delButton;
  }
View Full Code Here

    Input formats = getImporterList();
    group.addLabelPair(i18n.tr("Verf�gbare Formate:"),formats);

    ButtonArea buttons = new ButtonArea();
    Button button = new Button(i18n.tr("Import starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        doImport();
      }
    },null,true,"ok.png");
    button.setEnabled(!(formats instanceof LabelInput));
    buttons.addButton(button);
    buttons.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
View Full Code Here

  private Button getApplyButton()
  {
    if (this.apply != null)
      return this.apply;
   
    this.apply = new Button(i18n.tr("�bernehmen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        choosen = preselected;
        close();
View Full Code Here

        {
          Logger.error("unable to remove bookings",re);
        }
      }
    },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());
   
    buttons.addButton(store);
   
    buttons.paint(getParent());
View Full Code Here

TOP

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

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.