Package plugins.Freetalk

Examples of plugins.Freetalk.Identity


        String authorText;
        String authorScore;
       
        // Author related stuff
        {
          Identity author = null;
         
          // TODO: Use a colored "unknown" if the author/score is unknown
          // TODO: Use a special color if author == yourself
          authorText = "?"; // TODO: l10n
          authorScore = "?";
         
          try {
            author = ref.getMessageList().getAuthor();
            authorText = author.getShortestUniqueName();
           
            // TODO: Get rid of the cast somehow, we should maybe call this WoTBoardPage :|
            final int score = ((WoTOwnIdentity)mOwnIdentity).getScoreFor((WoTIdentity)author);
            if (score == Integer.MAX_VALUE)
              authorScore = "-"; // TODO: l10n
View Full Code Here


        String authorText;
        String authorScore;
       
        // Author related stuff
        {
          Identity author = null;
         
          // TODO: Use a colored "unknown" if the author/score is unknown
          // TODO: Use a special color if author == yourself
          authorText = "?"; // TODO: l10n
          authorScore = "?";
         
          try {
            author = identityManager.getIdentity(threadReference.getAuthorID());
            authorText = author.getShortestUniqueName();
           
            // TODO: Get rid of the cast somehow, we should maybe call this WoTBoardPage :|
            final int score = ((WoTOwnIdentity)mOwnIdentity).getScoreFor((WoTIdentity)author);
            if (score == Integer.MAX_VALUE)
              authorScore = l10n().getString("Common.WebOfTrust.Score.Infinite");
View Full Code Here

    list.addChild("li", "[quote author=name message=message-id] quoted text with author and message ID [/quote]");
    list.addChild("li", "[code] monospaced text [/code]");
  }

  private void addRateMessageBox(HTMLNode parent, Byte selectedMessageRating) {
    Identity identity = mParentMessage.getAuthor();

    if(identity == mOwnIdentity)
      return;

    HTMLNode rateMessageBox = getContentBox(l10n().getString(
        "NewReplyPage.RateMessageBox.Header",
        new String[] { "identityname" },
        new String[] { identity.getShortestUniqueName() }));

    parent.addChild(rateMessageBox);

    try {
      mFreetalk.getMessageManager().getMessageRating(mOwnIdentity, mParentMessage);
View Full Code Here

TOP

Related Classes of plugins.Freetalk.Identity

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.