|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.model.TreeItemData
Model class to store data in a TreeItem. The setData() Method of any TreeItem in RSSOwl is used with a TreeItemData Object.
Field Summary | |
private Favorite |
favorite
|
private String |
name
|
private boolean |
statusUnread
|
private int |
type
|
private static int |
TYPE_BLOGROLL
TreeItem is a blogroll |
private static int |
TYPE_BLOGROLL_FAVORITE
TreeItem is a blogroll favorite |
private static int |
TYPE_CATEGORY
TreeItem is a category |
private static int |
TYPE_FAVORITE
TreeItem is a favorite |
Constructor Summary | |
private |
TreeItemData(int type,
String name,
boolean statusUnread)
Private constructor that is used by the factory methods |
Method Summary | |
static TreeItemData |
createBlogroll(String name,
boolean statusUnread)
Create a new TreeItem with the type: Blogroll |
static TreeItemData |
createBlogrollFavorite(String name,
boolean statusUnread)
Create a new TreeItem with the type: Blogroll Favorite |
static TreeItemData |
createCategory(String name,
boolean statusUnread)
Create a new TreeItem with the type: Category |
static TreeItemData |
createFavorite(String name,
boolean statusUnread)
Create a new TreeItem with the type: Favorite |
Favorite |
getFavorite()
If this Data Object is from a Favorite, store a reference to the connected model object. |
String |
getName()
Get the name for this TreeItem |
boolean |
isBlogroll()
|
boolean |
isBlogrollFavorite()
|
boolean |
isCategory()
|
boolean |
isFavorite()
|
boolean |
isStatusUnread()
Get the status of this TreeItem. |
void |
setFavorite(Favorite favorite)
If this Data Object is from a Favorite, store a reference to the connected model object. |
void |
setStatusUnread(boolean statusUnread)
Set the status of this TreeItem. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int TYPE_BLOGROLL
private static final int TYPE_BLOGROLL_FAVORITE
private static final int TYPE_CATEGORY
private static final int TYPE_FAVORITE
private Favorite favorite
private String name
private boolean statusUnread
private int type
Constructor Detail |
private TreeItemData(int type, String name, boolean statusUnread)
type
- The type of the TreeItemname
- Name of the given TreeItemstatusUnread
- TRUE indicates that Favorite contains unread newsMethod Detail |
public static TreeItemData createBlogroll(String name, boolean statusUnread)
name
- Name of the given TreeItemstatusUnread
- TRUE indicates that Favorite contains unread news
public static TreeItemData createBlogrollFavorite(String name, boolean statusUnread)
name
- Name of the given TreeItemstatusUnread
- TRUE indicates that Favorite contains unread news
public static TreeItemData createCategory(String name, boolean statusUnread)
name
- Name of the given TreeItemstatusUnread
- TRUE indicates that Favorite contains unread news
public static TreeItemData createFavorite(String name, boolean statusUnread)
name
- Name of the given TreeItemstatusUnread
- TRUE indicates that Favorite contains unread news
public Favorite getFavorite()
public String getName()
public boolean isBlogroll()
public boolean isBlogrollFavorite()
public boolean isCategory()
public boolean isFavorite()
public boolean isStatusUnread()
public void setFavorite(Favorite favorite)
favorite
- The Favorite Model Object to set.public void setStatusUnread(boolean statusUnread)
statusUnread
- The statusUnread to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |