Package org.springframework.richclient.application.docking.jide.perspective

Examples of org.springframework.richclient.application.docking.jide.perspective.Perspective


  /*
   * Logic: if the current perspective is either the null on (first time
   *     use) or the layout is invalid then use the default perspective.
   */
    PerspectiveManager perspectiveManager = ((JideApplicationPage)getPage()).getPerspectiveManager();
    Perspective perspective = perspectiveManager.getCurrentPerspective();
    if(perspective == NullPerspective.NULL_PERSPECTIVE ||
        !LayoutManager.isValidLayout(dockableHolder.getDockingManager(), pageId, perspective)){
      perspective = perspectiveManager.getDefaultPerspective();
    }
    perspective.switchPerspective(this, pageId, false);
  }
View Full Code Here


    this.saveLayoutOnClose = saveLayoutOnClose;
  }
 
  public void windowClosing(WindowEvent event) {
    if(saveLayoutOnClose){
      Perspective perspective = ((JideApplicationPage)window.getPage()).getPerspectiveManager().getCurrentPerspective();
      LayoutManager.savePageLayoutData(manager, window.getPage().getId(), perspective.getId());
      if(log.isDebugEnabled()){
        log.debug("Saving page layout for page "+window.getPage().getId()+" and perspective "+perspective.getId());
      }
    }
    window.close();
  }
View Full Code Here

  protected void doExecuteCommand() {
    log.debug("Execute command");
    DockingManager manager =
      ((JideApplicationWindow)getApplicationWindow()).getDockingManager();
    Perspective perspective =
        ((JideApplicationPage)getApplicationWindow().getPage()).getPerspectiveManager().getCurrentPerspective();
   
    LayoutManager.loadPageLayoutData(manager, getApplicationWindow().getPage().getId(),
        perspective);
  }
View Full Code Here

        super("exitCommand");
    }

    protected void doExecuteCommand() {
      DockingManager manager = ((JideApplicationWindow)getApplicationWindow()).getDockingManager();
      Perspective perspective =
        ((JideApplicationPage)getApplicationWindow().getPage()).getPerspectiveManager().getCurrentPerspective();
   
      LayoutManager.savePageLayoutData(manager,
        getApplicationWindow().getPage().getId(), perspective.getId());
        Application.instance().close();
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.application.docking.jide.perspective.Perspective

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.