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

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


    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

    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

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

        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

TOP

Related Classes of com.volantis.mcs.protocols.widgets.attributes.BlockContentAttributes

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.