Examples of FeedPollerAttributes


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

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

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

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

        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

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

public class FeedPollerElement extends TickerResponseElement {

    public FeedPollerElement(XDIMEContextInternal context) {
        super(TickerResponseElements.FEED_POLLER, context);
       
        protocolAttributes = new FeedPollerAttributes();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.