Examples of SimpleContainer


Examples of com.betfair.baseline.v2.to.SimpleContainer

    @KPITimedEvent(value = "Baseline.service.testSimpleTypeReplacement", catchFailures = true)
    @Override
    public SimpleContainer testSimpleTypeReplacement(RequestContext ctx, Integer simpleInt, Double simpleDouble, String simpleString,
                                                     SimpleValidValue simpleEnum, TimeConstraints timeConstraints) throws SimpleException {
        ctx.setRequestLogExtension(new BaselineLogExtension(simpleInt, simpleDouble, simpleEnum));
        SimpleContainer cont = new SimpleContainer();
        cont.setSimpleInt(simpleInt);
        cont.setSimpleDouble(simpleDouble);
        cont.setSimpleString(simpleString);
        cont.setSimpleEnum(simpleEnum);
        return cont;
    }
View Full Code Here

Examples of com.googlecode.yadic.SimpleContainer

    private ConsoleStatus status = Idle;

    public SimpleConsole(ConsoleConfig config) {
        registerShutdownHook();

        context = new SimpleContainer();
        context.addInstance(Container.class, context);
        context.addInstance(Console.class, this);
        context.addInstance(ConsoleHistory.class, historyFromFile(startsWith(":h!").or(blank()), config.historyFile));
        context.addInstance(ConsoleConfig.class, config);
        context.addInstance(Evaluator.class, config.evaluator);
View Full Code Here

Examples of com.netflix.governator.guice.mocks.SimpleContainer

    {
        Injector            injector = lifecycleInjectorBuilder.usingBasePackages(PACKAGES).createInjector();
        LifecycleManager    manager = injector.getInstance(LifecycleManager.class);
        manager.start();

        SimpleContainer     instance = injector.getInstance(SimpleContainer.class);

        Assert.assertEquals(instance.simpleObject.startCount.get(), 1);
        Assert.assertEquals(instance.simpleObject.finishCount.get(), 0);

        manager.close();
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.SimpleContainer

      west.setSize(300);
      west.setCollapsible(true);
      west.setCollapseMini(true);
      ContentPanel sc=new ContentPanel();
      sc.setHeaderVisible(false);
      SimpleContainer sc2=new SimpleContainer();
      border.setWestWidget(sc, west);
      border.setCenterWidget(sc2, new MarginData(3));
      presenter.getJobManagerPresenter().go(sc);
      presenter.getJobDisplayPresenter().go(sc2);
      widget=border;
View Full Code Here

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

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container c = new SimpleContainer(parent);
   
    final SelectInput version = this.getPainVersionInput();
    final FileInput target    = this.getFileInput();
    final LabelInput msg      = this.getMessage();
   
    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();
      }
    },null,false,"process-stop.png");
   
    c.addButtonArea(buttons);
    getShell().setMinimumSize(getShell().computeSize(WINDOW_WIDTH,SWT.DEFAULT));
  }
View Full Code Here

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

      if (this.konto == null)
      {
        if (tiny)
        {
          ColumnLayout layout = new ColumnLayout(parent,2);
          Container left = new SimpleContainer(layout.getComposite());
          left.addInput(this.getKontoAuswahl());
          Container right = new SimpleContainer(layout.getComposite());
          right.addInput(this.getRange());
        }
        else
        {
          final TabFolder folder = new TabFolder(parent, SWT.NONE);
          folder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
          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);
        container.addInput(this.getRange());
      }
     
      this.chart = new LineChart();
     
//      if (this.tiny)
View Full Code Here

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

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    this.group = new SimpleContainer(parent);
    this.group.addText(i18n.tr("Bitte w�hlen Sie das gew�nschte Dateiformat aus f�r den Export aus"),true);

    Input formats = getExporterList();
    this.group.addInput(formats);
   
