Package org.apache.wicket.markup.html

Examples of org.apache.wicket.markup.html.WebMarkupContainer


   * @return The indentation component
   */
  protected Component newIndentation(final MarkupContainer parent, final String id,
    final TreeNode node, final int level)
  {
    WebMarkupContainer result = new WebMarkupContainer(id)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
       */
      @Override
      public void onComponentTagBody(final MarkupStream markupStream,
        final ComponentTag openTag)
      {
        Response response = RequestCycle.get().getResponse();
        TreeNode parent = node.getParent();

        CharSequence urls[] = new CharSequence[level];
        for (int i = 0; i < level; ++i)
        {
          if (isNodeLast(parent))
          {
            urls[i] = "indent-blank";
          }
          else
          {
            urls[i] = "indent-line";
          }

          parent = parent.getParent();
        }

        for (int i = level - 1; i >= 0; --i)
        {
          response.write("<span class=\"" + urls[i] + "\"></span>");
        }
      }
    };
    result.setRenderBodyOnly(true);
    return result;
  }
View Full Code Here


   * @return The component that represents a junction
   */
  protected MarkupContainer newJunctionImage(final MarkupContainer parent, final String id,
    final TreeNode node)
  {
    return (MarkupContainer)new WebMarkupContainer(id)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
 
View Full Code Here

        }
      });
    }
    else
    {
      junctionLink = new WebMarkupContainer(id)
      {
        private static final long serialVersionUID = 1L;

        /**
         * {@inheritDoc}
 
View Full Code Here

   * @return The web component that represents the icon of the current node
   */
  protected Component newNodeIcon(final MarkupContainer parent, final String id,
    final TreeNode node)
  {
    return new WebMarkupContainer(id)
    {
      private static final long serialVersionUID = 1L;

      /**
       * {@inheritDoc}
 
View Full Code Here

     */
    public TestPage()
    {
      callbackBehavior = new TestCallbackBehavior();

      container = new WebMarkupContainer("container");
      container.add(new TestTemporaryBehavior());
      container.add(callbackBehavior);
      add(container);

    }
View Full Code Here

    private static final long serialVersionUID = 1L;

    public TestContainer()
    {
      super("A");
      WebMarkupContainer b = new WebMarkupContainer("B");
      WebMarkupContainer c = new WebMarkupContainer("C");
      WebMarkupContainer d = new WebMarkupContainer("D");
      WebMarkupContainer e = new WebMarkupContainer("E");
      WebMarkupContainer f = new WebMarkupContainer("F");
      WebMarkupContainer g = new MarkedWebMarkupContainer("G");
      WebMarkupContainer h = new WebMarkupContainer("H");
      add(b);
      add(c);
      c.add(d);
      c.add(e);
      e.add(f);
View Full Code Here

        return "0; url=" + urlModel.getObject();
      }

    }));
    add(meta);
    WebMarkupContainer link = new WebMarkupContainer("link");
    link.add(AttributeModifier.replace("href", urlModel));
    add(link);

    browserInfoForm = new BrowserInfoForm("postback")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

    upload = new WebComponent("upload");
    upload.setOutputMarkupId(true);
    add(upload);

    container = new WebMarkupContainer("container");
    container.setOutputMarkupId(true);
    add(container);

    container.add(new Label("caption", new CaptionModel()));
  }
View Full Code Here

  private void init()
  {
    setVersioned(false);
    cookieName = null;

    add(empty = new WebMarkupContainer(getContentId()));

    add(newCloseButtonBehavior());
    add(new WindowClosedBehavior());

    // install a default callback that will force
View Full Code Here

  public ModalWindow remove(final Component component)
  {
    super.remove(component);
    if (component.getId().equals(getContentId()))
    {
      add(empty = new WebMarkupContainer(getContentId()));
    }

    return this;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.WebMarkupContainer

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.