Examples of DeckAttributes


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

     * @param context
     */
    public DeckElement(XDIMEContextInternal context) {
        super(WidgetElements.DECK, context);

        protocolAttributes = new DeckAttributes();
    }
View Full Code Here

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

       
        renderWidgetOpen(protocol, blockContainerAttributes);
       
        renderWidgetClose(protocol, blockContainerAttributes);
       
        DeckAttributes deckAttributes = (DeckAttributes) attributes;

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

            addCreatedWidgetId(attributes.getId());
        }
       
        buffer.append("new Widget.Deck(")
            .append(createJavaScriptWidgetReference(blockContainerAttributes.getId()))
            .append(",{");
       
        // Render display mode.
        buffer.append("mode:")
            .append(createJavaScriptString(deckAttributes.getStyles()
                    .getPropertyValues().getComputedValue(StylePropertyDetails.MCS_DECK_MODE)
                    .getStandardCSS()));

        // Render deck pages: loaded or embeeded in static way
        LoadAttributes loadAttributes = deckAttributes.getLoadAttributes();
       
        if (loadAttributes != null) {
            String when = loadAttributes.getWhen();
            if (when == null) when = "onload";
           
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.