Beispiel #1
0
 /** @overrides ISupportMomento.getState */
 @Override
 public Object getState() {
   PageState state = new PageState();
   // Populate basic page information
   state.name = getPageName();
   state.id = getPageId();
   state.color = getPageColor();
   state.width = this.pageJComponent.getWidth();
   // Fill in block information
   for (RenderableBlock rb : this.getBlocks()) {
     state.renderableBlocks.put(rb.getBlockID(), rb.getState());
   }
   return state;
 }