|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.rssowl.model.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 org.eclipse.swt.widgets.Table |
newsHeaderTable
|
private Channel |
rssChannel
|
private BrowserPanel |
rssOwlBrowserPanel
|
private boolean |
showsUnreadNews
|
private 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 String |
url
|
Constructor Summary | |
private |
TabItemData(String url,
String title,
Category aggregatedCategory,
org.eclipse.swt.widgets.Table newsHeaderTable,
Channel rssChannel,
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(String urlOrTitle)
Create a new TabItemData with the type: Error |
static TabItemData |
createFeedData(String url,
String title,
Channel rssChannel,
org.eclipse.swt.widgets.Table newsHeaderTable)
Create a new TabItemData with the type: Feed |
static TabItemData |
createMessageData(String urlOrTitle)
Create a new TabItemData with the type: Message |
void |
dispose()
Dispose this TabItemData Object |
Category |
getAggregatedCategory()
|
org.eclipse.swt.widgets.Table |
getNewsHeaderTable()
|
Channel |
getRSSChannel()
|
BrowserPanel |
getRSSOwlBrowserPanel()
|
String |
getTitle()
|
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 org.eclipse.swt.widgets.Table newsHeaderTable
private Channel rssChannel
private BrowserPanel rssOwlBrowserPanel
private boolean showsUnreadNews
private String title
private int type
private String url
Constructor Detail |
private TabItemData(String url, String title, Category aggregatedCategory, org.eclipse.swt.widgets.Table newsHeaderTable, Channel rssChannel, BrowserPanel rssOwlBrowserPanel, int type)
url
- The URL of the feedtitle
- The title of the feedaggregatedCategory
- If this is an aggregation, the aggregated
categorynewsHeaderTable
- The table holding the newsheader of the feedrssChannel
- The displayed rsschannel if this tab is displaying a feedrssOwlBrowserPanel
- The browser panel if a browser is displayedtype
- The type of the tabMethod Detail |
public static TabItemData createBrowserData(BrowserPanel rssOwlBrowserPanel)
rssOwlBrowserPanel
- The browserpanel used by the browser
public static TabItemData createErrorData(String urlOrTitle)
urlOrTitle
- URL or Title of the Error
public static TabItemData createFeedData(String url, String title, Channel rssChannel, org.eclipse.swt.widgets.Table newsHeaderTable)
url
- The URL of the feedtitle
- The title of the feedrssChannel
- The displayed rsschannel if this tab is displaying a feednewsHeaderTable
- The table holding the newsheader of the feed
public static TabItemData createMessageData(String urlOrTitle)
urlOrTitle
- URL or Title of the Message / Error
public void dispose()
public Category getAggregatedCategory()
public org.eclipse.swt.widgets.Table getNewsHeaderTable()
public Channel getRSSChannel()
public BrowserPanel getRSSOwlBrowserPanel()
public String getTitle()
public 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 |