Package org.apache.wicket.markup.html

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


                Model.of("Github Issues"))
                .setIconType(GlyphIconType.book),
            new MenuBookmarkablePageLink<Void>(
                ExtensionsPage.class, Model.of("Extensions"))
                .setIconType(GlyphIconType.qrcode));
    final Component contextPanel = new TransparentWebMarkupContainer(
        "context-panel");
    final ButtonListContextMenu contextMenu = new ButtonListContextMenu(
        "contextmenu", Model.ofList(buttons));
    contextMenu.assignTo(contextPanel);
    add(contextMenu,
View Full Code Here


                final Component image = newImage("image", carouselImage);
                final Component header = newHeader("header", carouselImage);
                final Component description = newDescription("description", carouselImage);

                final TransparentWebMarkupContainer caption = new TransparentWebMarkupContainer("caption");
                caption.setVisible(header.isVisible() || description.isVisible());

                // REFACTOR: use better way to detect first element
                if (!renderedActive) {
                    renderedActive = true;
View Full Code Here

     *
     * @param id The component id
     * @return The dialog container
     */
    protected WebMarkupContainer createDialog(String id) {
        return new TransparentWebMarkupContainer(id) {
            @Override
            protected void onComponentTag(ComponentTag tag) {
                super.onComponentTag(tag);

                Attributes.removeClass(tag, Size.Large.cssClassName(), Size.Small.cssClassName());
View Full Code Here

    public Navbar(final String componentId, final IModel<?> model) {
        super(componentId, model);

        BootstrapResourcesBehavior.addTo(this);

        final TransparentWebMarkupContainer container = newContainer("container");
        final TransparentWebMarkupContainer collapse = newCollapseContainer("collapse");
        final TransparentWebMarkupContainer collapseButton = newCollapseButton("collapseButton", "#" + collapse.getMarkupId());

        this.brandNameLink = newBrandNameLink("brandName");

        final Component leftAlignedComponentListView = newNavigation("navLeftList", newPositionDependedComponentModel(components, POSITION_FILTER_LEFT));
        final Component rightAlignedComponentListView = newNavigation("navRightList", newPositionDependedComponentModel(components, POSITION_FILTER_RIGHT));
View Full Code Here

     *
     * @param componentId The non-null id of a new navigation component
     * @return a new inner container of the navigation bar.
     */
    protected TransparentWebMarkupContainer newContainer(String componentId) {
        return new TransparentWebMarkupContainer(componentId) {
            @Override
            protected void onComponentTag(ComponentTag tag) {
                super.onComponentTag(tag);

                Attributes.removeClass(tag, "container", "container-fluid");
View Full Code Here

     * @param componentId The non-null id of collapse button
     * @param selector    non-null jquery selector to collapse
     * @return a button container.
     */
    protected TransparentWebMarkupContainer newCollapseButton(String componentId, String selector) {
        TransparentWebMarkupContainer button = new TransparentWebMarkupContainer(componentId);
        Args.notNull(selector, "selector");
        button.add(new AttributeModifier("data-target", selector));
        return button;
    }
View Full Code Here

     *
     * @param componentId The non-null id of a new navigation component
     * @return a new inner container of the navigation bar.
     */
    protected TransparentWebMarkupContainer newCollapseContainer(String componentId) {
        TransparentWebMarkupContainer collapse = new TransparentWebMarkupContainer(componentId);
        collapse.setOutputMarkupId(true); // needed to put the "data-target" attribute of the collapse button
        return collapse;
    }
View Full Code Here

        // It is <wicket:head>. Because they do not provide any
        // additional functionality they are merely a means of surrounding relevant
        // markup. Thus we simply create a WebMarkupContainer to handle
        // the tag.
        WebMarkupContainer header2 = new TransparentWebMarkupContainer(
          HtmlHeaderSectionHandler.HEADER_ID);

        header2.setRenderBodyOnly(true);
        header.add(header2);

        return header;
      }
      else if (container instanceof HtmlHeaderContainer)
      {
        // It is <wicket:head>. Because they do not provide any
        // additional functionality there are merely a means of surrounding
        // relevant markup. Thus we simply create a WebMarkupContainer to handle
        // the tag.
        WebMarkupContainer header = new TransparentWebMarkupContainer(
          HtmlHeaderSectionHandler.HEADER_ID);
        header.setRenderBodyOnly(true);

        return header;
      }
      final Page page = container.getPage();
      final String pageClassName = (page != null) ? page.getClass().getName() : "unknown";
View Full Code Here

      // It must be <wicket:extend...>
      if (wicketTag.isExtendTag() || wicketTag.isChildTag())
      {
        String id = wicketTag.getId() + container.getPage().getAutoIndex();
        return new TransparentWebMarkupContainer(id);
      }
    }

    // We were not able to handle the componentId
    return null;
View Full Code Here

      {
        wc = new WebComponent(id);
      }
      else
      {
        wc = new TransparentWebMarkupContainer(id);
      }

      return wc;
    }
    return null;
View Full Code Here

TOP

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

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.