Package org.richfaces.cdk.model

Examples of org.richfaces.cdk.model.ComponentModel


        return new ClassName(name.toString());
    }

    private Name inferBasicName(FacesId componentType) {
        ComponentModel component = library.getComponentByType(componentType);
        String baseClassName = component.getBaseClass().getName();
        Name name = Name.create(baseClassName);

        name.setClassifier(null);
        name.setMarkup(null);
View Full Code Here


            // Propagate attributes from parent component, if any.
            verified.add(component);
            if (null != component.getBaseClass()) {
                try {
                    // Step one, lookup for parent.
                    ComponentModel parentComponent = findParent(library.getComponents(), component);
                    component.setParent(parentComponent);
                    if (null == component.getFamily()) {
                        component.setFamily(parentComponent.getFamily());
                    }
                    // To be sure what all properties for parent component were propagated.
                    verifyComponentAttributes(library, parentComponent, verified);
                    for (PropertyBase parentAttribute : parentComponent.getAttributes()) {
                        PropertyBase attribute = component.getOrCreateAttribute(parentAttribute.getName());
                        attribute.merge(parentAttribute);
                        // already exists in parent component.
                        attribute.setGenerate(false);
                    }
View Full Code Here

    private BeanProperty findBeanProperty(PropertyBase attribute, GeneratedFacesComponent component) {
        SourceUtils sourceUtils = sourceUtilsProvider.get();
        BeanProperty beanProperty = sourceUtils.getBeanProperty(component.getBaseClass(), attribute.getName());
        if (beanProperty instanceof DummyPropertyImpl && component instanceof ComponentModel) {
            ComponentModel model = (ComponentModel) component;
            if (null != model.getParent()) {
                beanProperty = findBeanProperty(attribute, model.getParent());
            }
        }
        if (beanProperty instanceof DummyPropertyImpl && component instanceof ModelElementBase) {
            ModelElementBase model = (ModelElementBase) component;
            for (ClassName interfaceName : model.getInterfaces()) {
                beanProperty = sourceUtils.getBeanProperty(interfaceName, attribute.getName());
                if (!(beanProperty instanceof DummyPropertyImpl)) {
                    break;
                }
            }
View Full Code Here

TOP

Related Classes of org.richfaces.cdk.model.ComponentModel

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.