|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.event.EventCentral
Central class to handle all relevant user interaction event handling in the
Feed'n Read MainApplicationWindow and all of its sub components. On
the one hand it makes uses of the JFace Action framework (see
org.eclipse.jface.action package) by defining Actions for all
widgets that support this type of event handling.
On the other hand it
defines action### methods for all remaining widgets that do not
support the JFace Action framework. The main point indeed is that this
class represents a central point in which all application event handling
takes place and so runs together.
| Constructor Summary | |
EventCentral(MainApplicationWindow mainWindow)
Creates a new EventCentral instance.
|
|
| Method Summary | |
void |
actionAddressBarAddressEntered()
Called whenever a new address has been entered on user side by hitting the enter key in the address field in the NewsFeedAddressBar.
|
void |
actionAddressBarAddressSelected()
Called whenever an existing address has been selected in the NewsFeedAddressBar.
|
void |
actionAddressBarKeyPressed(KeyEvent event)
Called whenever a key has been pressed in the address bar. |
void |
actionArchiveOpenNewsFeedTabs()
Archives all open newsfeed tabs in the NewsFeedTabBar
component.
|
void |
actionBrowserLocationChanged(LocationEvent event,
Browser browser)
Called whenever the location within a InternalBrowser
changed.
|
void |
actionBrowserLocationChanging(LocationEvent event,
InternalBrowser browser)
Called whenever the location within a InternalBrowser is
about to change. |
void |
actionBrowserPageLoadingCompleted(ProgressEvent event)
Called whenever the page loading within an InternalBrowser completed.
|
void |
actionBrowserPageLoadingProgressChanged(ProgressEvent event)
Called whenever the page loading progress changed within a InternalBrowser changed.
|
void |
actionBrowserPageTitleChanged(InternalBrowser browserView,
String title)
Called whenver the page title within the specified InternalBrowser changed.
|
void |
actionBrowserStatusTextChanged(StatusTextEvent event)
Called whenever the status text within a InternalBrowser
changed.
|
void |
actionFavoritesTreeElementDoubleClicked(DoubleClickEvent event)
Action that is being execeuted when a tree element is being double clicked in the NewsFeedFavoritesTree. |
void |
actionFavoritesTreeElementSelected(SelectionChangedEvent event)
Action that is being execeuted when a tree element is being selected in the NewsFeedFavoritesTree. |
void |
actionLaunchBrowser(String url)
Launches a browser tab/window for the specified url
depending on the ConfigurationManager.ON_OPEN_LINK_BEHAVIOUR
configuration setting.
|
void |
actionNewsFeedEntryDoubleClicked(DoubleClickEvent event)
Called whenever a NewsFeedEntry has been double clicked in
a NewsFeedTable. |
void |
actionNewsFeedEntryHyperlinkActivated(HyperlinkEvent event)
Called whenever the link of a NewsFeedEntry has been
activated in the NewsContentView. |
void |
actionNewsFeedEntrySelected(SelectionChangedEvent event,
TableViewer viewer)
Handles the SelectionChangedEvent being triggered if a
NewsFeedEntryhas been selected in a
NewsFeedTable. |
int |
actionNewsFeedLinkActivated(String url,
String title)
Called whenever a link to a NewsFeed has been activated in
an InternalBrowser. |
void |
actionNewsFilterChanged(String filterText)
If the filter text changed due to user input the filter tab is required to update and show all news that match the updated filter. |
void |
actionSideBarSelectionChanged(SelectionEvent event)
Called whenever the selected component in the SideBar
changes.
|
void |
actionTabBarMaximized()
Called when the NewsFeedTabBar has been maximized, i.e.
|
void |
actionTabBarRestored()
Called when the NewsFeedTabBar has been restored, i.e.
|
void |
actionTabClosed(CTabItem tabItem,
CTabItem filteredNewsTab)
Called when a tab has been closed. |
void |
actionTabSelected(CTabItem selectedItem)
If the tab selection changed the tab view is ajusted depending on the type of tab. |
void |
actionUpdateActionStates()
Updates the states of the Action objects used in this
EventCentral.
|
void |
actionWatchesTreeElementDoubleClicked(DoubleClickEvent event)
Action that is being execeuted when a tree element is being double clicked in the NewsFeedWatchesTree. |
void |
actionWatchesTreeElementSelected(SelectionChangedEvent event)
Action that is being execeuted when a tree element is being selected in the NewsFeedWatchesTree. |
private void |
createActions()
Creates all actions defined by this application. |
private void |
createBrowserToolBarActions()
Creates all Actions defined by the ToolBar of the
InternalBrower component.
|
private void |
createToolBarActions()
Creates all ToolBar specific Actions.
|
private void |
updateFavoritesTreeActions()
Updates the Actions related to the
NewsFeedFavoritesTree component as the selection therein
has changed.
|
private void |
updateWatchesTreeActions()
Updates the Actions related to the
NewsFeedWatchesTree component as the selection therein
has changed.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MainApplicationWindow mainWindow
public OpenNewsFeedAction actionOpenNewsFeed
public UpdateNewsFeedTabAction actionUpdateNewsFeedTab
public UpdateTreeElementAction actionUpdateTreeElement
public UpdateNewsFeedFavoritesTreeAction actionUpdateNewsFeedFavoritesTree
public CloseTabAction actionCloseTab
public CloseAllTabsAction actionCloseAllTabs
public NewTreeElementAction actionNewTreeElement
public RemoveTreeElementAction actionRemoveTreeElement
public TreeElementPropertiesAction actionTreeElementProperties
public ExitAction actionExit
public ShowApplicationAction actionShowApplication
public MarkNewsReadAction actionMarkNewsRead
public MarkNewsUnreadAction actionMarkNewsUnread
public TagNewsAction actionTagNews
public UntagNewsAction actionUntagNews
public OpenNewsAction actionOpenNews
public OpenNewsInExternalBrowserAction actionOpenNewsInExternalBrowser
public MarkTabReadAction actionMarkTabRead
public MarkTreeElementReadAction actionMarkTreeElementRead
public NextNewsAction actionNextNews
public NextUnreadNewsAction actionNextUnreadNews
public ExpandAllAction actionExpandAll
public CollapseAllAction actionCollapseAll
public AggregateAction actionAggregate
public ImportAction actionImport
public ExportAction actionExport
public NewsFeedAddressBarViewAction actionNewsFeedAddressBarView
public ToolBarViewAction actionToolBarView
public SideBarViewAction actionSideBarView
public NewsFeedTabBarViewAction actionNewsFeedTabBarView
public NewsContentViewAction actionNewsContentView
public NotificationBarViewAction actionNotificationBarView
public ShowAllNewsAction actionShowAllNews
public ShowUnreadNewsAction actionShowUnreadNews
public ShowTaggedNewsAction actionShowTaggedNews
public PreviousTabAction actionPreviousTab
public NextTabAction actionNextTab
public AdjustNewsFeedTableColumnsAction actionAdjustNewsFeedTableColumns
public EnclosureListAction actionEnclosureList
public ConfigurationAction actionConfiguration
public ShowLicenseAction actionShowLicense
public ShowWebPageAction actionShowHomepage
public ShowWebPageAction actionShowMailingListHomepage
public ShowWebPageAction actionShowForumHomepage
public ShowWebPageAction actionShowBugtrackerHomepage
public ShowWebPageAction actionShowFeatureRequestHomepage
public AboutAction actionAbout
public OpenNewsFeedAction toolBarActionOpenNewsFeed
public OpenNewsAction toolBarActionOpenNews
public UpdateNewsFeedTabAction toolBarActionUpdateNewsFeedTab
public UpdateNewsFeedFavoritesTreeAction toolBarActionUpdateNewsFeedFavoritesTree
public NewTreeElementAction toolBarActionNewTreeElement
public RemoveTreeElementAction toolBarActionRemoveTreeElement
public TreeElementPropertiesAction toolBarActionTreeElementProperties
public CloseTabAction toolBarActionCloseTab
public CloseAllTabsAction toolBarActionCloseAllTabs
public PreviousTabAction toolBarActionPreviousTab
public NextTabAction toolBarActionNextTab
public BrowserBackAction toolBarActionBrowserBack
public BrowserForwardAction toolBarActionBrowserForward
public BrowserStopAction toolBarActionBrowserStop
public BrowserRefreshAction toolBarActionBrowserRefresh
public BrowserHomeAction toolBarActionBrowserHome
| Constructor Detail |
public EventCentral(MainApplicationWindow mainWindow)
Creates a new EventCentral instance.
mainWindow - the Feed'n Read main window| Method Detail |
private void createActions()
Creates all actions defined by this application.
private void createBrowserToolBarActions()
Creates all Actions defined by the ToolBar of the
InternalBrower component.
private void createToolBarActions()
Creates all ToolBar specific Actions.
public void actionFavoritesTreeElementSelected(SelectionChangedEvent event)
Action that is being execeuted when a tree element is being selected in
the NewsFeedFavoritesTree. The action updates the enabled
states of the NewsFeedFavoritesTree related
Actions.
event - the event triggered when a tree element is being selected in
the NewsFeedFavoritesTreepublic void actionWatchesTreeElementSelected(SelectionChangedEvent event)
Action that is being execeuted when a tree element is being selected in
the NewsFeedWatchesTree. The action updates the enabled
states of the NewsFeedWatchesTree related
Actions.
event - the event triggered when a tree element is being selected in
the NewsFeedWatchesTreepublic void actionUpdateActionStates()
Updates the states of the Action objects used in this
EventCentral.
public void actionFavoritesTreeElementDoubleClicked(DoubleClickEvent event)
Action that is being execeuted when a tree element is being double
clicked in the NewsFeedFavoritesTree. The action verifies
if the double clicked element is a Favorite. If that's
the case the Favorite's newsfeed url is being queried and
a new news tab is opened in the NewsFeedTabBar showing the
Favorite's associated NewsFeed.
event - the event triggered when a tree element is being double
clicked in the NewsFeedFavoritesTreepublic void actionWatchesTreeElementDoubleClicked(DoubleClickEvent event)
Action that is being execeuted when a tree element is being double
clicked in the NewsFeedWatchesTree. The action verifies
if the double clicked element is a Watch. If that's the
case a new news tab is opened in the NewsFeedTabBar
showing the NewsfeeEntries matching the Watch's
associated WatchSettings.
event - the event triggered when a tree element is being double
clicked in the NewsFeedWatchesTreepublic void actionAddressBarAddressEntered()
Called whenever a new address has been entered on user side by hitting
the enter key in the address field in the NewsFeedAddressBar.
public void actionAddressBarAddressSelected()
Called whenever an existing address has been selected in the
NewsFeedAddressBar.
public void actionAddressBarKeyPressed(KeyEvent event)
Called whenever a key has been pressed in the address bar. This method removes the selected element in the address bar upon pressing the DELETE key.
event - the KeyEvent triggered
public void actionNewsFeedEntrySelected(SelectionChangedEvent event,
TableViewer viewer)
Handles the SelectionChangedEvent being triggered if a
NewsFeedEntryhas been selected in a
NewsFeedTable. The selected NewsFeedEntry
gets marked as read. The default status is unselected which means unread.
event - the SelectionChangeEvent triggeredviewer - the TableViewer this event occured inpublic void actionNewsFeedEntryDoubleClicked(DoubleClickEvent event)
Called whenever a NewsFeedEntry has been double clicked in
a NewsFeedTable. This method opens a new browser tab to
show the NewsFeedEntry content.
event - the DoubleClickEvent triggeredpublic void actionNewsFeedEntryHyperlinkActivated(HyperlinkEvent event)
Called whenever the link of a NewsFeedEntry has been
activated in the NewsContentView. This method opens a
new browser tab to show the NewsFeedEntry content.
event - the HyperlinkEvent triggered
public void actionBrowserLocationChanged(LocationEvent event,
Browser browser)
Called whenever the location within a InternalBrowser
changed.
event - the LocationEvent that was triggeredbrowser - the Browser widget that triggered the event
public void actionBrowserLocationChanging(LocationEvent event,
InternalBrowser browser)
Called whenever the location within a InternalBrowser is
about to change. This method verifies if the location points to a
potential NewsFeed. If so it brings up a dialog that lets
the user decide whether he wants to create a Favorite for
the detected NewsFeed.
event - the LocationEvent that was triggeredbrowser - the InternalBrowser widget that triggered the
event
public int actionNewsFeedLinkActivated(String url,
String title)
Called whenever a link to a NewsFeed has been activated in
an InternalBrowser. This methods brings up a
NewsFeedLinkDialog that lets the user decide whether he
wants to create a Favorite for the detected
NewsFeed.
url - the url of the NewsFeedtitle - the title of the NewsFeed or web page that
offers the NewsFeed
NewsFeedLinkDialog;
either IDialogConstants.YES_ID if the dialog answer was YES
or IDialogConstants.NO_ID if the user answered with NOpublic void actionBrowserStatusTextChanged(StatusTextEvent event)
Called whenever the status text within a InternalBrowser
changed.
event - the StatusTextEvent that was triggered
public void actionBrowserPageTitleChanged(InternalBrowser browserView,
String title)
Called whenver the page title within the specified
InternalBrowser changed.
browserView - the InternalBrowser that reported
the changetitle - the page titlepublic void actionBrowserPageLoadingProgressChanged(ProgressEvent event)
Called whenever the page loading progress changed within a
InternalBrowser changed.
event - the ProgressEvent that was triggeredpublic void actionBrowserPageLoadingCompleted(ProgressEvent event)
Called whenever the page loading within an
InternalBrowser completed.
event - the ProgressEvent that was triggeredpublic void actionNewsFilterChanged(String filterText)
If the filter text changed due to user input the filter tab is required to update and show all news that match the updated filter.
filterText - the updated filter text
public void actionTabClosed(CTabItem tabItem,
CTabItem filteredNewsTab)
Called when a tab has been closed. This methods evaluates the closed tab and removes its data entry from the underlying management structure depending on the tab type, i.e. newsfeed or browser tab. In addition the filtered news tab is synchronized if necessary.
tabItem - the CTabItem that was closedfilteredNewsTab - the CTabItem that holds
all filtered newspublic void actionTabSelected(CTabItem selectedItem)
If the tab selection changed the tab view is ajusted depending on the
type of tab. If a browser tab has been selected the enclosing split
screen is maximized and the NewsContentView hidden.
Otherwiese a newsfeed tab has been selected and the enclosing split
screen is restored and the NewsContentView shown.
selectedItem - the CTabItem that was selectedpublic void actionTabBarMaximized()
Called when the NewsFeedTabBar has been maximized, i.e.
the maximize button has been pressed.
public void actionTabBarRestored()
Called when the NewsFeedTabBar has been restored, i.e.
the restore button has been pressed.
public void actionArchiveOpenNewsFeedTabs()
Archives all open newsfeed tabs in the NewsFeedTabBar
component.
public void actionLaunchBrowser(String url)
Launches a browser tab/window for the specified url
depending on the ConfigurationManager.ON_OPEN_LINK_BEHAVIOUR
configuration setting.
url - the url to launch a browser forpublic void actionSideBarSelectionChanged(SelectionEvent event)
Called whenever the selected component in the SideBar
changes.
event - the SelectionEvent triggeredprivate void updateFavoritesTreeActions()
Updates the Actions related to the
NewsFeedFavoritesTree component as the selection therein
has changed.
private void updateWatchesTreeActions()
Updates the Actions related to the
NewsFeedWatchesTree component as the selection therein
has changed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||