Examples of SimpleContainer


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

    ColumnLayout columns = new ColumnLayout(getParent(),2);
   
    {
      // Linke Seite
      Container container = new SimpleContainer(columns.getComposite());
      container.addHeadline(i18n.tr("Einstellungen des Kartenlesers"));
      container.addInput(control.getReaderPresets());
      container.addInput(control.getCTAPI());
      container.addInput(control.getPCSCName());
      container.addInput(control.getPort());
      container.addInput(control.getCTNumber());
    }
   
    {
      // Rechte Seite
      Container container = new SimpleContainer(columns.getComposite());
      container.addHeadline(i18n.tr("Benutzerdaten"));
      container.addInput(control.getHBCIVersion());
      container.addInput(control.getEntryIndex());
    }

    {
      Container container = new SimpleContainer(getParent());
      container.addHeadline(i18n.tr("Erweiterte Einstellungen"));
      container.addInput(control.getBezeichnung());
      container.addInput(control.getSoftPin());
    }

    new Headline(getParent(),i18n.tr("Fest zugeordnete Konten"));
    control.getKontoAuswahl().paint(getParent());
View Full Code Here

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

   */
  protected void paint(Composite parent) throws Exception
  {
    this.list = this.init(this.typ);
   
    Container group = new SimpleContainer(parent,true);
   
    group.addText(i18n.tr("Bitte w�hlen Sie die zu verwendende Kategorie aus."),true);
    TextInput text = this.getSearch();
    group.addInput(text);
    group.addPart(this.getTable());

    ////////////////
    // geht erst nach dem Paint
    if (this.choosen != null)
      this.getTable().select(new FormattedType(this.choosen));
   
   
    text.getControl().addKeyListener(new DelayedAdapter());
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(this.getApplyButton());
    buttons.addButton(i18n.tr("K&eine Kategorie"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        choosen = null;
        close();
      }
    },null,false,"list-remove.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

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 container1 = new SimpleContainer(parent);
    container1.addHeadline(i18n.tr("Wichtiger Hinweis"));
    container1.addText(i18n.tr("F�r einige Banken gelten Sonderregeln f�r die IBAN-Berechnung, die von " +
                               "Hibiscus u.U. nicht unterst�tzt werden." +
                               "\n\nDaher gilt: " +
                               "Bitte verifizieren Sie daher die errechnete IBAN."),true);

    Container container2 = new SimpleContainer(parent);
    container2.addHeadline(i18n.tr("Nationale Bankverbindung"));
    container2.addInput(this.getBlz());
    container2.addInput(this.getKonto());
    container2.addHeadline(i18n.tr("Zugeh�rige SEPA-Bankverbindung"));
    container2.addInput(this.getBic());
    container2.addInput(this.getIban());
    container2.addInput(this.getMessage());

    ButtonArea buttons = new ButtonArea();
   
    buttons.addButton(i18n.tr("Berechnen"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        calc();
      }
    },null,true,"accessories-calculator.png");
    buttons.addButton(i18n.tr("Schlie�en"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        close();
      }
    },null,false,"window-close.png");
    container2.addButtonArea(buttons);
   
    getShell().setMinimumSize(getShell().computeSize(WINDOW_WIDTH,SWT.DEFAULT));
  }
View Full Code Here

Examples of jfun.yan.containers.SimpleContainer

        yan.registerValue(sb);
        yan.verify();
        assertSame(sb, yan.getInstance(StringBuffer.class));
    }
    public void testGettingComponentWithMissingDependencyFails(){
        SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
        try {
            picoContainer.getInstance(DependsOnTouchable.class);
            fail("should need a Touchable");
        } catch (jfun.yan.YanException e) {
          assertEquals(2, e.getResolutionTrace().size());
          assertParameter(e, 0, DependsOnTouchable.class, 0);
        }
View Full Code Here

Examples of jfun.yan.containers.SimpleContainer

          assertEquals(2, e.getResolutionTrace().size());
          assertParameter(e, 0, DependsOnTouchable.class, 0);
        }
    }
    public void testVerifyWithMissingDependencyFails(){
      SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
      try {
          picoContainer.verify();
          fail("should need a Touchable");
      } catch (jfun.yan.YanException e) {
      }
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.SimpleContainer

        "  }",
        "}");
    // place Button on Tab
    CanvasInfo newButton = createJavaInfo("com.smartgwt.client.widgets.Button");
    {
      SimpleContainer simpleContainer = new SimpleContainerFactory(newTab, false).get().get(1);
      assertTrue(simpleContainer.validateComponent(newButton));
      simpleContainer.command_CREATE(newButton);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.SimpleContainer

            "    setLayout(new CenterLayout());",
            "  }",
            "}");
    container.refresh();
    CenterLayoutInfo layout = (CenterLayoutInfo) container.getLayout();
    SimpleContainer simpleContainer = new SimpleContainerFactory(layout, true).get().get(0);
    // empty initially
    assertTrue(simpleContainer.isEmpty());
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(simpleContainer.validateComponent(newButton));
    simpleContainer.command_CREATE(newButton);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new CenterLayout());",
        "    {",
        "      Button button = new Button();",
        "      add(button);",
        "    }",
        "  }",
        "}");
    // has child
    assertFalse(simpleContainer.isEmpty());
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.SimpleContainer

            "// filler filler filler filler filler",
            "<ui:UiBinder>",
            "  <g:SimplePanel/>",
            "</ui:UiBinder>");
    refresh();
    SimpleContainer simpleContainer = getSimpleContainer(panel);
    // no child Widget initially
    assertTrue(simpleContainer.isEmpty());
    // do CREATE
    WidgetInfo newButton = createButton();
    simpleContainer.command_CREATE(newButton);
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:SimplePanel>",
        "    <g:Button width='100%' height='100%'/>",
        "  </g:SimplePanel>",
        "</ui:UiBinder>");
    assertSame(newButton, panel.getWidget());
    assertFalse(simpleContainer.isEmpty());
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.SimpleContainer

        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    SimplePanelInfo panel = getObjectByName("panel");
    WidgetInfo button = getObjectByName("button");
    SimpleContainer simpleContainer = getSimpleContainer(panel);
    // do ADD
    simpleContainer.command_ADD(button);
    assertXML(
        "<ui:UiBinder>",
        "  <g:FlowPanel>",
        "    <g:SimplePanel wbp:name='panel'>",
        "      <g:Button wbp:name='button' width='100%' height='100%'/>",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.SimpleContainer

            "    setLayout(new FitLayout());",
            "  }",
            "}");
    container.refresh();
    FitLayoutInfo layout = (FitLayoutInfo) container.getLayout();
    SimpleContainer simpleContainer = new SimpleContainerFactory(layout, true).get().get(0);
    // empty initially
    assertTrue(simpleContainer.isEmpty());
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(simpleContainer.validateComponent(newButton));
    simpleContainer.command_CREATE(newButton);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
        "    setLayout(new FitLayout());",
        "    {",
        "      Button button = new Button();",
        "      add(button);",
        "    }",
        "  }",
        "}");
    // has child
    assertFalse(simpleContainer.isEmpty());
  }
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.