Examples of PopupSettings


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

                        {
                            tag.put("value", getDefaultModelObjectAsString(getLabel().getObject()));
                        }
                    }
                };
                viewLink.setPopupSettings(new PopupSettings());
                infoForm.add(viewLink);
            }
            else
            {
                RequestContext context = (RequestContext) getPortletRequest().getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE);
                String basePath = context.getPortalURL().getBasePath().replace("portal", "configure");
                ExternalLink viewLink = new ExternalLink("view", new Model(basePath + getDocument().getPath()), new ResourceModel("common.view"))
                {
                    @Override
                    protected void onComponentTag(ComponentTag tag)
                    {
                        super.onComponentTag(tag);
                       
                        if (tag.getName().equalsIgnoreCase("input") && ((getLabel() != null) && (getLabel().getObject() != null)))
                        {
                            tag.put("value", getDefaultModelObjectAsString(getLabel().getObject()));
                        }
                    }
                };
                viewLink.setPopupSettings(new PopupSettings());
                infoForm.add(viewLink);
            }

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

    final Evenement evenement = (Evenement) item.getModelObject();

    item.add(new Label("nom", new PropertyModel(evenement, "nom")));
    item.add(new Label("endroit", new PropertyModel(evenement, "endroit")));

    final PopupSettings popup = new PopupSettings(PopupSettings.SCROLLBARS);
    final ExternalLink extLink = new ExternalLink("lnkInfoCourse",
        new PropertyModel(evenement, "urlInfoCourse"));
    extLink.setPopupSettings(popup);
    item.add(extLink);
View Full Code Here

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

      public Page getPage()
      {
        return new SearchHelpPage();
      }
    }).setPopupSettings(new PopupSettings()));
  }
View Full Code Here

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

        public Page getPage()
        {
          return new RecuImprimablePage(transaction.getId());
        }

      }).setPopupSettings(new PopupSettings(PopupSettings.SCROLLBARS)));

      add(new Label("redirectText", new ResourceModel("redirectText"))
          .setVisible(model.isEnabled()));

      add(timeRemainingLabel = new Label("timeRemaining",
View Full Code Here

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

      public Class getPageIdentity()
      {
        return ImageViewPage.class;
      }
    }).setPopupSettings(new PopupSettings(PopupSettings.SCROLLBARS)));

    add(new PageLink("chooseImage", new IPageLink()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

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

      .addPolygonArea(new BookmarkablePageLink<Page3>("page3", Page3.class),
        new int[] { 212, 79, 241, 4, 279, 54, 212, 79 })
      .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

      .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

   * @see <a href="https://issues.apache.org/jira/browse/WICKET-3109">WICKET-3109</a>
   */
  public void testLazyPageMapCreationForPopup()
  {
    TestPage testPage = new TestPage();
    PopupSettings popupSettings = new PopupSettings();
    popupSettings.setWindowName(WORKING_PAGE_MAP);
    testPage.dummyPageLink.setPopupSettings(popupSettings);

    tester.startPage(testPage);

    for (IPageMap pageMap : tester.getWicketSession().getPageMaps())
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
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.