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

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


            if (null == widgetModule) {
                // Do fallback if widget is not supported by the protocol
                return doFallbackOpen(context, attributes);
            }
           
            TabsRenderer tabsRenderer = widgetModule.getTabsRenderer();
            if (null == tabsRenderer) {
                // Do fallback if widget is not supported by the protocol
                return doFallbackOpen(context, attributes);       
            }
            // Open tab element
            tabsRenderer.renderTabOpen(getProtocol(context),
                    (WidgetAttributes) protocolAttributes);

        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
           
View Full Code Here


            doFallbackClose(context);
            return;
        }

        try {
            TabsRenderer tabsRenderer = widgetModule.getTabsRenderer();
            if (null == tabsRenderer) {
                // Do fallback if widget is not supported by the protocol
                doFallbackClose(context);
                return;
            }
            // close tab element
            tabsRenderer.renderTabClose(getProtocol(context),
                    (WidgetAttributes) protocolAttributes);

        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
View Full Code Here

            if (null == widgetModule) {
                // Do fallback if widget is not supported by the protocol
                return doFallbackOpen(context, attributes);
            }

            TabsRenderer tabsRenderer = widgetModule.getTabsRenderer();
            if (null == tabsRenderer){
                // Do fallback if widget is not supported by the protocol
                return doFallbackOpen(context, attributes);       
            }
            // Send page context to the renderer via attributes.
            // This is necessary to switch page buffers for contents/labels
            // in the renderer.
            ((TabsAttributes)protocolAttributes)
                    .setPageContext(getPageContext(context));
           
            tabsRenderer.renderOpen(
                    getProtocol(context),
                    (WidgetAttributes)protocolAttributes);
           
            MarinerPageContext pageContext = getPageContext(context);       

            //create anonymous layout for tab's contents
            contentsRegionInstance = createAnonymousRegion(pageContext);

            //create anonymous layout for tab's labels
            labelsRegionInstance = createAnonymousRegion(pageContext);
           
            //set created anonymous layouts in tabs renderer
            tabsRenderer.setContentsRegionInstance(contentsRegionInstance);           
            tabsRenderer.setLabelsRegionInstance(labelsRegionInstance);
           
            // Open tabs elemen           
            tabsRenderer.renderTabsOpen(
                    getProtocol(context), (WidgetAttributes)protocolAttributes);
           
            if (!tabsRenderer.shouldRenderContents(getProtocol(context),
                (WidgetAttributes)protocolAttributes)) {
                return XDIMEResult.SKIP_ELEMENT_BODY;
            }
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
View Full Code Here

            doFallbackClose(context);
            return;      
        }

        try {       
            TabsRenderer tabsRenderer = widgetModule.getTabsRenderer();
            if (null == tabsRenderer) {
                // Do fallback if widget is not supported by the protocol
                doFallbackClose(context);
                return;
            }                                   
            // close tabs element
            tabsRenderer.renderTabsClose(getProtocol(context),
                    (WidgetAttributes)protocolAttributes);
            tabsRenderer.renderClose(getProtocol(context),
                    (WidgetAttributes)protocolAttributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", getTagName(), e);
   
            throw new XDIMEException(exceptionLocalizer.format(
View Full Code Here

TOP

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

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.