Class RssItems

java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.rssitems.RssItems
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasSize, HasStyle, Serializable

@Tag("rss-items") @NpmPackage(value="@polymer/iron-ajax",version="3.0.1") @NpmPackage(value="@polymer/iron-image",version="3.0.2") @NpmPackage(value="x2js",version="3.4.0") @JsModule("./rss-items.js") public class RssItems extends Component implements HasSize, HasStyle
Simple RSS Reader component based on https://github.com/TherapyChat/rss-items
Author:
Martin Lopez / Flowing Code
See Also:
  • Constructor Details

    • RssItems

      public RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription)
      Parameters:
      url - rss feed url
      max - max number of items to show
    • RssItems

      public RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription, String attributeName)
      Parameters:
      url - rss feed url
      max - max number of items to show
    • RssItems

      public RssItems(String url)
      Parameters:
      url - rss feed url
  • Method Details

    • setAuto

      public void setAuto(boolean auto)
      Sets the auto property to init the RSS request
      Parameters:
      auto -
    • setMaxTitleLength

      public void setMaxTitleLength(int length)
      Sets the max title length
      Parameters:
      length -
    • setMaxExcerptLength

      public void setMaxExcerptLength(int length)
      Sets the max title excerpt length
      Parameters:
      length -
    • setMax

      public void setMax(int max)
      Sets the maximun number of items to be shown
      Parameters:
      max -
    • setExtractImageFromDescription

      public void setExtractImageFromDescription(boolean extractImageFromDescription)
    • setUrl

      public void setUrl(String url)
      Sets the url of the RSS
      Parameters:
      url -