Package com.volantis.mcs.protocols.widgets.renderers

Examples of com.volantis.mcs.protocols.widgets.renderers.WidgetRenderer


    public XDIMEResult callOpenOnProtocol(XDIMEContextInternal context, XDIMEAttributes attributes)
        throws XDIMEException {
       
        try {
            WidgetRenderer widgetRenderer = getWidgetRenderer(context);
            if (null == widgetRenderer){
                // Do fallback if widget is not supported by the protocol
                return doFallbackOpen(context, attributes);       
            }
            widgetRenderer.renderOpen(getProtocol(context), (WidgetAttributes)protocolAttributes);
            if (!widgetRenderer.shouldRenderContents(getProtocol(context), (WidgetAttributes)protocolAttributes)) {
                return XDIMEResult.SKIP_ELEMENT_BODY;
            }
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
View Full Code Here


        return XDIMEResult.PROCESS_ELEMENT_BODY;      
     }
   
     public void callCloseOnProtocol(XDIMEContextInternal context) throws XDIMEException {
         try {
             WidgetRenderer widgetRenderer = getWidgetRenderer(context);
             if (null == widgetRenderer){
                 // Do fallback if widget is not supported by the protocol
                 doFallbackClose(context);
                 return;      
             }
             widgetRenderer.renderClose(getProtocol(context), (WidgetAttributes)protocolAttributes);
         } catch (ProtocolException e) {
             logger.error("rendering-error", getTagName(), e);

             throw new XDIMEException(exceptionLocalizer.format(
                 "rendering-error", getTagName()), e);
View Full Code Here

        // Skip initialisation if vakidator widget is not supported
        if (null == widgetModule){
            return;
        }
        try {
            WidgetRenderer renderer = widgetModule.getValidateRenderer();
            if (null == renderer || !renderer.isWidgetSupported(getProtocol(context))) {
                return;
            }              
        } catch (ProtocolException e) {
            throw new XDIMEException(e);
        }       
View Full Code Here

     *
     * @throws ProtocolException
     */
    public WidgetRenderer getWidgetRenderer(Class attributesClass)
            throws ProtocolException {
        WidgetRenderer renderer = (WidgetRenderer)renderersMap.get(attributesClass);
        if (null == renderer) {
            Class rendererClass = (Class)renderersClassMap.get(attributesClass);
            if (null != rendererClass) {
                try {
                    renderer = (WidgetRenderer)rendererClass.newInstance();
View Full Code Here

        if (shouldRenderContent) {
            try {
                WidgetModule module = getWidgetDefaultModule(protocol);
               
                if (module != null) {
                    WidgetRenderer popupRenderer = module.getPopupRenderer();
                   
                    if (popupRenderer != null) {
                        shouldRenderContent = popupRenderer.shouldRenderContents(protocol, popupAttributes);
                    }
                }
            } catch (ProtocolException e) {
                return false;
            }
View Full Code Here

   

    // javadoc inherited
    public void callCloseOnProtocol(XDIMEContextInternal context) throws XDIMEException {
        try {
            WidgetRenderer widgetRenderer = getWidgetRenderer(context);
            if (null == widgetRenderer){
                // Do fallback if widget is not supported by the protocol
                doFallbackClose(context);
                return;      
            }
View Full Code Here

           
            VolantisProtocol protocol = getProtocol(context);
            WidgetModule widgetModule = protocol.getWidgetModule();
           
            try {
                WidgetRenderer renderer =
                    widgetModule.getWidgetRenderer(buttonAttributes);
                renderer.renderOpen(protocol, buttonAttributes);
            } catch (ProtocolException e) {
                throw new XDIMEException(e);
            }
        }
        return super.callOpenOnProtocol(context, attributes);
View Full Code Here

            });
           
            WidgetModule widgetModule = protocol.getWidgetModule();
           
            try {
                WidgetRenderer renderer =
                    widgetModule.getWidgetRenderer(buttonAttributes);
                renderer.renderClose(protocol, buttonAttributes);
               
                WizardRenderer wizardRenderer = (WizardRenderer)
                    widgetModule.getWidgetRenderer(wizardAttrs);
                             
                // remember submit id in wizard renderer
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.renderers.WidgetRenderer

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.