Package org.apache.tapestry.internal.services

Examples of org.apache.tapestry.internal.services.ComponentEventImpl


        // Provide a default handler for when the provided handler is null.

        if (handler == null)
            handler = new NotificationEventHandler(eventType, _completeId);

        ComponentEvent event = new ComponentEventImpl(eventType, _id, context, handler,
                _typeCoercer);

        ComponentPageElement component = this;

        while (component != null)
        {
            result |= component.handleEvent(event);

            if (event.isAborted())
                return result;

            component = component.getContainerElement();
        }
View Full Code Here


        ComponentPageElement component = this;
        String componentId = "";

        while (component != null)
        {
            ComponentEvent event = new ComponentEventImpl(eventType, componentId, context, handler,
                    _typeCoercer);

            result |= component.handleEvent(event);

            if (event.isAborted()) return result;

            // On each bubble up, make the event appear to come from the previous component
            // in which the event was triggered.

            componentId = component.getId();
View Full Code Here

        while (component != null)
        {
            try
            {
                ComponentEvent event = new ComponentEventImpl(currentEventType, componentId, currentContext, wrapped,
                                                              _pageResources);

                result |= component.dispatchEvent(event);

                if (event.isAborted()) return result;
            }
            catch (RuntimeException ex)
            {
                // An exception in an event handler method
                // while we're trying to handle a previous exception!
View Full Code Here

        ComponentPageElement component = this;
        String componentId = "";

        while (component != null)
        {
            ComponentEvent event = new ComponentEventImpl(eventType, componentId, context, handler,
                    _typeCoercer);

            result |= component.handleEvent(event);

            if (event.isAborted()) return result;

            // On each bubble up, make the event appear to come from the previous component
            // in which the event was triggered.

            componentId = component.getId();
View Full Code Here

        };


        while (component != null)
        {
            ComponentEvent event = new ComponentEventImpl(eventType, componentId, context, wrappedHandler, _typeCoercer,
                                                          _classLoader);

            result |= component.handleEvent(event);

            if (event.isAborted()) return result;

            // On each bubble up, make the event appear to come from the previous component
            // in which the event was triggered.

            componentId = component.getId();
View Full Code Here

        // Provide a default handler for when the provided handler is null.

        if (handler == null)
            handler = new NotificationEventHandler(eventType, _completeId);

        ComponentEvent event = new ComponentEventImpl(eventType, _id, context, handler,
                _typeCoercer);

        ComponentPageElement component = this;

        while (component != null)
        {
            result |= component.handleEvent(event);

            if (event.isAborted())
                return result;

            component = component.getContainerElement();
        }
View Full Code Here

        while (component != null)
        {
            try
            {
                ComponentEvent event = new ComponentEventImpl(currentEventType, componentId, currentContext, wrapped,
                                                              _pageResources);

                result |= component.dispatchEvent(event);

                if (event.isAborted()) return result;
            }
            catch (RuntimeException ex)
            {
                // An exception in an event handler method
                // while we're trying to handle a previous exception!
View Full Code Here

        ComponentPageElement component = this;
        String componentId = "";

        while (component != null)
        {
            ComponentEvent event = new ComponentEventImpl(eventType, componentId, context, handler,
                    _typeCoercer);

            result |= component.handleEvent(event);

            if (event.isAborted()) return result;

            // On each bubble up, make the event appear to come from the previous component
            // in which the event was triggered.

            componentId = component.getId();
View Full Code Here

        while (component != null)
        {
            try
            {
                ComponentEvent event = new ComponentEventImpl(currentEventType, componentId, currentContext, wrapped,
                                                              _pageResources);

                result |= component.dispatchEvent(event);

                if (event.isAborted()) return result;
            }
            catch (RuntimeException ex)
            {
                // An exception in an event handler method
                // while we're trying to handle a previous exception!
View Full Code Here

TOP

Related Classes of org.apache.tapestry.internal.services.ComponentEventImpl

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.