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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAuto(boolean auto) Sets the auto property to init the RSS requestvoidsetExtractImageFromDescription(boolean extractImageFromDescription) voidsetMax(int max) Sets the maximun number of items to be shownvoidsetMaxExcerptLength(int length) Sets the max title excerpt lengthvoidsetMaxTitleLength(int length) Sets the max title lengthvoidSets the url of the RSSMethods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
RssItems
public RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription) - Parameters:
url- rss feed urlmax- 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 urlmax- max number of items to show
-
RssItems
- 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
Sets the url of the RSS- Parameters:
url-
-