Package org.springframework.richclient.application

Examples of org.springframework.richclient.application.View


    }

    private View showView(ViewDescriptor viewDescriptor, boolean setInput, Object input) {
        Assert.notNull(viewDescriptor, "viewDescriptor cannot be null");

        View view = (View) findPageComponent(viewDescriptor.getId());
        if (view == null) {
            view = (View) createPageComponent(viewDescriptor);

            if (setInput) {
                // trigger control creation before input is set to avoid npe
                view.getControl();
               
                view.setInput(input);
            }

            addPageComponent(view);
        } else {
            if (setInput) {
                view.setInput(input);
            }
        }
        setActiveComponent(view);
       
        return view;
View Full Code Here


    protected View createView() {
        Assert.state(viewClass != null, "View class to instantiate is not set");
        Object o = BeanUtils.instantiateClass(viewClass);
        Assert.isTrue((o instanceof View), "View class '" + viewClass
                + "' was instantiated, but instance is not a View!");
        View view = (View) o;
        view.setDescriptor(this);
        if (viewProperties != null) {
            BeanWrapper wrapper = new BeanWrapperImpl(view);
            wrapper.setPropertyValues(viewProperties);
        }
View Full Code Here

    return this.beanFactory;
  }

  protected View createView()
  {
    final View view = (View)getBeanFactory().getBean(getViewPrototypeBeanName(), View.class);
    view.setDescriptor(this);
    return view;
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.application.View

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.