Examples of WidgetModule


Examples of com.volantis.mcs.protocols.widgets.WidgetModule

    // Javadoc inherited
    protected void initialiseElementSpecificAttributes(
            XDIMEContextInternal context, XDIMEAttributes attributes)
            throws XDIMEException {
       
        WidgetModule widgetModule =  getWidgetModule(context);
       
        // 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

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

        // directly inside the containing list element which is invalid.
        boolean shouldRenderBody = false;
       
        if (isDynamicMenu(parent, protocol)) {

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

            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();
               
                if (null == dynamicMenuRenderer) {
                    return XDIMEResult.SKIP_ELEMENT_BODY;
                }                   
                shouldRenderBody = dynamicMenuRenderer.renderLabelOpen(
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

            throws XDIMEException {

        VolantisProtocol protocol = getProtocol(context);

        if (isDynamicMenu(context.getCurrentElement(), protocol)) {
            WidgetModule widgetModule = protocol.getWidgetModule();
            // Do nothing if widgets are not supported at all
            if (null == widgetModule) {
                return;
            }
           
            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();
               
                if (null == dynamicMenuRenderer) {
                    return;
                }
                // render label as dynamic menu item which has submenu
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

        boolean shouldRenderContent = isWidgetSupported(protocol);
       
        // If it should, check if the content for the popup should be rendered.
        if (shouldRenderContent) {
            try {
                WidgetModule module = getWidgetDefaultModule(protocol);
               
                if (module != null) {
                    WidgetRenderer popupRenderer = module.getPopupRenderer();
                   
                    if (popupRenderer != null) {
                        shouldRenderContent = popupRenderer.shouldRenderContents(protocol, popupAttributes);
                    }
                }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

        try {
            MapRenderer mapRenderer = null;
           
            // First get the widget module, which is a part of protocol
            // responsible for rendering widgets. Thec ask for renderer.
            WidgetModule widgetModule =  getWidgetModule(context);       
            if (null != widgetModule){
                mapRenderer = widgetModule.getMapRenderer();
            }
      
            if (null != mapRenderer){
                mapRenderer.renderMapView(getProtocol(context),
                        (WidgetAttributes)protocolAttributes);            
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

        xFormBuilder.generateImplicitElements(protocol);

        xFormBuilder.registerFormDescriptors(protocol);

        // Render Widget closure.
        WidgetModule module = protocol.getWidgetModule();
       
        if (module != null) {
            try {
                module.renderClose(protocol);
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);

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

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

                pageContext.getListenerEventRegistry();
        // Fail if the page has event listeners which were unused.
        eventRegistry.complete();

        // Render Widget closure.
        WidgetModule module = protocol.getWidgetModule();
       
        if (module != null) {
            try {
                module.renderClose(protocol);
            } catch (ProtocolException e) {
                logger.error("rendering-error", getTagName(), e);

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

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

    /**
     * Convenience methiod for accessing DynamicMenuWidgetRenderer
     */
    private DynamicMenuWidgetRenderer getDynamicMenuRenderer(VolantisProtocol protocol)
            throws ProtocolException {
        WidgetModule widgetModule = protocol.getWidgetModule();
        return (widgetModule != null) ?
            widgetModule.getDynamicMenuRenderer() : null;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

    /**
     * Convenience methiod for accessing AutocompleteRenderer
     */
    private AutocompleteRenderer getAutocompleteRenderer(VolantisProtocol protocol)
            throws ProtocolException {
        WidgetModule widgetModule = protocol.getWidgetModule();
        return (widgetModule != null) ?
            widgetModule.getAutocompleteRenderer() : null;       
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.WidgetModule

        VolantisProtocol protocol = getProtocol(context);

        try {           
            if (isDynamicMenu(protocol)) {

                WidgetModule widgetModule = protocol.getWidgetModule();
                // 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
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.