Ignore:
Timestamp:
04/02/19 15:19:35 (5 years ago)
Author:
bln4
Message:

FrameCreator now has the option to extend an existing frameset rather than overwrite or ignore the previous frameset content. A boolean variable to the FrameCreator constructor has changed to a Enum with three options to facilitate this.

The MailBay uses this new FrameCreator functionality.

In the near future, 'extend' option will be updated to more precisely reobtain the exact state of the FrameCreator when last used (IE, what the FrameCreator thinks its Y position is).

File:
1 edited

Legend:

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

    r1275 r1276  
    11package org.expeditee.auth.gui;
    22
    3 import java.io.File;
    43import java.util.LinkedList;
    54import java.util.List;
     
    2322
    2423public class MailBay {
    25         public static final String EXPEDITEE_MAIL_FRAMESET_NAME = "ExpediteeMail";
     24        public static final String EXPEDITEE_MAIL_FRAMESET_NAME = "expediteemail";
    2625
    2726        /** The y position of the header to the mail bay. */
     
    3534        private static final int OFFSET_X = 20;
    3635
    37 
    3836        /** Buffer image of the mail window. */
    3937        private static Image _mailBuffer;
     
    9593                if (_creator == null || currentUser != UserSettings.UserName.get()) {
    9694                        currentUser = UserSettings.UserName.get();
    97                         _creator = new FrameCreator(EXPEDITEE_MAIL_FRAMESET_NAME, FrameIO.MAIL_PATH, EXPEDITEE_MAIL_FRAMESET_NAME, true, false);
    98                         _creator.setTitle("Expeditee Mail");
     95                        _creator = new FrameCreator(EXPEDITEE_MAIL_FRAMESET_NAME, FrameIO.MAIL_PATH, EXPEDITEE_MAIL_FRAMESET_NAME, FrameCreator.ExistingFramesetOptions.ReobtainStateFromExistingFrames, false);
    9996                }
    10097                               
Note: See TracChangeset for help on using the changeset viewer.