Package org.richfaces.cdk.model

Examples of org.richfaces.cdk.model.ClassName


        // Infer UI class name from component type.
        Name name = inferBasicName(componentType);
        name.setSimpleName(UI + name.getSimpleName());

        return new ClassName(name.toString());
    }
View Full Code Here


        }

        Name name = inferBasicName(componentType);
        name.setSimpleName(name.getSimpleName() + "Handler");

        return new ClassName(name.toString());
    }
View Full Code Here

        name.setClassifier(Classifier.component);
        // All Behavior classes belongs to "component.behavior" package.
        name.setMarkup("behavior");

        return new ClassName(name.toString());
    }
View Full Code Here

        String simpleName = name.getSimpleName();
        simpleName = simpleName.replaceFirst("Base$", "");

        name.setSimpleName(simpleName);

        return new ClassName(name.toString());
    }
View Full Code Here

        }
    }

    protected void verifyEvents(ComponentLibrary library) {
        for (EventModel event : library.getEvents()) {
            ClassName listenerInterface = event.getListenerInterface();
            SourceUtils sourceUtils = sourceUtilsProvider.get();
            if (null != listenerInterface) {
                event.setGenerateListener(!sourceUtils.isClassExists(listenerInterface));
            }
            String methodName = event.getListenerMethod();
            if (null == methodName) {
                methodName = "process";
                event.setListenerMethod(methodName);
            }
            ClassName sourceInterface = event.getSourceInterface();
            if (null != sourceInterface) {
                event.setGenerateSource(!sourceUtils.isClassExists(sourceInterface));
            }
            // Propagate event to corresponding components.
            for (ComponentModel component : library.getComponents()) {
View Full Code Here

        if (tag.isGenerate()) {
            if (null == tag.getBaseClass()) {
                tag.setBaseClass(handler);
            }
            if (null == tag.getTargetClass()) {
                ClassName inferredTagHandler = namingConventions.inferTagHandlerClass(id, tag.getType().toString());
                tag.setTargetClass(inferredTagHandler);
            }
        }
    }
View Full Code Here

TOP

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

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.