Class TweetLink

    • Constructor Detail

      • TweetLink

        public TweetLink​(String id)
        Parameters:
        id - wicket-id
        tweet - tweet-id
    • Method Detail

      • getHashTags

        public IModel<?> getHashTags()
        Returns:
        the hashTags
      • getInReplyTo

        public IModel<?> getInReplyTo()
        Returns:
        the inReplyTo
      • getRelated

        public IModel<?> getRelated()
        Returns:
        the related
      • getText

        public IModel<?> getText()
        Returns:
        the text
      • getTweetUrl

        public IModel<?> getTweetUrl()
        Returns:
        the tweetUrl
      • getVia

        public IModel<?> getVia()
        Returns:
        the via
      • setHashTags

        public <C extends Serializable> void setHashTags​(Collection<C> hashTags)
        Add context to the pre-prepared status update by appending #hashtags. Omit the "#" symbol.
        Parameters:
        hashTags - the hashTags to set
      • setHashTags

        public void setHashTags​(IModel<?> hashTags)
        Add context to the pre-prepared status update by appending #hashtags. Omit the "#" symbol.
        Parameters:
        hashTags - the hashTags to set
      • setInReplyTo

        public void setInReplyTo​(IModel<?> inReplyTo)
        Associate this Tweet with a specific Tweet by indicating its status ID here. The originating Tweet Author's screen name will be automatically prepended to the reply.
        Parameters:
        inReplyTo - the inReplyTo to set
      • setInReplyTo

        public void setInReplyTo​(String inReplyTo)
        Associate this Tweet with a specific Tweet by indicating its status ID here. The originating Tweet Author's screen name will be automatically prepended to the reply.
        Parameters:
        inReplyTo - the inReplyTo to set
      • setRelated

        public <C extends Serializable> void setRelated​(Collection<C> related)
        Suggest accounts related to the your content.
        Parameters:
        related - the related to set
      • setRelated

        public void setRelated​(IModel<?> related)
        Suggest accounts related to the your content.
        Parameters:
        related - the related to set
      • setText

        public void setText​(IModel<?> text)
        Users will still be able to edit the pre-prepared text. This field has a potential of 140 characters maximum, but consider the implications of other parameters like url and via.
        Parameters:
        text - the text to set
      • setText

        public void setText​(String text)
        Users will still be able to edit the pre-prepared text. This field has a potential of 140 characters maximum, but consider the implications of other parameters like url and via.
        Parameters:
        text - the text to set
      • setTweetUrl

        public void setTweetUrl​(IModel<?> tweetUrl)
        The provided URL will be shortened with t.co and appended to the end of the Tweet.
        Parameters:
        tweetUrl - the tweetUrl to set
      • setTweetUrl

        public void setTweetUrl​(String tweetUrl)
        The provided URL will be shortened with t.co and appended to the end of the Tweet.
        Parameters:
        tweetUrl - the tweetUrl to set
      • setVia

        public void setVia​(IModel<?> via)
        A screen name to associate with the Tweet. The provided screen name will be appended to the end of the tweet with the text: "via @username" "Via" will be translated to the proper locality of the posting user, if supported. Potentially drives new followers to the target account.
        Parameters:
        via - the via to set
      • setVia

        public void setVia​(String via)
        A screen name to associate with the Tweet. The provided screen name will be appended to the end of the tweet with the text: "via @username" "Via" will be translated to the proper locality of the posting user, if supported. Potentially drives new followers to the target account.
        Parameters:
        via - the via to set