Examples of PopupSettings


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

    add(new Label("exampleTitle", exampleTitle));
    BookmarkablePageLink<Void> link = new BookmarkablePageLink<Void>("sources",
      SourcesPage.class, SourcesPage.generatePageParameters(page));
    add(link);

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

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<Void>("popupLink", Popup.class).setPopupSettings(popupSettings));

    // Popup example
    add(new BookmarkablePageLink<Void>("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

      .addCircleArea(new BookmarkablePageLink<Page2>("page2", Page2.class), 160, 50, 35)
      .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<Void>("popupLink", Popup.class).setPopupSettings(popupSettings));

    // Popup example
    add(new BookmarkablePageLink<Void>("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

      new int[] { 212, 79, 241, 4, 279, 54, 212, 79 },
      new BookmarkablePageLink("page3", Page3.class)).add(
      RelativePathPrefixHandler.RELATIVE_PATH_BEHAVIOR));

    // Popup example
    PopupSettings popupSettings = new PopupSettings(PageMap.forName("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((Class<? extends Page<?>>)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

        super(id, model, attribute, fieldValidationValidator);
    }

    @Override
    protected ModelFacade<String> createFormComponent(AttributeDefinition attribute, final IModel<String> model) {
        PopupSettings popupSettings =
            new PopupSettings("popuppagemap").setHeight(300).setWidth(600).setLeft(50).setTop(50);
        Link<OAuthData> pageLink =
            new Link<OAuthData>("popupLink", new OAuthPageModel(
                new Model<OAuthData>(attribute.getOAuthConfiguration()))) {
                @Override
                public void onClick() {
View Full Code Here

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

                MenuItem.LINK_ID, APage.class);
        result.add(new MenuItem(linkToAPage, new Label(MenuItem.CAPTION_ID, "APage")));

        final BookmarkablePageLink<Object> linkToAPageWithPopupSettings = new BookmarkablePageLink<Object>(
                MenuItem.LINK_ID, APage.class);
        linkToAPageWithPopupSettings.setPopupSettings(new PopupSettings());
        result.add(new MenuItem(linkToAPageWithPopupSettings, new Label(MenuItem.CAPTION_ID,
                "APage-popup")));

        result.add(new MenuItem(new Link<Object>(MenuItem.LINK_ID) {
            private static final long serialVersionUID = 1L;
View Full Code Here

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

      MenuItem.LINK_ID, APage.class);
    result.add(new MenuItem(linkToAPage, new Label(MenuItem.CAPTION_ID, "APage")));

    final BookmarkablePageLink<Object> linkToAPageWithPopupSettings = new BookmarkablePageLink<Object>(
      MenuItem.LINK_ID, APage.class);
    linkToAPageWithPopupSettings.setPopupSettings(new PopupSettings());
    result.add(new MenuItem(linkToAPageWithPopupSettings, new Label(MenuItem.CAPTION_ID,
      "APage-popup")));

    result.add(new MenuItem(new Link<Object>(MenuItem.LINK_ID)
    {
View Full Code Here

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

        new BookmarkablePageLink("page2", Page2.class)).addPolygonLink(
        new int[] { 212, 79, 241, 4, 279, 54, 212, 79 },
        new BookmarkablePageLink("page3", Page3.class)).add(RelativePathPrefixHandler.RELATIVE_PATH_BEHAVIOR));

    // Popup example
    PopupSettings popupSettings = new PopupSettings(PageMap.forName("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
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.