if(!isWidgetSupported(protocol)) {
return;
}
StopwatchAttributes stopwatchAttributes = (StopwatchAttributes)attributes;
protocol.writeCloseSpan(stopwatchSpanAttributes);
// insert an empty block container which will be used to store split times
BlockContainerAttributes blockContainerAttributes =
new BlockContainerAttributes();
blockContainerAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
renderWidgetOpen(protocol, blockContainerAttributes);
renderWidgetClose(protocol, blockContainerAttributes);
// retrive list of attributes of clock content element which are
// within the timer element.
List contentAttributes = stopwatchAttributes.getContentAttributes();
// create ClockContentHandler to merge contents
ClockContextHandler clockContextHandler = new ClockContextHandler();
clockContextHandler.mergeContentAttributes(contentAttributes);
String[] digits = clockContextHandler.getClockContentIds("digits");
String[] separators = clockContextHandler.getClockContentIds("separators");
Styles styles = stopwatchAttributes.getStyles();
StylesExtractor stylesExtractor = createStylesExtractor(
protocol, styles);
// count mode can be set to split and lap, default is split