Examples of BlockContentAttributes


Examples of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

        // Initialise superclass.
        super(WidgetElements.BLOCK_CONTENT, context);

        // Create an instance of Container attributes.
        // It'll be initialised later in initialiseAttributes() method.
        protocolAttributes = new BlockContentAttributes();
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

    private void renderOpenForGalleryItem(VolantisProtocol protocol, MCSAttributes attributes) throws ProtocolException {
        if (!isWidgetSupported(protocol)) {
            return;
        }

        blockContentAttributes = new BlockContentAttributes();

        blockContentAttributes.copy(attributes);
       
        if (blockContentAttributes.getId() == null) {
            blockContentAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());       
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

    private void renderOpenForGalleryItem(VolantisProtocol protocol, MCSAttributes attributes) throws ProtocolException {
        if (!isWidgetSupported(protocol)) {
            return;
        }

        blockContentAttributes = new BlockContentAttributes();
       
        blockContentAttributes.copy(attributes);
       
        if (blockContentAttributes.getId() == null) {
            blockContentAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());       
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

        // anything.
        if (!isWidgetSupported(protocol)) {
            return;
        }

        BlockContentAttributes myAttributes = (BlockContentAttributes) attributes;

        require(WidgetScriptModules.BASE_BB_CONTENT, protocol, attributes);

        // Open internal BlockContent element, which would contain the content
        // for this BlockContent widget.
        blockContentAttributes = new com.volantis.mcs.protocols.widgets.internal.attributes.BlockContentAttributes();
       
        blockContentAttributes.copy(attributes);
       
        blockContentAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
        if (myAttributes.isForResponse()) {
            if (myAttributes.getId() == null) {
                myAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
            }
        }
       
        getWidgetDefaultModule(protocol)
            .getWidgetRenderer(blockContentAttributes)
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

        if (attributes.getId() != null) {
            buffer.append(")");                 
        }

        // if widget:block-content inside response:body element
        BlockContentAttributes myAttributes = (BlockContentAttributes) attributes;
       
        if(myAttributes.isForResponse()) {
            buffer.append("; this.blockContent = Widget.getInstance('" + myAttributes.getId() + "')");                   
        }
       
        // Write JavaScript Container to DOM.
        try {
            getJavaScriptWriter().write(buffer.toString());
View Full Code Here

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

        require(WidgetScriptModules.CE_SLIDE, protocol, attributes);
        require(WidgetScriptModules.CE_PULSATE, protocol, attributes);

        // Render internal BlockContent widget which will contain a content of
        // the page.
        BlockContentAttributes blockContentAttributes = new BlockContentAttributes();
       
        blockContentAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
        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
View Full Code Here

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

            (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) {
            buffer.append(createJavaScriptWidgetRegistrationClosure());
        }
       
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.