Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: saveState - what does it do

  1. #11
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
      0  

    Default

    How can I stop a border layout remembering state between sessions?

    Maybe it's becuase I've put id's on my components, but every time I restart my app, all my border layouts are the in the same "state" as in the last session - even if I restart firefox / hosted mode!

    Any thoughts?

  2. #12
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
      0  

    Default

    BorderLayout.class

    Code:
      /**
       * True to enabled state (defaults to true). When true, expand / collapse and
       * size state is persisted across user sessions.
       * 
       * @param enableState true to enable state
       */
      public void setEnableState(boolean enableState) {
        this.enableState = enableState;
      }

  3. #13
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
      0  

    Default

    Thanks - it works but I'd like to do something in between - remember state during the session and forget it between sessions...

    The code to disable state is:

    Code:
    BorderLayout borderLayout = new BorderLayout();
    borderLayout.setEnableState(false);
    layoutContainer = new LayoutContainer(borderLayout);

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •