Package org.apache.tapestry.annotations

Examples of org.apache.tapestry.annotations.Id


    {
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
        Inject fredAnnotation = mockInject();
        Inject barneyAnnotation = mockInject();
        Id barneyId = newId();

        String barneyFieldName = "_barneyBlock";
        String fredFieldName = "fred";

        train_findFieldsOfType(
View Full Code Here


        {
            Inject injectAnnotation = transformation.getFieldAnnotation(fieldName, Inject.class);

            if (injectAnnotation == null) continue;

            Id annotation = transformation.getFieldAnnotation(fieldName, Id.class);

            String blockId = getBlockId(fieldName, annotation);

            builder.addln("%s = %s.getBlock(\"%s\");", fieldName, resourcesFieldName, blockId);
View Full Code Here

    {
        if (!fieldType.equals(Block.class)) return false;

        String resourcesFieldName = transformation.getResourcesFieldName();

        Id annotation = transformation.getFieldAnnotation(fieldName, Id.class);

        String blockId = getBlockId(fieldName, annotation);

        transformation.makeReadOnly(fieldName);
View Full Code Here

    public void explicit_block_id_provided_as_annotation()
    {
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
        ObjectLocator locator = mockObjectLocator();
        Id barneyId = newId();

        String barneyFieldName = "_barneyBlock";

        train_getResourcesFieldName(ct, "rez");
View Full Code Here

    {
        if (!fieldType.equals(Block.class)) return false;

        String resourcesFieldName = transformation.getResourcesFieldName();

        Id annotation = transformation.getFieldAnnotation(fieldName, Id.class);

        String blockId = getBlockId(fieldName, annotation);

        transformation.makeReadOnly(fieldName);
View Full Code Here

    {
        if (!fieldType.equals(Block.class)) return false;

        String resourcesFieldName = transformation.getResourcesFieldName();

        Id annotation = transformation.getFieldAnnotation(fieldName, Id.class);

        String blockId = getBlockId(fieldName, annotation);

        transformation.makeReadOnly(fieldName);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.annotations.Id

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.