|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.model.TabItemData
public class TabItemData
Model class to store data in a TabItem. The setData() Method of any TabItem in RSSOwl is used with a TabItemData Object.
| Field Summary | |
|---|---|
private Category |
aggregatedCategory
|
private Channel |
channel
|
private Table |
newsHeaderTableWidget
|
private NewsTable |
newsTable
|
private BrowserPanel |
rssOwlBrowserPanel
|
private boolean |
showsUnreadNews
|
private java.lang.String |
title
|
private int |
type
|
private static int |
TYPE_BROWSER
Tab is displaying a browser |
private static int |
TYPE_ERROR
Tab is displaying a warning |
private static int |
TYPE_FEED
Tab is displaying a feed |
private static int |
TYPE_MESSAGE
Tab is displaying a message |
private java.lang.String |
url
|
| Constructor Summary | |
|---|---|
private |
TabItemData(java.lang.String url,
java.lang.String title,
Category aggregatedCategory,
NewsTable newsTable,
Table newsHeaderTableWidget,
Channel channel,
BrowserPanel rssOwlBrowserPanel,
int type)
Private constructor which is used by the factory methods. |
| Method Summary | |
|---|---|
static TabItemData |
createBrowserData(BrowserPanel rssOwlBrowserPanel)
Create a new TabItemData with the type: Browser |
static TabItemData |
createErrorData(java.lang.String urlOrTitle)
Create a new TabItemData with the type: Error |
static TabItemData |
createFeedData(java.lang.String url,
java.lang.String title,
Channel channel,
NewsTable newsTable,
Table newsHeaderTable)
Create a new TabItemData with the type: Feed |
static TabItemData |
createMessageData(java.lang.String urlOrTitle)
Create a new TabItemData with the type: Message |
void |
dispose()
Dispose this TabItemData Object |
Category |
getAggregatedCategory()
|
Channel |
getChannel()
|
Table |
getNewsHeaderTable()
|
NewsTable |
getNewsTable()
Gets the NewsTable Proxy. |
BrowserPanel |
getRSSOwlBrowserPanel()
|
java.lang.String |
getTitle()
|
java.lang.String |
getUrl()
|
boolean |
isAggregatedCat()
|
boolean |
isBrowser()
|
boolean |
isError()
|
boolean |
isFeed()
|
boolean |
isMessage()
|
boolean |
isShowsUnreadNews()
Status flag to remember the TabItems state |
void |
setShowsUnreadNews(boolean showsUnreadNews)
Set the status flag to remember the TabItems state |
boolean |
showsCategory(Category category)
Check if the given Category is aggregated in this TabItem |
| 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_BROWSER
private static final int TYPE_ERROR
private static final int TYPE_FEED
private static final int TYPE_MESSAGE
private Category aggregatedCategory
private Channel channel
private Table newsHeaderTableWidget
private NewsTable newsTable
private BrowserPanel rssOwlBrowserPanel
private boolean showsUnreadNews
private java.lang.String title
private int type
private java.lang.String url
| Constructor Detail |
|---|
private TabItemData(java.lang.String url,
java.lang.String title,
Category aggregatedCategory,
NewsTable newsTable,
Table newsHeaderTableWidget,
Channel channel,
BrowserPanel rssOwlBrowserPanel,
int type)
url - The URL of the feedtitle - The title of the feedaggregatedCategory - If this is an aggregation, the aggregated
categorynewsHeaderTableWidget - The table holding the newsheader of the feedchannel - The displayed channel if this tab is displaying a feedrssOwlBrowserPanel - The browser panel if a browser is displayedtype - The type of the tab| Method Detail |
|---|
public static TabItemData createBrowserData(BrowserPanel rssOwlBrowserPanel)
rssOwlBrowserPanel - The browserpanel used by the browser
public static TabItemData createErrorData(java.lang.String urlOrTitle)
urlOrTitle - URL or Title of the Error
public static TabItemData createFeedData(java.lang.String url,
java.lang.String title,
Channel channel,
NewsTable newsTable,
Table newsHeaderTable)
url - The URL of the feedtitle - The title of the feedchannel - The displayed channel if this tab is displaying a feednewsTable - The NewsTable proxynewsHeaderTable - The table holding the newsheader of the feed
public static TabItemData createMessageData(java.lang.String urlOrTitle)
urlOrTitle - URL or Title of the Message / Error
public void dispose()
public Category getAggregatedCategory()
public Channel getChannel()
public Table getNewsHeaderTable()
public NewsTable getNewsTable()
public BrowserPanel getRSSOwlBrowserPanel()
public java.lang.String getTitle()
public java.lang.String getUrl()
public boolean isAggregatedCat()
public boolean isBrowser()
public boolean isError()
public boolean isFeed()
public boolean isMessage()
public boolean isShowsUnreadNews()
public void setShowsUnreadNews(boolean showsUnreadNews)
showsUnreadNews - The showsUnreadNews to set.public boolean showsCategory(Category category)
category - The category to check if shown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||