Package com.volantis.mcs.protocols.widgets.internal.attributes

Examples of com.volantis.mcs.protocols.widgets.internal.attributes.EffectBlockAttributes


        renderWidgetOpen(protocol, blockContentAttributes);
       
        // Render internal EffectBlock widget, which would be used to show/hide
        // content of a page. Make the page initially invisible by setting
        // display:none style.
        EffectBlockAttributes effectBlockAttributes = new EffectBlockAttributes();
       
        effectBlockAttributes.copy(attributes);
       
        effectBlockAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
        effectBlockAttributes.getStyles().getPropertyValues()
            .setComputedAndSpecifiedValue(StylePropertyDetails.DISPLAY, DisplayKeywords.NONE);
       
        renderWidgetOpen(protocol, effectBlockAttributes);
    }
View Full Code Here


        if (!isWidgetSupported(protocol)) {
            return;
        }
       
        // Render closure of the EffectBlock widget.
        EffectBlockAttributes effectBlockAttributes =
            (EffectBlockAttributes) getCurrentAttributes(protocol);
       
        renderWidgetClose(protocol, effectBlockAttributes);

        // Render closure of the BlockContent widget.
        BlockContentAttributes blockContentAttributes =
            (BlockContentAttributes) getCurrentAttributes(protocol);

        renderWidgetClose(protocol, blockContentAttributes);

        // Prepare Javascript content to render.
        StringBuffer buffer = new StringBuffer();
       
        if (attributes.getId() != null) {
            buffer.append(createJavaScriptWidgetRegistrationOpening(attributes.getId()));

            addCreatedWidgetId(attributes.getId());
        }
       
        buffer.append("new Widget.DeckPage(")
            .append(createJavaScriptWidgetReference(blockContentAttributes.getId()))
            .append(", ")
            .append(createJavaScriptString(effectBlockAttributes.getId()))
            .append(",{})");
       
        addUsedWidgetId(blockContentAttributes.getId());
       
        if (attributes.getId() != null) {
View Full Code Here

            attributes.setId(
                   protocol.getMarinerPageContext().generateUniqueFCID());
        }
       
        // Date Picker internally renders a block
        EffectBlockAttributes blockAttributes = new EffectBlockAttributes();
        blockAttributes.copy(attributes);
        blockAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
        pushMCSAttributes(blockAttributes);
        renderWidgetOpen(protocol, blockAttributes);
       
    }
View Full Code Here

        if ( ((DatePickerAttributes)attributes).getLoadAttributes() != null ) {
            require(WidgetScriptModules.BASE_AJAX, protocol, attributes);
        }

        // Retrieve block attributes stored in doRenderOpen
        EffectBlockAttributes blockAttributes = (EffectBlockAttributes)popMCSAttributes();
        renderWidgetClose(protocol, blockAttributes);
        addUsedWidgetId(blockAttributes.getId());

        DatePickerAttributes datePickerAttributes = (DatePickerAttributes) attributes;       
       
        // Create the widget
        StringBuffer textBuffer = new StringBuffer(createJavaScriptWidgetRegistrationOpening(attributes.getId()))
            .append("new Widget.DatePicker(")
            .append(createJavaScriptString(attributes.getId()))
            .append(", ").append(createJavaScriptString(blockAttributes.getId()))
            .append(", {");
       
          if (datePickerAttributes.getInputField() != null) {
              textBuffer.append("inputField:").append(createJavaScriptString(datePickerAttributes.getInputField())).append(", ");           
          } else {
View Full Code Here

            attributes.setId(
                   protocol.getMarinerPageContext().generateUniqueFCID());
        }       
               
        // Popup internally renders a block
        EffectBlockAttributes blockAttributes = new EffectBlockAttributes();
        blockAttributes.copy(attributes);
        blockAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
        pushMCSAttributes(blockAttributes);
        renderWidgetOpen(protocol, blockAttributes);
    }
View Full Code Here

        if(!isWidgetSupported(protocol)) {
            return;
        }
       
        // Retrieve block attributes stored in doRenderOpen
        EffectBlockAttributes blockAttributes = (EffectBlockAttributes)popMCSAttributes();
        renderWidgetClose(protocol, blockAttributes);
        addUsedWidgetId(blockAttributes.getId());
               
        // Detect full screen popup. This will be used on the client side
        // to apply ugly workarounds for scrolling. 
        Styles styleTable = attributes.getStyles();
        StyleValue heightValue = styleTable.getPropertyValues()
                .getSpecifiedValue(StylePropertyDetails.HEIGHT);
        StyleValue widthValue = styleTable.getPropertyValues()
                .getSpecifiedValue(StylePropertyDetails.WIDTH);
        StyleValue positionValue = styleTable.getPropertyValues()
                .getSpecifiedValue(StylePropertyDetails.POSITION);
        StyleValue overflowValue = styleTable.getPropertyValues()
                .getSpecifiedValue(StylePropertyDetails.OVERFLOW);

        String fullScreen;
        if (heightValue != null && positionValue != null && widthValue!=null && overflowValue!=null) {
            if (heightValue.getStandardCSS().equals("100%")
                    && widthValue.getStandardCSS().equals("100%")
                    && (overflowValue.getStandardCSS().equals("scroll") || overflowValue.getStandardCSS().equals("auto"))
                    && positionValue.getStandardCSS().equals("fixed")) {
                fullScreen = new String(" fullScreen: true");               
            } else {
                fullScreen = new String(" fullScreen: false");
            }
        } else {
            fullScreen = new String(" fullScreen: false");
        }
               
        // Create the widget
        StringBuffer textBuffer = new StringBuffer(createJavaScriptWidgetRegistrationOpening(attributes.getId()))
            .append("new Widget.Popup(")
            .append(createJavaScriptString(attributes.getId()))
            .append(", ").append(createJavaScriptString(blockAttributes.getId()))
            .append(", {")
            .append(fullScreen)
            .append(", ").append(getDisappearableOptions(attributes))
            .append(", ").append(getAppearableOptions(attributes))
            .append("})")
View Full Code Here

            attributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
        }
       
        // Open outer EffectBlock widget, which will be used to show/hide this
        // Block widget.
        outerEffectBlockAttributes = new EffectBlockAttributes();
       
        outerEffectBlockAttributes.copy(attributes);
       
        outerEffectBlockAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
        getWidgetDefaultModule(protocol)
            .getWidgetRenderer(outerEffectBlockAttributes)
            .renderOpen(protocol, outerEffectBlockAttributes);

        // Open inner EffectBlock widget, which will be used to show/hide the
        // content of this Block widgets.
        innerEffectBlockAttributes = new EffectBlockAttributes();
       
        innerEffectBlockAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
        innerEffectBlockAttributes.setStyles(StylingFactory.getDefaultInstance()
                .createInheritedStyles(
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.internal.attributes.EffectBlockAttributes

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.