Package org.apache.wicket.markup.html

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


      {
        return TabbedPanel.this.tabs.size();
      }
    };

    WebMarkupContainer tabsContainer = newTabsContainer("tabs-container");
    add(tabsContainer);

    // add the loop used to generate tab names
    tabsContainer.add(new Loop("tabs", tabCount)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final LoopItem item)
      {
        final int index = item.getIndex();
        final T tab = TabbedPanel.this.tabs.get(index);

        final WebMarkupContainer titleLink = newLink("link", index);

        titleLink.add(newTitle("title", tab.getTitle(), index));
        item.add(titleLink);
      }

      @Override
      protected LoopItem newItem(final int iteration)
View Full Code Here


   *            container id
   * @return container
   */
  protected WebMarkupContainer newTabsContainer(final String id)
  {
    return new WebMarkupContainer(id)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(final ComponentTag tag)
View Full Code Here

    addOrReplace(component);
  }

  private WebMarkupContainer newPanel()
  {
    return new WebMarkupContainer(TAB_PANEL_ID);
  }
View Full Code Here

   * @param id
   * @return A new markup container
   */
  protected WebMarkupContainer newBodyContainer(final String id)
  {
    return new WebMarkupContainer(id);
  }
View Full Code Here

   */
  public NavigationToolbar(final DataTable<?, ?> table)
  {
    super(table);

    WebMarkupContainer span = new WebMarkupContainer("span");
    add(span);
    span.add(AttributeModifier.replace("colspan", new AbstractReadOnlyModel<String>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public String getObject()
      {
        return String.valueOf(table.getColumns().size()).intern();
      }
    }));

    span.add(newPagingNavigator("navigator", table));
    span.add(newNavigatorLabel("navigatorLabel", table));
  }
View Full Code Here

    this.wizardModel = wizardModel;

    form = newForm(FORM_ID);
    addOrReplace(form);
    // dummy view to be replaced
    form.addOrReplace(new WebMarkupContainer(HEADER_ID));
    form.addOrReplace(newFeedbackPanel(FEEDBACK_ID));
    // add dummy view; will be replaced on initialization
    form.addOrReplace(new WebMarkupContainer(VIEW_ID));
    form.addOrReplace(newButtonBar(BUTTONS_ID));
    form.addOrReplace(newOverviewBar(OVERVIEW_ID));

    wizardModel.addListener(this);
View Full Code Here

   */
  protected Component newOverviewBar(final String id)
  {
    // return a dummy component by default as we don't have an overview
    // component
    return new WebMarkupContainer(id).setVisible(false);
  }
View Full Code Here

      @Override
      protected void populateItem(Item<IColumn<T, S>> item)
      {
        final IColumn<T, S> column = item.getModelObject();

        WebMarkupContainer header = null;

        if (column.isSortable())
        {
          header = newSortableHeader("header", column.getSortProperty(), stateLocator);
        }
        else
        {
          header = new WebMarkupContainer("header");
        }

        if (column instanceof IStyledColumn)
        {
          CssAttributeBehavior cssAttributeBehavior = new DataTable.CssAttributeBehavior()
          {
            private static final long serialVersionUID = 1L;

            @Override
            protected String getCssClass()
            {
              return ((IStyledColumn<?, S>)column).getCssClass();
            }
          };

          header.add(cssAttributeBehavior);
        }

        item.add(header);
        item.setRenderBodyOnly(true);
        header.add(column.getHeader("label"));
      }
    };
    add(headers);
  }
View Full Code Here

   * @param waitBeforeRedirectInSeconds
   *            The number of seconds the browser should wait before redirecting
   */
  public RedirectPage(final CharSequence url, final int waitBeforeRedirectInSeconds)
  {
    final WebMarkupContainer redirect = new WebMarkupContainer("redirect");
    final String content = waitBeforeRedirectInSeconds + ";URL=" + url;
    redirect.add(new AttributeModifier("content", new Model<>(content)));
    add(redirect);
  }
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

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.