Examples of PageComponent


Examples of com.alibaba.citrus.util.internal.webpagelite.PageComponent

    }

    public final void afterPropertiesSet() throws Exception {
        // 对所有的component进行spring注入。
        for (String path : getComponentPaths()) {
            PageComponent pc = getComponent(path, PageComponent.class);

            getApplicationContext().getAutowireCapableBeanFactory().autowireBeanProperties(pc,
                                                                                           AbstractBeanDefinition.AUTOWIRE_NO, false);

            getApplicationContext().getAutowireCapableBeanFactory().initializeBean(pc, path);
View Full Code Here

Examples of com.alibaba.citrus.util.internal.webpagelite.PageComponent

    }

    public final void afterPropertiesSet() throws Exception {
        // �����е�component����springע�롣
        for (String path : getComponentPaths()) {
            PageComponent pc = getComponent(path, PageComponent.class);

            getApplicationContext().getAutowireCapableBeanFactory().autowireBeanProperties(pc,
                    AbstractBeanDefinition.AUTOWIRE_NO, false);

            getApplicationContext().getAutowireCapableBeanFactory().initializeBean(pc, path);
View Full Code Here

Examples of org.geomajas.plugin.printing.component.PageComponent

  }

  public void execute(PrintGetTemplateRequest request, PrintGetTemplateResponse response) throws Exception {
    // you dirty hack you...
    PrintTemplateInfo template = request.getTemplate();
    PageComponent page = (PageComponent) converterService.toInternal(template.getPage());
    MapComponentImpl mapComponent = (MapComponentImpl) page.getChild(PrintTemplate.MAP);
    if (mapComponent != null) {
      LegendComponentImpl legendComponent = (LegendComponentImpl) mapComponent.getChild(PrintTemplate.LEGEND);
      if (legendComponent != null) {
        LabelComponentImpl lab = (LabelComponentImpl) legendComponent.getChild(PrintTemplate.TITLE);
        if (lab != null) {
          lab.setText(legendComponent.getTitle());
        }
        // need to do this before setSizeAndFit
        adjustLegendFontSizeForSmallPageSizes(request, legendComponent);
      }
    }

    if (request.getPageSize() != null) {
      page.setSize(request.getPageSize(), true);
    }
    SinglePageDocument pdfDoc = new SinglePageDocument(page, null);
    // layout the document
    pdfDoc.layout(Format.PDF);
    // Add document to container
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

        @Override
        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))
            return false;
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

     *
     * @return <code>true</code> if the operation was successful, <code>false</code> otherwise.
     */
    public boolean close() {
        for (Iterator<PageComponent> iter = new HashSet<PageComponent>(pageComponents).iterator(); iter.hasNext();) {
            PageComponent component = iter.next();
            if (!close(component))
                return false;
        }
        return true;
    }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

     * @param descriptor
     *            the descriptor
     * @return the created PageComponent
     */
    protected PageComponent createPageComponent(PageComponentDescriptor descriptor) {
        PageComponent pageComponent = descriptor.createPageComponent();
        pageComponent.setContext(new DefaultViewContext(this, createPageComponentPane(pageComponent)));
        if (pageComponent instanceof ApplicationListener && getApplicationEventMulticaster() != null) {
            getApplicationEventMulticaster().addApplicationListener((ApplicationListener) pageComponent);
        }

        return pageComponent;
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

    protected Dockable getDockable(PageComponent pageComponent) {
        DockableState[] states = desktop.getDockables();
        for (int i = 0; i < states.length; i++) {
            Dockable dockable = states[i].getDockable();
            PageComponent pc = getPageComponent(dockable);
            if (pc == pageComponent)
                return dockable;
        }
        return null;
    }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

            DockableState futureState = event.getFutureState();
            if (futureState.isClosed()) {
                Dockable dockable = futureState.getDockable();
                if (dockable instanceof ViewDescriptorDockable) {
                    ViewDescriptorDockable vdd = (ViewDescriptorDockable) dockable;
                    PageComponent pc = vdd.getPageComponent();
                    if (!pc.canClose())
                        event.cancel();
                }
            }
        }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

         */
        public void dockableStateChanged(DockableStateChangeEvent event) {
            DockableState previousState = event.getPreviousState();
            DockableState newState = event.getNewState();
            Dockable dockable = newState.getDockable();
            PageComponent pc = getPageComponent(dockable);
            if (pc == null)
                return;
            if (previousState != null && !previousState.isClosed() && newState.isClosed()) {
                pc.getContext().getPage().close(pc);
            }
        }
View Full Code Here

Examples of org.springframework.richclient.application.PageComponent

         * @see com.vlsolutions.swing.docking.event.DockableSelectionListener#selectionChanged(com.vlsolutions.swing.docking.event.DockableSelectionEvent)
         */
        public void selectionChanged(DockableSelectionEvent e) {
            Dockable dockable = e.getSelectedDockable();
            if (dockable != null) {
                PageComponent pc = getPageComponent(dockable);
                if (pc != null)
                    setActiveComponent(pc);
            }
        }
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.