(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());
}