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";