Examples of BoardMessageLink


Examples of plugins.Freetalk.SubscribedBoard.BoardMessageLink

        /* Message count */
        row.addChild("td", "class", "message-count-cell", Integer.toString(board.messageCount()));
       

        // Find latest message date
        BoardMessageLink latestMessage;
        String latestMessageDateString;
       
        try {
          latestMessage = board.getLatestMessage();
          latestMessageDateString = dateFormat.format(latestMessage.getMessageDate());
        } catch (NoSuchMessageException e) {
          latestMessage = null;
              latestMessageDateString = "-";
        }
       
        // TODO: This should always be a td, use a CSS class instead with font-weight:bold
       
          /* Unread messages count, bold when there are unread messages & linked to first unread message then */
              if(unreadMessageCount > 0)
                row.addChild("th", "class", "unread-count-cell")
                  .addChild("a", "href", BoardPage.getFirstUnreadURI(board.getName()), Integer.toString(unreadMessageCount));
        else
          row.addChild("td", "class", "unread-count-0-cell", Integer.toString(unreadMessageCount));

          /* Latest message date, bold when the latest message is unread */
        row.addChild((latestMessage == null || latestMessage.wasRead()) ? "td" : "th", "class", "latest-message-cell",
            latestMessageDateString);
      }
    }

    if(boardCount == 0) {
View Full Code Here

Examples of plugins.Freetalk.SubscribedBoard.BoardMessageLink

        final boolean includeMessageText = Boolean.parseBoolean(params.get("IncludeMessageText"));

        //throws exception when not found
        final SubscribedBoard board = mFreetalk.getMessageManager().getSubscription(mFreetalk.getIdentityManager().getOwnIdentity(ownIdentityID), boardName);
       
        final BoardMessageLink reference = board.getMessageByIndex(messageIndex); // throws exception when not found
       
        final Message message = reference.getMessage()// throws MessageNotFetchedException

        sendSingleMessage(replysender, message, messageIndex, includeMessageText);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.