private IPage loadPage(String name) { IPage result = _pageSource.getPage(this, name); // Get the recorder that will eventually observe and record // changes to persistent properties of the page. IPageRecorder recorder = getPageRecorder(name); // Have it rollback the page to the prior state. Note that // the page has a null observer at this time (which keeps // these changes from being sent to the page recorder). recorder.rollback(result); // Now, have the page use the recorder for any future // property changes. result.setChangeObserver(recorder); // fire off pageAttached now that properties have been restored result.firePageAttached(); return result; }
private IPage loadPage(String name) { IPage result = _pageSource.getPage(this, name); // Get the recorder that will eventually observe and record // changes to persistent properties of the page. IPageRecorder recorder = getPageRecorder(name); // Have it rollback the page to the prior state. Note that // the page has a null observer at this time (which keeps // these changes from being sent to the page recorder). recorder.rollback(result); // Now, have the page use the recorder for any future // property changes. result.setChangeObserver(recorder); // fire off pageAttached now that properties have been restored result.firePageAttached(); return result; }