View Full Code Here

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


    GUI.getView().setTitle(i18n.tr("Lastschrift bearbeiten"));
    GUI.getView().addPanelButton(new PanelButtonPrint(new PrintSupportLastschrift(transfer)));
   
    Container c1 = new SimpleContainer(getParent());
    c1.addHeadline(i18n.tr("Konto"));
    c1.addInput(control.getKontoAuswahl());

    ColumnLayout cols = new ColumnLayout(getParent(),2);

    // Linke Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Zahlungspflichtiger"));
      container.addInput(control.getEmpfaengerName());
      container.addInput(control.getEmpfaengerKonto());
      container.addInput(control.getEmpfaengerBlz());
      container.addCheckbox(control.getStoreEmpfaenger(),i18n.tr("In Adressbuch �bernehmen"));
    }
   
    // Rechte Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Sonstige Informationen"));
      container.addInput(control.getTextSchluessel());
      container.addInput(control.getTermin());
      container.addInput(control.getReminderInterval());
    }
   
    Container container = new SimpleContainer(getParent());
    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 {
View Full Code Here

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

      GUI.getView().setTitle(i18n.tr("Buchungsdetails. {0}",s1));
    else
      GUI.getView().setTitle(i18n.tr("Buchungsdetails. {0}, Saldo: {1}",new String[]{s1,s2}));

    ColumnLayout columns = new ColumnLayout(getParent(),2);
    SimpleContainer left = new SimpleContainer(columns.getComposite());

    // BUGZILLA 23 http://www.willuhn.de/bugzilla/show_bug.cgi?id=23
    left.addHeadline(i18n.tr("Gegenkonto"));
    left.addLabelPair(i18n.tr("Inhaber"),                       control.getEmpfaengerName());
    left.addLabelPair(i18n.tr("Kontonummer"),                   control.getEmpfaengerKonto());
    left.addLabelPair(i18n.tr("BLZ"),                           control.getEmpfaengerBLZ());

    left.addHeadline(i18n.tr("Datum und Betrag"));
    left.addLabelPair(i18n.tr("Datum"),                         control.getDatum());
    left.addLabelPair(i18n.tr("Valuta"),                        control.getValuta());
    left.addSeparator();
    left.addLabelPair(i18n.tr("Betrag"),                        control.getBetrag());
    left.addLabelPair(i18n.tr("Neuer Saldo"),                   control.getSaldo());

    SimpleContainer right = new SimpleContainer(columns.getComposite(),true);
    right.addHeadline(i18n.tr("Sonstige Informationen"));
    right.addLabelPair(i18n.tr("Art der Buchung"),              control.getArt());
    right.addLabelPair(i18n.tr("Kundenreferenz"),               control.getCustomerRef());
    right.addLabelPair(i18n.tr("Primanota-Kennzeichen"),        control.getPrimanota());
    right.addLabelPair(i18n.tr("Gesch�ftsvorfall-Code"),        control.getGvCode());

    right.addHeadline(i18n.tr("Notizen"));
    right.addPart(control.getKommentar());

    SimpleContainer bottom = new SimpleContainer(getParent(),true);
    bottom.addSeparator();
    bottom.addLabelPair(i18n.tr("Kategorie"),                   control.getUmsatzTyp());
    bottom.addHeadline(i18n.tr("Verwendungszweck"));
    bottom.addPart(control.getZweck());
  }
View Full Code Here

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

    this.transfer = control.getTransfer();

    GUI.getView().setTitle(i18n.tr("SEPA-Lastschrift bearbeiten"));
    GUI.getView().addPanelButton(new PanelButtonPrint(new PrintSupportSepaLastschrift(transfer)));
   
    Container cl = new SimpleContainer(getParent());
    cl.addHeadline(i18n.tr("Konto"));
    cl.addInput(control.getKontoAuswahl());
   
    ColumnLayout cols = new ColumnLayout(getParent(),2);
   
    // Linke Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Zahlungspflichtiger"));
      container.addLabelPair(i18n.tr("Name"), control.getEmpfaengerName());
      container.addLabelPair(i18n.tr("IBAN"), control.getEmpfaengerKonto());   
      container.addLabelPair(i18n.tr("BIC"),  control.getEmpfaengerBic());
      container.addCheckbox(control.getStoreEmpfaenger(),i18n.tr("In Adressbuch �bernehmen"));

      container.addHeadline(i18n.tr("SEPA"));
      container.addText(i18n.tr("Bitte beachten Sie die Vorlauffristen."),true);
      container.addInput(control.getType());
      container.addInput(control.getTargetDate());
      container.addInput(control.getEndToEndId());
      container.addInput(control.getPmtInfId());
    }
   
    // Rechte Seite
    {
      Container container = new SimpleContainer(cols.getComposite());
      container.addHeadline(i18n.tr("Mandat"));
      container.addInput(control.getCreditorId());
      container.addInput(control.getMandateId());
      container.addInput(control.getSignatureDate());
      container.addInput(control.getSequenceType());
      container.addHeadline(i18n.tr("Sonstige Informationen (nur Hibiscus-intern)"));
      container.addText(i18n.tr("Diese Daten werden nicht an die Bank �bertragen."),true);
      container.addInput(control.getTermin());
      container.addInput(control.getReminderInterval());
    }

    Container container = new SimpleContainer(getParent());
    container.addHeadline(i18n.tr("Details"));
    container.addLabelPair(i18n.tr("Verwendungszweck"),  control.getZweck());
    container.addLabelPair(i18n.tr("Betrag"),           control.getBetrag());

    ButtonArea buttonArea = new ButtonArea();
    buttonArea.addButton(i18n.tr("L�schen"),new DBObjectDelete(),transfer,false,"user-trash-full.png");
    buttonArea.addButton(i18n.tr("Duplizieren..."), new Action() {
      public void handleAction(Object context) throws ApplicationException
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.