Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ComponentSpecification


        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("fred", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        component.getSpecification();
        componentc.setReturnValue(spec);

        Log log = (Log) newMock(Log.class);
View Full Code Here


        IBinding binding = newBinding("informal-value");

        TextField component = (TextField) newInstance(TextField.class, new Object[]
        { "name", "fred", "translator", translator, "validatableFieldSupport",
                validatableFieldSupport, "form", form, "specification",
                new ComponentSpecification() });

        component.setBinding("informal", binding);

        delegate.setFormComponent(component);
View Full Code Here

        IBinding binding = newBinding("informal-value");

        TextArea component = (TextArea) newInstance(TextArea.class, new Object[]
        { "name", "fred", "translator", translator, "validatableFieldSupport",
                validatableFieldSupport, "form", form, "specification",
                new ComponentSpecification() });

        component.setBinding("informal", binding);

        delegate.setFormComponent(component);
View Full Code Here

        writer.end("span");

        replayControls();

        Any any = (Any) newInstance(Any.class, new Object[]
        { "element", "span", "specification", new ComponentSpecification() });

        any.addBody(body);
        any.setBinding("class", binding);

        any.render(writer, cycle);
View Full Code Here

    private IComponentSpecification newSpec(String path)
    {
        Resource resource = new ClasspathResource(new DefaultClassResolver(), path);

        IComponentSpecification spec = new ComponentSpecification();
        spec.setSpecificationLocation(resource);

        return spec;
    }
View Full Code Here

        MockDelegate delegate = new MockDelegate();

        IBinding binding = newBinding("informal-value");

        TextArea component = (TextArea) newInstance(TextArea.class, new Object[]
        { "name", "fred", "translatedFieldSupport", tfs, "validatableFieldSupport", vfs, "value", " text area value ", "specification", new ComponentSpecification() });

        component.setBinding("informal", binding);

        trainGetForm(cyclec, cycle, form);
        trainWasPrerendered(formc, form, writer, component, false);
View Full Code Here

    }

    public void testRenderInformalParameters()
    {
        Button b = (Button) newInstance(Button.class, new Object[]
        { "name", "assignedName", "specification", new ComponentSpecification() });

        IMarkupWriter writer = newBufferWriter();
        IRequestCycle cycle = newCycle();

        IBinding binding = newBinding("informal-value");
View Full Code Here

    public void testInject()
    {
        Location l = newLocation();

        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        replayControls();

        Method m = findMethod(AnnotatedPage.class, "getClientPersistentProperty");

        new PersistAnnotationWorker().performEnhancement(op, spec, m, l);

        verifyControls();

        IPropertySpecification ps = spec.getPropertySpecification("clientPersistentProperty");

        assertEquals("client", ps.getPersistence());
        assertEquals("clientPersistentProperty", ps.getName());
        assertSame(l, ps.getLocation());
    }
View Full Code Here

    private IComponentSpecification execute(MethodAnnotationEnhancementWorker worker,
            String methodName, Location location)
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        Method method = findMethod(AnnotatedPage.class, methodName);

        replayControls();
View Full Code Here

public class TestComponentClassAnnotationWorker extends BaseAnnotationTestCase
{
    private IComponentSpecification attempt(Class baseClass, Location location)
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        replayControls();

        new ComponentClassAnnotationWorker().performEnhancement(op, spec, baseClass, location);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.spec.ComponentSpecification

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.