Package com.volantis.mcs.protocols.ticker.attributes

Examples of com.volantis.mcs.protocols.ticker.attributes.FeedPollerAttributes


        }       

        // Require script module
        require(WIDGET_TICKER, protocol, attributes);       

        FeedPollerAttributes feedPollerAttributes = (FeedPollerAttributes) attributes;
       
        // Prepare Javascript content.
        StringWriter scriptWriter = new StringWriter();
       
        scriptWriter.write("Ticker.createFeedPoller({");

        scriptWriter.write("url:" + createJavaScriptString(feedPollerAttributes.getUrl()));
       
        if (feedPollerAttributes.getMinPollingInterval() != null)
            scriptWriter.write(", minPollingInterval:" + feedPollerAttributes.getMinPollingInterval());
       
        if (feedPollerAttributes.getMaxPollingInterval() != null)
            scriptWriter.write(", maxPollingInterval:" + feedPollerAttributes.getMaxPollingInterval());
       
        scriptWriter.write("})");
       
        addCreatedWidgetId(protocol.getMarinerPageContext().generateFCID(FEED_POLLER_ID_SUFFIX));
       
View Full Code Here


     * @param context
     */
    public FeedPollerElement(XDIMEContextInternal context) {
        super(TickerElements.FEED_POLLER, context);
       
        protocolAttributes = new FeedPollerAttributes();       
   
View Full Code Here

        return super.callOpenOnProtocol(context, attributes);
    }
   
    // Javadoc inherited
    protected void initialiseElementSpecificAttributes(XDIMEContextInternal context, XDIMEAttributes attributes) throws XDIMEException {
        FeedPollerAttributes feedPollerAttributes = (FeedPollerAttributes) protocolAttributes;
       
        feedPollerAttributes.setUrl(getUrlAttributeValue(context, attributes));
        feedPollerAttributes.setMinPollingInterval(attributes.getValue("", "min-polling-interval"));
        feedPollerAttributes.setMaxPollingInterval(attributes.getValue("", "max-polling-interval"));
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.ticker.attributes.FeedPollerAttributes

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.