Examples of WidgetModule


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

        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

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

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

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

            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

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

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

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

     * Convenience method for accessing FieldExpander renderer
     */
    protected FieldExpanderWidgetRenderer getFieldExpanderRenderer(XDIMEContextInternal context)
            throws ProtocolException {
       
        WidgetModule widgetModule = getProtocol(context).getWidgetModule();
        if (null != widgetModule) {
            return widgetModule.getFieldExpanderRenderer();
        }
        return null;
    }
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.