Examples of PopupSettings


Examples of org.apache.wicket.markup.html.link.PopupSettings

      .addPolygonArea(new BookmarkablePageLink<Page3>("page3", Page3.class), 212, 79, 241, 4,
        279, 54, 212, 79)
      .add(RelativePathPrefixHandler.RELATIVE_PATH_BEHAVIOR));

    // Popup example
    PopupSettings popupSettings = new PopupSettings("popuppagemap").setHeight(500)
      .setWidth(500);
    add(new BookmarkablePageLink<>("popupLink", Popup.class).setPopupSettings(popupSettings));

    // Popup example
    add(new BookmarkablePageLink<>("popupButtonLink", Popup.class).setPopupSettings(popupSettings));

    // External site link
    add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));

    // And that link as a popup
    PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
View Full Code Here

Examples of org.apache.wicket.markup.html.link.PopupSettings

        setResponsePage(new SourcesPage(getPage().getClass()));
      }
    };
    add(link);

    PopupSettings settings = new PopupSettings(PageMap.forName("sources"), PopupSettings.RESIZABLE);
    settings.setWidth(800);
    settings.setHeight(600);
    settings.setWindowName("sources");
    link.setPopupSettings(settings);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.PopupSettings

                addPage.setVisible(false);
                addLink.setVisible(false);
            }
            if (node.getDocType() == SiteTreeNode.FileType.Link)
            {
                infoForm.add(new ExternalLink("view", new Model(getDocument().getUrl()),new ResourceModel("common.view")).setPopupSettings(new PopupSettings()));
            } else
            {
                RequestContext context = (RequestContext) getPortletRequest()
                        .getAttribute(
                                PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
                String basePath = context.getPortalURL().getBasePath().replace(
                        "portal", "configure");
                infoForm.add(new ExternalLink("view", new Model(basePath
                        + getDocument().getPath()),new ResourceModel("common.view")).setPopupSettings(new PopupSettings()));
            }

            infoForm.add(new AjaxButton("remove",new ResourceModel("common.remove"),infoForm)
            {
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.