Ignore:
Timestamp:
05/24/19 15:52:29 (5 years ago)
Author:
bln4
Message:

Mail now links to the senders credentials frame. More work required to not hard code it to frame 14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/mail/gui/MailBay.java

    r1363 r1375  
    9494         * @return
    9595         */
    96         public synchronized static Text addMessage(String timestamp, String message, String message2, Map<String, String> options) {
     96        public synchronized static Text addMessage(String timestamp, String sender, String message, String message2, Map<String, String> options) {
    9797                // Invalidate whole area
    9898                DisplayController.invalidateArea(DisplayController.getMessageBayPaintArea());
     
    116116                Text t = mail.getPreviewMessage(true);
    117117                _messages.add(t);
    118                 _creator.addText(timestamp, Colour.BLACK, null, null, false);
     118                Text header = _creator.addText(timestamp + " (From: " + sender + ")", Colour.BLACK, null, null, false);
     119                header.setLink(sender + "-credentials" + 14); //TODO: instead of hard coding 14, have it programmatically looked up.
    119120                for (Text line: mail.getMessage()) {
    120121                        _creator.addItem(line.copy(), false);
Note: See TracChangeset for help on using the changeset viewer.