|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.dialog.FeedDiscoveryDialog
public class FeedDiscoveryDialog
Class displays a Dialog prompting for a URL. A "search"-button calls the FeedDiscoveryManager to search on the given URL for newsfeeds. Any feeds that are found are displayed in a table. Each feed may be opened in the tabfolder with a doubleclick. A popup menuStructure is set to copy the XML Url.
| Field Summary | |
|---|---|
(package private) MenuItem |
addFeedToFav
|
private java.lang.Thread |
animator
|
(package private) Button |
clearButton
|
(package private) TableColumn |
columnFormat
|
(package private) TableColumn |
columnTitle
|
(package private) TableColumn |
columnUrl
|
private Composite |
composite
|
(package private) MenuItem |
copyXmlLocation
|
private static int |
DIALOG_HEIGHT
Height of the dialog in DLUs |
private static int |
DIALOG_WIDTH
Width of the dialog in DLUs |
(package private) Button |
exportToOpml
|
private Button |
importButton
|
private java.lang.String |
message
|
(package private) CLabel |
messageLabel
|
(package private) MenuItem |
openFeed
|
private Shell |
parent
|
(package private) java.util.Hashtable |
results
|
(package private) Table |
resultTable
|
(package private) FeedDiscoveryManager |
rssOwlFeedDiscoveryManager
|
(package private) GUI |
rssOwlGui
|
(package private) Button |
searchButton
|
(package private) boolean |
searching
|
(package private) Text |
searchWebsite
|
(package private) Shell |
shell
|
(package private) DragSource |
tableDragSource
|
(package private) TextTransfer |
textTransfer
|
private java.lang.String |
title
|
| Constructor Summary | |
|---|---|
FeedDiscoveryDialog(java.lang.String dialogTitle,
java.lang.String dialogMessage,
GUI rssOwlGui)
Creates an input dialog with Search, Stop, OK and Cancel buttons. |
|
FeedDiscoveryDialog(java.lang.String url,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
GUI rssOwlGui)
Creates an input dialog with Search, Stop, OK and Cancel buttons. |
|
| Method Summary | |
|---|---|
void |
addResultElement(java.lang.String url,
java.lang.String feedtitle,
java.lang.String format)
Display a new line in the table |
private void |
createDialogArea()
Create the dialog components |
(package private) void |
generateOpml()
Generate an OPML XML from the results |
java.util.Hashtable |
getResults()
Get the results of the search |
(package private) void |
importResults()
Import results from the search into a category |
boolean |
isSearching()
|
void |
open()
Display the dialog |
(package private) void |
openFeed(TableItem item)
Open selected item as newsfeed in the tabfolder |
(package private) void |
performSearch(java.lang.String webSiteURL)
Begin the search |
void |
setButtonState(boolean searching)
Set the state of the search- and stop button |
void |
setErrorMessage(java.lang.String errorMessage)
Set / unset the warning message on the dialog |
void |
setMessage(java.lang.String message)
Set a message to the messageLabel and the search image |
(package private) void |
setResultControlsEnabled(boolean enabled)
Enable / Disable controls that are used when results are available. |
void |
setSearching(boolean searching)
Set wether a search is currently running. |
(package private) void |
setStatusPoints(int number)
Set a number of points to the status message |
private void |
startStatusMessageAnimate()
Start a thread to animate the status message |
(package private) void |
stopSearch()
Stop the running search |
void |
stopStatusMessageAnimate()
Stop the animation on the status message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int DIALOG_HEIGHT
private static final int DIALOG_WIDTH
private java.lang.Thread animator
private Composite composite
private Button importButton
private java.lang.String message
private Shell parent
private java.lang.String title
MenuItem addFeedToFav
Button clearButton
TableColumn columnFormat
TableColumn columnTitle
TableColumn columnUrl
MenuItem copyXmlLocation
Button exportToOpml
CLabel messageLabel
MenuItem openFeed
java.util.Hashtable results
Table resultTable
FeedDiscoveryManager rssOwlFeedDiscoveryManager
GUI rssOwlGui
Button searchButton
boolean searching
Text searchWebsite
Shell shell
DragSource tableDragSource
TextTransfer textTransfer
| Constructor Detail |
|---|
public FeedDiscoveryDialog(java.lang.String dialogTitle,
java.lang.String dialogMessage,
GUI rssOwlGui)
dialogTitle - the dialog titledialogMessage - the dialog messagerssOwlGui - The RSSOwl Maincontroller
public FeedDiscoveryDialog(java.lang.String url,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
GUI rssOwlGui)
url - If not NULL, start discovery on the given URLdialogTitle - the dialog titledialogMessage - the dialog messagerssOwlGui - The RSSOwl Maincontroller| Method Detail |
|---|
public void addResultElement(java.lang.String url,
java.lang.String feedtitle,
java.lang.String format)
url - URL of the newsfeedfeedtitle - Title of the newsfeedformat - Format of the newsfeedpublic java.util.Hashtable getResults()
public boolean isSearching()
public void open()
public void setButtonState(boolean searching)
searching - TRUE if a search is performedpublic void setErrorMessage(java.lang.String errorMessage)
errorMessage - The warning message or NULL for no warningpublic void setMessage(java.lang.String message)
message - The messagepublic void setSearching(boolean searching)
searching - TRUE if a search is currently running.public void stopStatusMessageAnimate()
private void createDialogArea()
private void startStatusMessageAnimate()
void generateOpml()
void importResults()
void openFeed(TableItem item)
item - TableItem holding URL of the newsfeedvoid performSearch(java.lang.String webSiteURL)
webSiteURL - Topic to search forvoid setResultControlsEnabled(boolean enabled)
enabled - TRUE if enabledvoid setStatusPoints(int number)
number - The number of pointsvoid stopSearch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||