Package org.apache.wicket.markup.html.border

Examples of org.apache.wicket.markup.html.border.Border


    assertNotNull(label);
    attr = label.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("label", attr.getString("wicket:id"));

    Border border = (Border)page.get("myBorder");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder", attr.getString("wicket:id"));

    border = (Border)page.get("myBorder2");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder2", attr.getString("wicket:id"));

    // do the same test twice. Igor reported a problem with that, so we have to test it.
    border = (Border)page.get("myBorder2");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder2", attr.getString("wicket:id"));

    WebMarkupContainer container = (WebMarkupContainer)page.get("test");
    assertNotNull(container);
View Full Code Here


    Form<?> form = component.findParent(Form.class);
    if (form == null)
    {
      // check whether the form is a child of a surrounding border
      final Border border = component.findParent(Border.class);
      if (border != null)
      {
        FindFormVisitor formVisitor = new FindFormVisitor();
        border.visitChildren(Form.class, formVisitor);
        form = formVisitor.form;
      }
    }
    return form;
View Full Code Here

    document = tester.getServletResponse().getDocument();
    assertNotNull(document);
    assertFalse("".equals(document));
    assertEquals("<span wicket:id=\"label\">mein Label</span>", document);

    Border border = (Border)tester.getLastRenderedPage().get("myBorder");
    assertNotNull(border);
    tester.processRequestCycle(border);
    document = tester.getServletResponse().getDocument();
    assertNotNull(document);
    assertFalse("".equals(document));
View Full Code Here

    document = tester.getServletResponse().getDocument();
    assertNotNull(document);
    assertFalse("".equals(document));
    assertEquals("<span wicket:id=\"label\">mein Label</span>", document);

    Border border = (Border)page.get("myBorder");
    assertNotNull(border);
    tester.processRequestCycle(border);
    document = tester.getServletResponse().getDocument();
    assertNotNull(document);
    assertFalse("".equals(document));
View Full Code Here

    assertNotNull(label);
    attr = label.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("label", attr.getString("wicket:id"));

    Border border = (Border)page.get("myBorder");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder", attr.getString("wicket:id"));

    border = (Border)page.get("myBorder2");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder2", attr.getString("wicket:id"));

    // do the same test twice. Igor reported a problem with that, so we have to test it.
    border = (Border)page.get("myBorder2");
    assertNotNull(border);
    attr = border.getMarkupAttributes();
    assertNotNull(attr);
    assertEquals("myBorder2", attr.getString("wicket:id"));

    WebMarkupContainer container = (WebMarkupContainer)page.get("test");
    assertNotNull(container);
View Full Code Here

    Form<?> form = component.findParent(Form.class);
    if (form == null)
    {
      // check whether the form is a child of a surrounding border
      final Border border = component.findParent(Border.class);
      if (border != null)
      {
        FindFormVisitor formVisitor = new FindFormVisitor();
        border.visitChildren(Form.class, formVisitor);
        form = formVisitor.form;
      }
    }
    return form;
View Full Code Here

    Form form = (Form)findParent(Form.class);
    if (form == null)
    {
      // check whether the form is a child of a surrounding border
      final Border border = (Border)findParent(Border.class);
      if (border != null)
      {
        FindFormVisitor formVisitor = new FindFormVisitor();
        border.visitChildren(Form.class, formVisitor);
        form = formVisitor.form;
      }
      if (form == null)
      {
        throw new WicketRuntimeException("Could not find Form parent for " + this);
View Full Code Here

    Form<?> form = component.findParent(Form.class);
    if (form == null)
    {
      // check whether the form is a child of a surrounding border
      Border border = component.findParent(Border.class);
      while ((form == null) && (border != null))
      {
        FindFormVisitor formVisitor = new FindFormVisitor();
        border.visitChildren(Form.class, formVisitor);
        form = formVisitor.form;
        if (form == null)
        {
          border = border.findParent(Border.class);
        }
      }
    }
    return form;
View Full Code Here

    Form<?> form = component.findParent(Form.class);
    if (form == null)
    {
      // check whether the form is a child of a surrounding border
      final Border border = component.findParent(Border.class);
      if (border != null)
      {
        FindFormVisitor formVisitor = new FindFormVisitor();
        border.visitChildren(Form.class, formVisitor);
        form = formVisitor.form;
      }
    }
    return form;
View Full Code Here

  /**
   * Construct.
   */
  public EnclosurePage_3()
  {
    Border border = new MyBorder("border");
    add(border);

    border.add(new Link("newLink")
    {
      private static final long serialVersionUID = 1L;

      @Override
      public void onClick()
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.border.Border

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.