Package org.apache.beehive.netui.compiler.model

Examples of org.apache.beehive.netui.compiler.model.FormBeanModel


        if ( formBeans == null )
        {
            String beanClassName = CompilerUtils.getFormClassName( beanType, _strutsApp.getEnv() );
            String formName = _strutsApp.getFormNameForType( actualType, false );
            FormBeanModel formBean = new FormBeanModel( formName, beanClassName, actualType, false, _strutsApp );
            _strutsApp.addFormBean( formBean );
            formBeanNames.add( formBean.getName() );
        }
        else
        {
            for ( Iterator i = formBeans.iterator(); i.hasNext(); )
            {
                FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
                formBeanNames.add( formBeanModel.getName() );
            }
        }

        return formBeanNames;
    }
View Full Code Here


            formBeanName = ( ( FormBeanModel ) existingBeans.get( 0 ) ).getName();
        }
        else
        {
            formBeanName = getFormNameForType( actualType, usesPageFlowScopedFormBean );
            addFormBean( new FormBeanModel( formBeanName, formClass, actualType, usesPageFlowScopedFormBean, this ) );
            getMessageResourcesFromForm( formType, usedByAction );
        }
       
        return formBeanName;
    }
View Full Code Here

        if ( formBeans == null )
        {
            String beanClassName = CompilerUtils.getFormClassName( beanType, _strutsApp.getEnv() );
            String formName = _strutsApp.getFormNameForType( actualType, false );
            FormBeanModel formBean = new FormBeanModel( formName, beanClassName, actualType, false, _strutsApp );
            _strutsApp.addFormBean( formBean );
            formBeanNames.add( formBean.getName() );
        }
        else
        {
            for ( Iterator i = formBeans.iterator(); i.hasNext(); )
            {
                FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
                formBeanNames.add( formBeanModel.getName() );
            }
        }

        return formBeanNames;
    }
View Full Code Here

            formBeanName = ( ( FormBeanModel ) existingBeans.get( 0 ) ).getName();
        }
        else
        {
            formBeanName = getFormNameForType( actualType, usesPageFlowScopedFormBean );
            addFormBean( new FormBeanModel( formBeanName, formClass, actualType, usesPageFlowScopedFormBean, this ) );
            getMessageResourcesFromForm( formType, usedByAction );
        }
       
        return formBeanName;
    }
View Full Code Here

        // we'll just use it; otherwise, we need to create it.
        //
        List formBeans = getFormBeansByActualType( actualType, Boolean.valueOf( usesPageFlowScopedFormBean ) );

        if (formBeans == null) {
            FormBeanModel formBeanModel = addNewFormBean(formType, usesPageFlowScopedFormBean);
            formBeans = new ArrayList();
            formBeans.add(formBeanModel);
        }
       
        assert formBeans.size() > 0;
View Full Code Here

    {
        String actualTypeName = CompilerUtils.getLoadableName( formType );
        String formClass = CompilerUtils.getFormClassName( formType, _env );
        String name = getFormNameForType( actualTypeName, usesFlowScopedFormBean );
        String key = getMessageResourcesFromFormType( formType );
        FormBeanModel fb = new FormBeanModel(name, formClass, actualTypeName, usesFlowScopedFormBean, key, this);
        addFormBean( fb );
        return fb;
    }
View Full Code Here

        paramType = CompilerUtils.getGenericBoundsType( paramType );
        assert paramType instanceof DeclaredType : paramType.getClass().getName()// checker should enforce this
        TypeDeclaration decl = CompilerUtils.getDeclaration( ( DeclaredType ) paramType );
        List formBeans = parentApp.getMatchingFormBeans( decl, getFormMember() != null );
        assert formBeans.size() > 0;
        FormBeanModel formBeanModel = (FormBeanModel) formBeans.get(0);
        setFormBeanMessageResourcesKey(formBeanModel.getFormBeanMessageResourcesKey());
       
        //
        // If this isn't an ActionForm-derived argument, keep track of the classname for the runtime.
        //
        if ( ! CompilerUtils.isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, decl, parentApp.getEnv() ) )
        {
            setFormClass( CompilerUtils.getLoadableName( decl ) );
        }
       
        return formBeanModel.getName();
    }
View Full Code Here

        List formBeans = _strutsApp.getMatchingFormBeans( beanType, false );
        List formBeanNames = new ArrayList();
       
        for ( Iterator i = formBeans.iterator(); i.hasNext(); )
        {
            FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
            formBeanNames.add( formBeanModel.getName() );
        }

        return formBeanNames;
    }
View Full Code Here

            // if not indicated assume not flow scoped when adding a new bean
            boolean isFlowScoped = false;
            if (usesPageFlowScopedFormBean != null) {
                isFlowScoped = usesPageFlowScopedFormBean.booleanValue();
            }
            FormBeanModel formBeanModel = addNewFormBean(formType, isFlowScoped);
            formBeans = new ArrayList();
            formBeans.add(formBeanModel);
        }
       
        assert formBeans.size() > 0;
View Full Code Here

    {
        String actualTypeName = CompilerUtils.getLoadableName( formType );
        String formClass = CompilerUtils.getFormClassName( formType, _env );
        String name = getFormNameForType( actualTypeName, usesFlowScopedFormBean );
        String key = getMessageResourcesFromFormType( formType );
        FormBeanModel fb = new FormBeanModel(name, formClass, actualTypeName, usesFlowScopedFormBean, key, this);
        addFormBean( fb );
        return fb;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.model.FormBeanModel

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.