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

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


        // Initialise superclass.
        super(WidgetElements.STOPWATCH, context);

        // Create an instance of DigitalClockContent attributes.
        // It'll be initialised later in initialiseAttributes() method.
        protocolAttributes = new StopwatchAttributes();
    }
View Full Code Here


        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
View Full Code Here

TOP

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

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.