@Tag(value="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(value="./rss-items.js")
public class RssItems
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
| Constructor and Description |
|---|
RssItems(String url) |
RssItems(String url,
int max,
int maxTitleLength,
int maxExcerptLength,
boolean extractImageFromDescription) |
RssItems(String url,
int max,
int maxTitleLength,
int maxExcerptLength,
boolean extractImageFromDescription,
String attributeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
setAuto(boolean auto)
Sets the auto property to init the RSS request
|
void |
setExtractImageFromDescription(boolean extractImageFromDescription) |
void |
setMax(int max)
Sets the maximun number of items to be shown
|
void |
setMaxExcerptLength(int length)
Sets the max title excerpt length
|
void |
setMaxTitleLength(int length)
Sets the max title length
|
void |
setUrl(String url)
Sets the url of the RSS
|
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, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription)
url - rss feed urlmax - max number of items to showpublic RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription, String attributeName)
url - rss feed urlmax - max number of items to showpublic RssItems(String url)
url - rss feed urlpublic void setAuto(boolean auto)
auto - public void setMaxTitleLength(int length)
length - public void setMaxExcerptLength(int length)
length - public void setMax(int max)
max - public void setExtractImageFromDescription(boolean extractImageFromDescription)
public void setUrl(String url)
url - Copyright © 2019–2023 Flowing Code. All rights reserved.