Changeset 1221 for trunk


Ignore:
Timestamp:
01/30/19 13:05:00 (5 years ago)
Author:
bln4
Message:

MessageBay.java -> Ability to steal screen from MailBay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/MessageBay.java

    r1183 r1221  
    112112        /** Whether the given item is an item in the message bay. */
    113113        public static boolean isMessageItem(Item i) {
    114                 return _messages.contains(i) || i == _messageLink || i == _status;
     114                return _messages.contains(i) || i == _messageLink || i == getStatus();
    115115        }
    116116
     
    188188                }
    189189
    190                 if (_status != null) {
    191                         FrameGraphics.PaintItem(_status);
     190                if (getStatus() != null) {
     191                        FrameGraphics.PaintItem(getStatus());
    192192                }
    193193
     
    250250
    251251                if (!displayAlways && message.equals(_lastMessage)) {
     252                        DisplayController.DisableMailMode();
    252253                        Misc.beep();
    253254                        return null;
     
    278279                _messageLink.setLink(_creator.getCurrent());
    279280
    280                 // TODO: Can we just make this DisplayController.requestRefresh()? cts16
    281281                if (redraw) {
     282                        DisplayController.DisableMailMode();
    282283                        DisplayController.requestRefresh(true);
    283284                }
     
    541542        }
    542543
     544        public static Text getStatus() {
     545                return _status;
     546        }
     547
    543548}
Note: See TracChangeset for help on using the changeset viewer.