Examples of handlesEvent()


Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

    {
        String pageClassName = resolver.resolvePageNameToClassName(pageName);

        ComponentModel model = modelSource.getModel(pageClassName);

        if (model.handlesEvent(eventType))
        {
            Component page = componentSource.getPage(pageName);

            page.getComponentResources().triggerEvent(eventType, new Object[]
            { link, parameters }, null);
View Full Code Here

Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

        if (hasHandler == null)
        {
            ComponentModel model = modelSource.getPageModel(pageName);

            hasHandler = model.handlesEvent(EventConstants.PASSIVATE);

            cache.put(pageName, hasHandler);
        }

        // If no handler for the event, then no need to fire the event (and more importantly,
View Full Code Here

Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

        RequestPageCache pageCache = mockRequestPageCache();
        Page page = mockPage();
        ComponentPageElement element = mockComponentPageElement();
        expect(modelSource.getPageModel(pageName)).andReturn(model);

        expect(model.handlesEvent(EventConstants.PASSIVATE)).andReturn(true);

        train_get(pageCache, pageName, page);

        train_getRootElement(page, element);
View Full Code Here

Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

        ComponentModelSource modelSource = mockComponentModelSource();
        RequestPageCache pageCache = mockRequestPageCache();

        expect(modelSource.getPageModel(pageName)).andReturn(model);

        expect(model.handlesEvent(EventConstants.PASSIVATE)).andReturn(false);

        replay();

        PageActivationContextCollector collector
                = new PageActivationContextCollectorImpl(coercer, pageCache, modelSource);
View Full Code Here

Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

        ComponentModel model = mockComponentModel();
        Page page = mockPage();

        expect(modelSource.getPageModel(pageName)).andReturn(model);

        expect(model.handlesEvent(EventConstants.PASSIVATE)).andReturn(true);

        train_get(pageCache, pageName, page);

        train_getRootElement(page, element);
View Full Code Here

Examples of org.apache.tapestry5.model.ComponentModel.handlesEvent()

        if (hasHandler == null)
        {
            ComponentModel model = modelSource.getPageModel(pageName);

            hasHandler = model.handlesEvent(EventConstants.PASSIVATE);

            cache.put(pageName, hasHandler);
        }

        // If no handler for the event, then no need to fire the event (and more importantly,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.