Package org.wicketstuff.extensions

Examples of org.wicketstuff.extensions.ExternalModalWindow


   */
  public ModalPicnikLink(String id, PicnikLinkModel picnikLinkModel)
  {
    super(id);

      final ModalWindow modalWindow = new ExternalModalWindow("modalPicnikWindow", picnikLinkModel);
      configureModalWindow(modalWindow);
      add(modalWindow);
      final AjaxLink showModalLink = new AjaxLink("showModalLink")
        {
            @Override
      public void onClick(AjaxRequestTarget target)
            {
              modalWindow.show(target);
            }
        };
        showModalLink.add(new Image("picnikLogo", new ResourceReference(ModalPicnikLink.class, "picnik_logo_small.jpg")));
        configureShowModalLink(showModalLink);
    add(showModalLink);
     
      // this link will be clicked indirectly via javascript from CloseModalPage
      final AjaxLink closeModalLink = new AjaxLink("closeModalLink")
      {
            @Override
      public void onClick(AjaxRequestTarget target)
            {
              modalWindow.close(target);
              onPicnikFinished(target);
            }

      };
    add(closeModalLink);
View Full Code Here

TOP

Related Classes of org.wicketstuff.extensions.ExternalModalWindow

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.