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

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


            if (null == widgetModule) {
                return XDIMEResult.SKIP_ELEMENT_BODY;
            }

            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();
               
                if (null == dynamicMenuRenderer) {
                    return XDIMEResult.SKIP_ELEMENT_BODY;
                }                   
                shouldRenderBody = dynamicMenuRenderer.renderLabelOpen(
                        getProtocol(context), protocolAttributes);
               
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);
View Full Code Here


            if (null == widgetModule) {
                return;
            }
           
            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();
               
                if (null == dynamicMenuRenderer) {
                    return;
                }
                // render label as dynamic menu item which has submenu
                dynamicMenuRenderer.renderLabelClose(
                        getProtocol(context), protocolAttributes);
               
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);
                throw new XDIMEException(exceptionLocalizer.format(
View Full Code Here

        VolantisProtocol protocol = getProtocol(context);

        try {
            if (isDynamicMenu(parent, protocol)) {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = getDynamicMenuRenderer(protocol);

                if (null == dynamicMenuRenderer) {
                    return XDIMEResult.SKIP_ELEMENT_BODY;
                }
                // render li element as div element - item dynamic menu
                dynamicMenuRenderer.renderLiOpen(
                        protocol, (ListItemAttributes) protocolAttributes);
               
            } else if (isAutocompleter(parent)) {
                // render LI element in special way if it is
                // response:autocomplete item
View Full Code Here

        VolantisProtocol protocol = getProtocol(context);

        try {
            if (isDynamicMenu(context.getCurrentElement(), protocol)) {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                        = getDynamicMenuRenderer(protocol);
                if (null != dynamicMenuRenderer) {
                    // render li element as div element - item dynamic menu
                    dynamicMenuRenderer.renderLiClose(
                            protocol, (ListItemAttributes) protocolAttributes);
                }
            } else if (isAutocompleter(parent)) {
                // render as AutocompleteResponse
                // render javascript register active style method if is needed
View Full Code Here

                // Do nothing if widgets are not supported at all
                if (null == widgetModule) {
                    return XDIMEResult.SKIP_ELEMENT_BODY;
                }

                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();
               
                if (null == dynamicMenuRenderer) {
                    return XDIMEResult.SKIP_ELEMENT_BODY;
                }
                // render nl as menu's submenu
                dynamicMenuRenderer.renderNlOpen(getProtocol(context),
                        (NavigationListAttributes) protocolAttributes);
            } else {
                protocol.writeOpenUnorderedList((UnorderedListAttributes) protocolAttributes);
            }
        } catch (ProtocolException e) {
View Full Code Here

            if (null == widgetModule) {
                return;
            }

            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();

                if (null == dynamicMenuRenderer) {
                    return;
                }
                // render nl as menu's submenu
                dynamicMenuRenderer.renderNlClose(getProtocol(context),
                        (NavigationListAttributes) protocolAttributes);
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);
                throw new XDIMEException(exceptionLocalizer.format(
                        "rendering-error", getTagName()), e);
View Full Code Here

TOP

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

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.