Package org.apache.wicket.markup.html.link

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


      .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

    add(questionBox);
    questionBox.setVisible(ISIApplication.get().isMyQuestionsOn() && (showXmlContent));
      questionContainer = new WebMarkupContainer("questionContainer");
    questionContainer.setOutputMarkupId(true);
      questionBox.add(questionContainer);
    PopupSettings questionPopupSettings = ISIApplication.get().questionPopupSettings;
      questionList = new QuestionListView("question", QuestionPopup.class, questionPopupSettings, null,
          (ISISession.get().getTargetUserModel().getObject().getId()))
    questionContainer.add(questionList);
    questionContainer.add(new WebMarkupContainer("qButtonVisible").setVisible(false));
       
View Full Code Here

    add(questionBox);
    questionBox.setVisible(ISIApplication.get().isMyQuestionsOn());
      questionContainer = new WebMarkupContainer("questionContainer");
      questionBox.add(questionContainer);
    questionContainer.setOutputMarkupId(true);
    PopupSettings questionPopupSettings = ISIApplication.questionPopupSettings;
      questionList = new QuestionListView("question", QuestionPopup.class, questionPopupSettings, null, null);
    questionContainer.add(questionList);
    questionContainer.add(new WebMarkupContainer("qButtonVisible"));
      add(new NewQuestionForm("newQuestion"));
  }
View Full Code Here

      }
    });


    // 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

        }

        String prodReceivedTime = fm.getProdReceivedTime(prodItem
            .getModelObject());
        prodItem.add(new Label("product_received_time", prodReceivedTime));
        PopupSettings refSettings = new PopupSettings();
        refSettings.setWidth(525).setHeight(450).setWindowName("_refWin");
        Link<String> refLink = new Link<String>("ref_page_link",
            new Model<String>(prodItem.getModelObject().getProductId())) {

          /*
           * (non-Javadoc)
           *
           * @see org.apache.wicket.markup.html.link.Link#onClick()
           */
          @Override
          public void onClick() {
            PageParameters params = new PageParameters();
            params.add("id", getModelObject());
            setResponsePage(prodRefsBrowser, params);

          }
        };
        refLink.setPopupSettings(refSettings);
        prodItem.add(refLink);

        SerializableMetadata met = new SerializableMetadata(fm
            .getMetadata(prodItem.getModelObject()));
        Link<String> metLink = new Link<String>("met_page_link", new Model(
            prodItem.getModelObject().getProductId())) {

          /*
           * (non-Javadoc)
           *
           * @see org.apache.wicket.markup.html.link.Link#onClick()
           */
          @Override
          public void onClick() {
            PageParameters params = new PageParameters();
            params.add("id", getModelObject());
            setResponsePage(prodMetBrowser, params);

          }

        };

        PopupSettings metSettings = new PopupSettings();
        metSettings.setWidth(525).setHeight(450).setWindowName("_metWin");
        metLink.setPopupSettings(metSettings);
        prodItem.add(metLink);

      }

View Full Code Here

        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

   * @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

        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

    add(new Label("exampleTitle", exampleTitle));
    BookmarkablePageLink<Void> link = new BookmarkablePageLink<Void>("sources",
      SourcesPage.class, SourcesPage.generatePageParameters(page));
    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

TOP

Related Classes of org.apache.wicket.markup.html.link.PopupSettings

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.