@Tag(value="rss-items") @HtmlImport(value="bower_components/rss-items/rss-items.html") public class RssItems extends com.vaadin.flow.component.polymertemplate.PolymerTemplate<RssItemsModel> 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) |
Modifier and Type | Method and Description |
---|---|
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
|
getChildren, getModel, getModelType, isSupportedClass
getModelType, getStateNode
addListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getWidth, setHeight, setSizeFull, setSizeUndefined, setWidth
public RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription)
url
- rss feed urlmax
- max number of items to showpublic RssItems(String url)
url
- rss feed urlpublic void setMaxTitleLength(int length)
length
- public void setMaxExcerptLength(int length)
length
- public void setMax(int max)
max
- public void setExtractImageFromDescription(boolean extractImageFromDescription)
Copyright © 2019–2020 Flowing Code. All rights reserved.