Examples of UmsatzTypControl


Examples of de.willuhn.jameica.hbci.gui.controller.UmsatzTypControl

  /**
   * @see de.willuhn.jameica.gui.AbstractView#bind()
   */
  public void bind() throws Exception
  {
    final UmsatzTypControl control = new UmsatzTypControl(this);

    GUI.getView().setTitle(i18n.tr("Umsatz-Kategorie"));
   
    LabelGroup group = new LabelGroup(getParent(),i18n.tr("Eigenschaften"));
    group.addLabelPair(i18n.tr("Bezeichnung"), control.getName());
   
    group.addCheckbox(control.getCustomColor(),i18n.tr("Benutzerdefinierte Farbe"));
    group.addLabelPair(i18n.tr("Farbe"), control.getColor());
   
    group.addLabelPair(i18n.tr("�bergeordnete Kategorie"), control.getParent());
    group.addLabelPair(i18n.tr("Reihenfolge"), control.getNummer());
    group.addLabelPair(i18n.tr("Suchbegriff"), control.getPattern());
    group.addCheckbox(control.getRegex(),i18n.tr("Suchbegriff ist ein regul�rer Ausdruck"));
    group.addSeparator();
    group.addLabelPair(i18n.tr("Art des Umsatzes"), control.getArt());

   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("L�schen"),   new DBObjectDelete(),control.getCurrentObject(),false,"user-trash-full.png");
    buttons.addButton(i18n.tr("Duplizieren..."), new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        if (control.handleStore())
        {
          try
          {
            new Duplicate().handleAction(control.getUmsatzTyp());
          }
          catch (RemoteException re)
          {
            Logger.error("unable to duplicate data",re);
            throw new ApplicationException(i18n.tr("Duplizieren fehlgeschlagen: {0}",re.getMessage()));
          }
        }
      }
    },null,false,"edit-copy.png");
    buttons.addButton(i18n.tr("Speichern"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        control.handleStore();
      }
    },null,true,"document-save.png");
   
    buttons.paint(getParent());
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.gui.controller.UmsatzTypControl

   * @param position
   */
  public UmsatzTypNewDialog(int position)
  {
    super(position);
    this.control = new UmsatzTypControl(null);
    this.i18n = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getI18N();
    setTitle(i18n.tr("Umsatz-Kategorie speichern"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.