Package com.volantis.mcs.protocols.widgets

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


        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

                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

    /**
     * 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

    /**
     * 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

        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

        VolantisProtocol protocol = getProtocol(context);       

        if (isDynamicMenu(protocol)) {

            WidgetModule widgetModule = protocol.getWidgetModule();

            if (null == widgetModule) {
                return;
            }

            try {
                DynamicMenuWidgetRenderer dynamicMenuRenderer
                    = widgetModule.getDynamicMenuRenderer();

                if (null == dynamicMenuRenderer) {
                    return;
                }
                // render nl as menu's submenu
View Full Code Here

        // behaviour. In this way standard submit might be used by widgets.
        if(null != wizard){
            ButtonScriptHandlerAttributes buttonAttributes = new ButtonScriptHandlerAttributes();
           
            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);
            }
        }
View Full Code Here

            buttonAttributes.setActionReference(new ActionReference() {
                public String getWidgetId() {return wizardId;}
                public List getMemberNames() {return memberList;}
            });
           
            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
                wizardRenderer.setSubmitId(submitId);
            } catch (ProtocolException e) {
                throw new XDIMEException(e);
View Full Code Here

            // within the Wizard element.
        } else if (parent instanceof WizardElement) {
            // This element is directly enclosed by 'wizard' element.
            // Get the Widget module from protocol...
           
            WidgetModule widgetModule = protocol.getWidgetModule();
           
            if (widgetModule != null) {
                // Convert all ProtocolException exceptions to XDIMEException.
                try {
                    // Get Wizard renderer instance...
                wizardRenderer = (WizardRenderer) widgetModule.getWizardRenderer();
                   
                    if (wizardRenderer != null) {
                        // Get styles values for this element...
                        Styles styles = getStylingEngine(context).getStyles();
                       
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.WidgetModule

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.