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

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


    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);

    item.add(new Radio("radio", item.getModel()));

    item.add(new TableOddEvenStyleAttributeModifier(item));
View Full Code Here


    // 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
    add(new ResourceLink("cancelButtonLink", new ResourceReference("cancelButton")));
View Full Code Here

    }


    private void addHomePageLinkAndApplicationName() {
        // this is a bit hacky, but it'll do...
        ExternalLink homePageLink = new ExternalLink(ID_HOME_PAGE_LINK, "/wicket/");
        homePageLink.setContextRelative(true);
        add(homePageLink);
        homePageLink.add(new Label(ID_APPLICATION_NAME, applicationName));
    }
View Full Code Here

    // 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
    add(new ResourceLink<Void>("cancelButtonLink", new SharedResourceReference("cancelButton")));
View Full Code Here

            @Override
            public void populateItem(final ListItem item) {
                final MyTweet tweet = (MyTweet) item.getModelObject();
                String twitterUrl = Helper.TURL + "/" + tweet.getUserName();
               
                ExternalLink userNameLink = new ExternalLink("userNameLink", twitterUrl, tweet.getUserName());
                item.add(userNameLink);
                item.add(new Label("tweetText", tweet.getText()));
                item.add(new Label("createdAt", Helper.toLocalDateTime(tweet.getCreatedAt())));
            }
        };
View Full Code Here

  }

  // Link for: first,last
  @Override
  protected AbstractLink newPagingNavigationLink(String id, IPageable pageable, int pageNumber) {
    ExternalLink navCont = new ExternalLink(id + "Cont", (String) null);

    // add css for enable/disable link
    long pageIndex = pageable.getCurrentPage() + pageNumber;
    navCont.add(new AttributeModifier("class", new PagingNavigationLinkCssModel(pageable, pageIndex, "disabled")));

    // change original wicket-link, so that it always generates href
    navCont.add(new AjaxPagingNavigationLink(id, pageable, pageNumber) {
      @Override
      protected void disableLink(ComponentTag tag) {
      }
    });
    return navCont;
View Full Code Here

  }

  // Link for: prev,next
  @Override
  protected AbstractLink newPagingNavigationIncrementLink(String id, IPageable pageable, int increment) {
    ExternalLink navCont = new ExternalLink(id + "Cont", (String) null);

    // add css for enable/disable link
    long pageIndex = pageable.getCurrentPage() + increment;
    navCont.add(new AttributeModifier("class", new NavigationIncrementLinkCssModel(pageable, pageIndex)));

    // change original wicket-link, so that it always generates href
    navCont.add(new AjaxPagingNavigationIncrementLink(id, pageable, increment) {
      @Override
      protected void disableLink(ComponentTag tag) {
      }
    });
    return navCont;
View Full Code Here

    private ResourceReference rssRef;
    private ValueMap vm;

    public Footer(String id, PageParameters pp, String title, String url) {
        super(id);
        add(new ExternalLink("shareTwLink", Helper.getTwitterHref("Search your tweets!", url, "")));
        add(new ExternalLink("shareFbLink", Helper.toFacebookHref(url, title)));
        add(new ExternalLink("shareEmailLink", Helper.toEmailHref("alexia@techcrunch.com", "Jetslide News Reader 4 Geeks",
                "Hey,\n\nI found some nice articles via Jetslide:\n\n" + Helper.urlEncode(url))));

        vm = new ValueMap(pp);
        vm.put(TweetSearchPage.TIME, TweetSearchPage.TIME_TODAY);
        rssRef = new ResourceReference("rssFeed");
View Full Code Here

    private String title = "Jetslide News Reader";

    public UserPanel(String id, final TweetSearchPage tweetSearchRef) {
        super(id);

        ExternalLink profileImageLink = new ExternalLink("profileImageLink", new PropertyModel(this, "profileLink"));
        profileImageLink.add(new ContextImage("profileImage", new PropertyModel(this, "imageUrl")));
        profileImageLink.add(new AttributeAppender("title", new PropertyModel(this, "title"), " "));
        add(profileImageLink);

        add(new WebMarkupContainer("gojetslideLink") {

            @Override
View Full Code Here

        });
        label.setEscapeModelStrings(false);
        label.setOutputMarkupId(true);
        add(label);

        ExternalLink dateLink = new ExternalLink("tweetDate",
                Helper.toTwitterHref(user.getScreenName(), tweet.getTwitterId()));

        String str = "status";
        if (tweet.getCreatedAt() != null)
            str = Helper.toSimpleDateTime(tweet.getCreatedAt());
        Label dateLabel = new Label("tweetDateLabel", str);
        dateLink.add(dateLabel);
        add(dateLink);

        add(new ExternalLink("tweetFav",
                Helper.twitterIntentFav(tweet.getTwitterId())));

        add(new ExternalLink("tweetReply",
                Helper.twitterIntentReply(tweet.getTwitterId())));

        add(new AjaxFallbackLink("tweetRetweet") {

            @Override
View Full Code Here

TOP

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

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.