Examples of PageComponent


Examples of org.springframework.richclient.application.PageComponent

        public Dockable resolveDockable(String keyName) {
            ViewDescriptor descriptor = getViewDescriptor(keyName);
            if (descriptor == null)
                return null;
            PageComponent pageComponent = createPageComponent(descriptor);
            resolving = true;
            addPageComponent(pageComponent);
            resolving = false;
            Dockable dockable = createDockable(descriptor, pageComponent);
            return dockable;
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

   */
  public void dispose(){
    Collection pageComponents = new ArrayList(pageComponentMap.values());
    Iterator it = pageComponents.iterator();
    while(it.hasNext()){
      PageComponent pageComponent = (PageComponent)it.next();
      remove(pageComponent);
    }
    contentPane.dispose();
    contentPane = null;
    super.dispose();
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

    return Collections.unmodifiableMap(pageComponentMap);
  }
 
  public PageComponent getActiveComponent(){
      String documentName = contentPane.getActiveDocumentName();
    PageComponent component = (PageComponent)pageComponentMap.get(documentName);
    return component;
  }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

     * it dosen't work when using the componentFocusGained method
     */
    public void fireFocusGainedOnActiveComponent(){
      String documentName = contentPane.getActiveDocumentName();
      if(documentName != null){
        PageComponent component = (PageComponent)pageComponentMap.get(documentName);
        JideApplicationPage page = (JideApplicationPage)getActiveWindow().getPage();
        page.fireFocusGained(component);
      }
    }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

    private class MyDoggyContentListener implements ContentManagerUIListener {

        public boolean contentUIRemoving(ContentManagerUIEvent cmEvent) {
            Content content = cmEvent.getContentUI().getContent();
            Assert.notNull(content);
            PageComponent pc = getPageComponent(content.getId());
            Assert.notNull(pc);
            close(pc);

            // let mydoggy remove the page ! (don't no for sure if this is the
            // reason of the NPE in mydoggy if we return close(pc))
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

            throw new RuntimeException(e);
        }
    }

    private QueryRanCommand getQueryRanCommand() {
        PageComponent activeComponent = getApplicationWindow().getPage().getActiveComponent();
        PageComponentContext context = activeComponent.getContext();
        return (QueryRanCommand) context.getLocalCommandExecutor("queryRanCommand");
    }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

        PageComponentContext context = activeComponent.getContext();
        return (QueryRanCommand) context.getLocalCommandExecutor("queryRanCommand");
    }

    private InvalidQueryCommand getInvalidQueryCommand() {
        PageComponent activeComponent = getApplicationWindow().getPage().getActiveComponent();
        PageComponentContext context = activeComponent.getContext();
        return (InvalidQueryCommand) context.getLocalCommandExecutor("invalidQueryCommand");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.