|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.EventManager
The Event Manager is responsible to react on user-action. User action may for example occur when any item from the main menu is selected.
Field Summary | |
private org.eclipse.swt.dnd.Clipboard |
cb
|
private org.eclipse.swt.widgets.Display |
display
|
(package private) static int |
EDIT_ACTION_COPY
Edit Menu Action: Copy |
(package private) static int |
EDIT_ACTION_CUT
Edit Menu Action: Cut |
(package private) static int |
EDIT_ACTION_DELETE
Edit Menu Action: Delete |
(package private) static int |
EDIT_ACTION_PASTE
Edit Menu Action: Paste |
(package private) static int |
EDIT_ACTION_PROPERTIES
Edit Menu Action: Properties |
(package private) static int |
EDIT_ACTION_SELECTALL
Edit Menu Action: Select All |
private FavoritesTree |
rssOwlFavoritesTree
|
private GUI |
rssOwlGui
|
private NewsTabFolder |
rssOwlNewsTabFolder
|
private NewsText |
rssOwlNewsText
|
private Quickview |
rssOwlQuickView
|
private org.eclipse.swt.widgets.Shell |
shell
|
Constructor Summary | |
EventManager(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Shell shell,
GUI rssOwlGui)
Instantiate a new EventManager |
Method Summary | |
void |
actionAddToFavorites()
Add displayed newsfeed to favorites |
void |
actionAddToFavorites(String title,
String url)
Add displayed newsfeed to favorites |
void |
actionAggregateAllCategories()
Open all favorits |
void |
actionAggregateCategory(boolean reload)
Open all favorits of the selected category and subcategorys |
(package private) void |
actionAggregateCategory(Category rssOwlCategory,
String searchPattern,
boolean reload)
Open all favorits of the selected category and subcategorys |
(package private) void |
actionBlogNews()
Blog displayed newsfeed |
void |
actionCategoryToOPML()
Export selected category into OPML format |
void |
actionCategoryToOPML(Category selectedCat)
Export selected category into OPML format |
void |
actionCategoryToOPML(Category selectedCat,
String fileName)
Export selected category into OPML format |
(package private) void |
actionCheckUpdate()
Check for an updated RSSOwl version |
(package private) void |
actionCloseAll()
Close all opened tabs |
void |
actionCloseCurrent()
Close displayed tab |
void |
actionCopyBlogrollXmlLocation()
Copy the location of the blogroll XML to clipboard |
void |
actionCopyFavoritesXmlLocation()
Copy the XML location of the selected favorite |
(package private) void |
actionCopyNewsUrl()
Copy URL of selected newsitem |
(package private) void |
actionCopyText(org.eclipse.swt.widgets.Control text)
Copy text into clipboard |
void |
actionDeleteBlogroll()
Remove the selected blogroll |
void |
actionDeleteCategory()
Delete the selected category |
void |
actionDeleteFavorite()
Delete the selected feed |
(package private) void |
actionDiscoverFeeds()
Open the dialog to discover newsfeeds on a website |
void |
actionDiscoverFeeds(String url)
Open the dialog to discover newsfeeds on a website with the given URL. |
void |
actionEditBlogroll()
Edit the selected Blogroll |
void |
actionEditCategory()
Edit a category |
void |
actionEditFavorite()
Edit a favorite |
(package private) void |
actionExit()
Exit application |
(package private) void |
actionExportFeed(int format)
Export displayed newsfeed to pdf, rtf or html |
(package private) void |
actionExportFeed(int format,
boolean entireFeed)
Export displayed newsfeed to pdf, rtf or html |
void |
actionExportSettings(org.eclipse.swt.widgets.Shell parent)
Export settings to local file |
void |
actionFavoriteToOPML()
Generate OPML from selected favorite |
(package private) void |
actionGotoNextNews()
Goto next news (either read or unread) |
(package private) void |
actionGotoNextTab()
Goto next tab |
(package private) void |
actionGotoNextUnreadNews()
Goto next unread news |
(package private) void |
actionGotoPreviousTab()
Goto previous tab |
void |
actionHandleTreeItemSelect()
The user has selected to open a TreeItem. |
void |
actionImportBlogroll()
Import a synchronized Blogroll |
void |
actionImportOPML()
Import favorites using a OPML file |
boolean |
actionImportSettings(org.eclipse.swt.widgets.Shell parent)
Import settings from local file |
(package private) void |
actionMailNewsTip()
Create a newstip mail |
void |
actionMarkAllCategoriesRead()
Mark the favorites on all categories read |
void |
actionMarkAllNewsRead()
Mark news of selected feed read |
(package private) void |
actionMarkAllNewsRead(Channel channel)
Mark news of given feed read and also update the table in the tabitem that displays the feed. |
(package private) void |
actionMarkAllNewsRead(Channel channel,
boolean updateNewsTable)
Mark news of given feed read |
void |
actionMarkCategoryRead()
Mark the favorites on an entire category read |
(package private) void |
actionMarkCategoryRead(Category selectedCategory,
boolean updateSysTrayStatus)
Mark the favorites on an entire category read |
void |
actionMarkFavoriteRead()
Mark all news of the selected favorite read |
(package private) void |
actionMarkFavoriteRead(Favorite selectedFavorite)
Mark all news of the given favorite read |
(package private) void |
actionMarkFavoriteRead(Favorite selectedFavorite,
boolean updateSysTray)
Mark all news of the given favorite read |
(package private) void |
actionMarkNewsUnread()
Mark selected news unread |
(package private) void |
actionMinimizeWindow()
Minimize application window |
void |
actionNewCategory(boolean asSubCategory)
Add a new category |
String |
actionNewCategory(org.eclipse.swt.widgets.Shell parent,
Category parentCategory)
Add a new category |
void |
actionNewFavorite()
Add a new newsfeed favorite |
void |
actionNewFavorite(String url,
String title,
Category selectedCategory)
Display the "New favorite" dialog and create the new favorite if possible |
(package private) void |
actionOpenAbout()
Show the about dialog |
void |
actionOpenFAQ()
Open the FAQ. |
(package private) void |
actionOpenFeed()
Open newsfeed from the given path |
void |
actionOpenFeed(String url)
Open a newsfeed into the tabfolder |
(package private) void |
actionOpenNewsURL(String newsTitle)
Open the URL of the given news in the browser |
(package private) void |
actionOpenPreferences()
Show RSSOwl's preferences in a dialog |
void |
actionOpenTutorial()
Show RSSOwl's tutorial in the browser |
void |
actionOpenURL(String url)
Open the URL in the browser |
(package private) void |
actionOpenURL(String url,
boolean handleOrigURL)
Open the URL in the browser |
(package private) void |
actionOpenURLExternal(String url)
Open the URL in the external browser |
(package private) void |
actionPrintNews()
Print newstext of displayed news |
(package private) void |
actionRateNews(NewsItem rssNewsItem,
int rating)
Rate a news (AmphetaRate) |
void |
actionReload()
Reload displayed newsfeed |
void |
actionReloadAllCategories()
Reload all favorits |
void |
actionReloadFeed()
Load selected feed in the tree from source |
void |
actionRenameSelectedItem()
Rename the selected TreeItem (in place) |
(package private) void |
actionSaveFeed()
Save displayed feed to local file |
(package private) void |
actionSearch()
Search in displayed newsfeed |
(package private) void |
actionSearchFeeds()
Open the dialog to search for newsfeeds |
void |
actionSearchInAllCategories()
Search in all categories |
void |
actionSearchInCategory()
Search in an entire category |
(package private) void |
actionSearchInCategory(Category rssOwlCategory)
Search in an entire category |
void |
actionSearchInFeed()
Perform fulltext search in a feed |
void |
actionSetBrowserView(boolean enabled)
Set / Unset the internal browser view on the newstext to have HTML formatted. |
void |
actionSetProxyOnTreeItem(boolean enabled)
Enable / Disable use of proxy for this category / favorite |
(package private) void |
actionShowLicense()
Show the CPL license in a new tab |
(package private) void |
actionShowQuickview(boolean show)
Show / Hide the quickview control |
(package private) void |
actionShowToolBar(boolean show)
Show / Hide the toolbar control |
(package private) void |
actionShowWelcome()
Show the welcome tab |
void |
actionSynchronizeBlogroll()
Synchronize the selected Blogroll |
void |
actionSynchronizeBlogroll(Category blogrollRootCategory)
Synchronize the selected Blogroll |
(package private) void |
actionTellFriends()
Create a mail to advertise RSSOwl |
void |
actionValidateFeeds(boolean autoValidate)
Open the dialog to validate newsfeeds |
(package private) void |
actionViewFeedInDocument(int format)
View displayed newsfeed in pdf, rtf or html |
(package private) void |
handleEditAction(int action)
This method is called when a MenuItem from the Edit Menu is selected. |
void |
syncControls()
Get the main controls from the maincontroller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int EDIT_ACTION_COPY
static final int EDIT_ACTION_CUT
static final int EDIT_ACTION_DELETE
static final int EDIT_ACTION_PASTE
static final int EDIT_ACTION_PROPERTIES
static final int EDIT_ACTION_SELECTALL
private org.eclipse.swt.dnd.Clipboard cb
private org.eclipse.swt.widgets.Display display
private FavoritesTree rssOwlFavoritesTree
private GUI rssOwlGui
private NewsTabFolder rssOwlNewsTabFolder
private NewsText rssOwlNewsText
private Quickview rssOwlQuickView
private org.eclipse.swt.widgets.Shell shell
Constructor Detail |
public EventManager(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell, GUI rssOwlGui)
display
- The displayshell
- The shellrssOwlGui
- The MaincontrollerMethod Detail |
public void actionAddToFavorites()
public void actionAddToFavorites(String title, String url)
title
- Title of the favoriteurl
- URL of the favoritepublic void actionAggregateAllCategories()
public void actionAggregateCategory(boolean reload)
reload
- TRUE if the category is only reloaded and not displayedpublic void actionCategoryToOPML()
public void actionCategoryToOPML(Category selectedCat)
selectedCat
- The category to export into OPML.public void actionCategoryToOPML(Category selectedCat, String fileName)
selectedCat
- The category to export into OPML.fileName
- A file name suggestion.public void actionCloseCurrent()
public void actionCopyBlogrollXmlLocation()
public void actionCopyFavoritesXmlLocation()
public void actionDeleteBlogroll()
public void actionDeleteCategory()
public void actionDeleteFavorite()
public void actionDiscoverFeeds(String url)
url
- The URL to discover newsfeeds onpublic void actionEditBlogroll()
public void actionEditCategory()
public void actionEditFavorite()
public void actionExportSettings(org.eclipse.swt.widgets.Shell parent)
parent
- The parent Shell of the Dialogpublic void actionFavoriteToOPML()
public void actionHandleTreeItemSelect()
public void actionImportBlogroll()
public void actionImportOPML()
public boolean actionImportSettings(org.eclipse.swt.widgets.Shell parent)
parent
- The parent Shell of the Dialog
public void actionMarkAllCategoriesRead()
public void actionMarkAllNewsRead()
public void actionMarkCategoryRead()
public void actionMarkFavoriteRead()
public void actionNewCategory(boolean asSubCategory)
asSubCategory
- If TRUE the new category will be created as
subcategory of the selected one.public String actionNewCategory(org.eclipse.swt.widgets.Shell parent, Category parentCategory)
parent
- The parent Shell of the DialogparentCategory
- The parent category of the new category
public void actionNewFavorite()
public void actionNewFavorite(String url, String title, Category selectedCategory)
url
- Preset URL field of the dialogtitle
- Preset title field of the dialogselectedCategory
- The selected category, or NULLpublic void actionOpenFAQ()
public void actionOpenFeed(String url)
url
- The url of the newsfeedpublic void actionOpenTutorial()
public void actionOpenURL(String url)
url
- The URL to openpublic void actionReload()
public void actionReloadAllCategories()
public void actionReloadFeed()
public void actionRenameSelectedItem()
public void actionSearchInAllCategories()
public void actionSearchInCategory()
public void actionSearchInFeed()
public void actionSetBrowserView(boolean enabled)
enabled
- TRUE if the internal browser should be used to display the
newstext.public void actionSetProxyOnTreeItem(boolean enabled)
enabled
- State of use proxypublic void actionSynchronizeBlogroll()
public void actionSynchronizeBlogroll(Category blogrollRootCategory)
blogrollRootCategory
- The blogroll to synchronizepublic void actionValidateFeeds(boolean autoValidate)
autoValidate
- If TRUE, validate automatically after dialog was openedpublic void syncControls()
void actionAggregateCategory(Category rssOwlCategory, String searchPattern, boolean reload)
rssOwlCategory
- The category to aggregatesearchPattern
- The pattern to search for or NULL if not searchingreload
- TRUE if the category is only reloaded and not displayedvoid actionBlogNews()
void actionCheckUpdate()
void actionCloseAll()
void actionCopyNewsUrl()
void actionCopyText(org.eclipse.swt.widgets.Control text)
text
- Any control capable of holding textvoid actionDiscoverFeeds()
void actionExit()
void actionExportFeed(int format)
format
- PDF, RTF or HTMLvoid actionExportFeed(int format, boolean entireFeed)
format
- PDF, RTF or HTMLentireFeed
- If TRUE export the entire feed to the document. If FALSE,
get the newstitle and only generate the document from the selected
newsheader.void actionGotoNextNews()
void actionGotoNextTab()
void actionGotoNextUnreadNews()
void actionGotoPreviousTab()
void actionMailNewsTip()
void actionMarkAllNewsRead(Channel channel)
channel
- The channel to mark readvoid actionMarkAllNewsRead(Channel channel, boolean updateNewsTable)
channel
- The channel to mark readupdateNewsTable
- If TRUE also update the table that is showing
newsitems in the tabfoldervoid actionMarkCategoryRead(Category selectedCategory, boolean updateSysTrayStatus)
selectedCategory
- The category to mark readupdateSysTrayStatus
- Wether to update the Systemtray Statusvoid actionMarkFavoriteRead(Favorite selectedFavorite)
selectedFavorite
- The selected favorite containing news to mark readvoid actionMarkFavoriteRead(Favorite selectedFavorite, boolean updateSysTray)
selectedFavorite
- The selected favorite containing news to mark readupdateSysTray
- Wether to update the Systemtray statusvoid actionMarkNewsUnread()
void actionMinimizeWindow()
void actionOpenAbout()
void actionOpenFeed()
void actionOpenNewsURL(String newsTitle)
newsTitle
- Title of the newsvoid actionOpenPreferences()
void actionOpenURL(String url, boolean handleOrigURL)
url
- The URL to openhandleOrigURL
- If TRUE the selected URL is compared to the
void actionOpenURLExternal(String url)
url
- The URL to openvoid actionPrintNews()
void actionRateNews(NewsItem rssNewsItem, int rating)
rssNewsItem
- The newsitem to raterating
- One of the supported rating levels (Fantastic, Good,
Moderate, Bad, Very Bad).void actionSaveFeed()
void actionSearch()
void actionSearchFeeds()
void actionSearchInCategory(Category rssOwlCategory)
rssOwlCategory
- The category to search invoid actionShowLicense()
void actionShowQuickview(boolean show)
show
- TRUE if visiblevoid actionShowToolBar(boolean show)
show
- TRUE if visiblevoid actionShowWelcome()
void actionTellFriends()
void actionViewFeedInDocument(int format)
format
- PDF, RTF or HTMLvoid handleEditAction(int action)
action
- One of the supported actions of the edit menu
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |