org.xwiki.rendering.macro.rss
Class RssMacroParameters
java.lang.Object
org.xwiki.rendering.macro.rss.RssMacroParameters
public class RssMacroParameters
- extends Object
Parameters for the org.xwiki.rendering.internal.macro.rss.RssMacro Macro.
- Since:
- 1.8RC1
- Version:
- $Id: c807a5af3f2710e15a9364f87fc70360d043c77f $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RssMacroParameters
public RssMacroParameters()
getFeed
public String getFeed()
- Returns:
- the RSS feed URL.
setFeed
public void setFeed(String feed)
throws org.xwiki.rendering.macro.parameter.MacroParameterException
- Parameters:
feed - the RSS feed URL.
- Throws:
org.xwiki.rendering.macro.parameter.MacroParameterException - if the feed URL is malformed.
setImage
public void setImage(boolean image)
- Parameters:
image - whether to display the feed's image.
isImage
public boolean isImage()
- Returns:
- whether to display the feed's image.
setWidth
public void setWidth(String width)
- Parameters:
width - the width of the RSS box, that will dismiss potential CSS rules defining its default value.
getWidth
public String getWidth()
- Returns:
- the width of the RSS box, that will dismiss potential CSS rules defining its default value.
setCount
public void setCount(int count)
- Parameters:
count - the number of feed items to display.
getCount
public int getCount()
- Returns:
- the number of feed items to display.
getFeedURL
public URL getFeedURL()
- Returns:
- the feed's URL
setContent
public void setContent(boolean content)
- Parameters:
content - if "true" displays the content of each feed in addition to the feed item link
isContent
public boolean isContent()
- Returns:
- true if the content of each feed should be displayed
setDecoration
public void setDecoration(boolean decoration)
- Parameters:
decoration - if "true" displays UI decorations around feed and feed entries (RSS feed icon, feed items in
boxes, etc).
isDecoration
public boolean isDecoration()
- Returns:
- true if UI decorations should be displayed
Copyright © 2004–2014 XWiki. All rights reserved.