|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.panel.BrowserPanel
This is the Web-Browser support for RSSOwl. It loads a Browser in a Composite and opens URLs.
Field Summary | |
(package private) org.eclipse.swt.browser.Browser |
browser
|
private org.eclipse.swt.widgets.Composite |
browserPanel
|
private static String |
FEED_PROTOCOL_LONG
The Long Feed Protocol URI Syntax |
private static String |
FEED_PROTOCOL_SHORT
The Short Feed Protocol URI Syntax |
private org.eclipse.swt.widgets.ToolItem |
itemBack
|
private org.eclipse.swt.widgets.ToolItem |
itemDiscovery
|
private org.eclipse.swt.widgets.ToolItem |
itemForward
|
private org.eclipse.swt.widgets.ToolItem |
itemHome
|
private org.eclipse.swt.widgets.ToolItem |
itemNewTab
|
private org.eclipse.swt.widgets.ToolItem |
itemReload
|
private org.eclipse.swt.widgets.ToolItem |
itemStop
|
private static String |
JAVA_SCRIPT_PRINT
JavaScript command to print the current website of the Browser |
(package private) org.eclipse.swt.widgets.Text |
location
|
private org.eclipse.swt.widgets.Composite |
parent
|
(package private) org.eclipse.swt.custom.CTabItem |
parentTabItem
|
(package private) GUI |
rssOwlGui
|
(package private) String |
saveHome
|
private boolean |
showControls
|
private boolean |
showNewTabControl
|
(package private) org.eclipse.swt.widgets.Label |
status
|
(package private) org.eclipse.swt.widgets.Label |
statusProgressBar
|
Constructor Summary | |
BrowserPanel(GUI rssOwlGui,
org.eclipse.swt.widgets.Composite parent,
boolean showControls)
Instantiate a new BrowserPanel |
|
BrowserPanel(GUI rssOwlGui,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.custom.CTabItem parentTabItem,
boolean showControls,
boolean showNewTabControl)
Instantiate a new BrowserPanel |
Method Summary | |
void |
displayNews(NewsItem rssNewsItem)
Display HTML formatted news |
void |
dispose()
Dispose the browser |
org.eclipse.swt.browser.Browser |
getBrowser()
Get the Browser widget |
org.eclipse.swt.widgets.Composite |
getBrowserPanel()
Get the browser panel |
void |
hideNoControlsBrowser()
Hide the Newstext Browser Panel |
private void |
initBrowser()
Init the browser |
private void |
initBrowserNoControls()
Create the browser to use with no controls |
private void |
initComponents()
Init all components |
private void |
initComponentsNoControls()
Init components without the controls |
(package private) void |
onProgressChange(org.eclipse.swt.browser.ProgressEvent event)
Called whenever the Progress is changing |
(package private) void |
onProgressCompletion()
Called whenever the Progress is completed |
(package private) void |
onStatusTextChange(org.eclipse.swt.browser.StatusTextEvent event)
Called whenever the Status Text is changing |
void |
openUrl(String url)
Open a new URL in the browser |
boolean |
print()
Print the Browser using the JavaScript print() method |
private void |
setText(String text)
Set HTML text to the browser |
private void |
setupFeedProtocolSupport(org.eclipse.swt.browser.Browser browser)
Add Support for the Feed Protocol to the given Browser. |
(package private) void |
updateNavToolItems()
Update "Back" and "Forward" tool items |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String FEED_PROTOCOL_LONG
private static final String FEED_PROTOCOL_SHORT
private static final String JAVA_SCRIPT_PRINT
private org.eclipse.swt.widgets.Composite browserPanel
private org.eclipse.swt.widgets.ToolItem itemBack
private org.eclipse.swt.widgets.ToolItem itemDiscovery
private org.eclipse.swt.widgets.ToolItem itemForward
private org.eclipse.swt.widgets.ToolItem itemHome
private org.eclipse.swt.widgets.ToolItem itemNewTab
private org.eclipse.swt.widgets.ToolItem itemReload
private org.eclipse.swt.widgets.ToolItem itemStop
private org.eclipse.swt.widgets.Composite parent
private boolean showControls
private boolean showNewTabControl
org.eclipse.swt.browser.Browser browser
org.eclipse.swt.widgets.Text location
org.eclipse.swt.custom.CTabItem parentTabItem
GUI rssOwlGui
String saveHome
org.eclipse.swt.widgets.Label status
org.eclipse.swt.widgets.Label statusProgressBar
Constructor Detail |
public BrowserPanel(GUI rssOwlGui, org.eclipse.swt.widgets.Composite parent, boolean showControls)
rssOwlGui
- The maincontrollerparent
- The parent compositeshowControls
- TRUE if the controls should be visiblepublic BrowserPanel(GUI rssOwlGui, org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.custom.CTabItem parentTabItem, boolean showControls, boolean showNewTabControl)
rssOwlGui
- The maincontrollerparent
- The parent compositeparentTabItem
- The parent CTabItem containing the Browser if
availableshowControls
- TRUE if the controls should be visibleshowNewTabControl
- TRUE if the "Open new Tab" button should be
visibleMethod Detail |
public void displayNews(NewsItem rssNewsItem)
rssNewsItem
- News to displaypublic void dispose()
public org.eclipse.swt.browser.Browser getBrowser()
public org.eclipse.swt.widgets.Composite getBrowserPanel()
public void hideNoControlsBrowser()
public void openUrl(String url)
url
- URL of the webpagepublic boolean print()
private void initBrowser()
private void initBrowserNoControls()
private void initComponents()
private void initComponentsNoControls()
private void setText(String text)
text
- HTML codeprivate void setupFeedProtocolSupport(org.eclipse.swt.browser.Browser browser)
browser
- The Browser to add the Feed Protocol Support.void onProgressChange(org.eclipse.swt.browser.ProgressEvent event)
event
- The ProgressEventvoid onProgressCompletion()
void onStatusTextChange(org.eclipse.swt.browser.StatusTextEvent event)
event
- The StatusTextEventvoid updateNavToolItems()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |