|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.dialog.FeedSearchDialog
Class displays a Dialog prompting for a topic. A "search"-button calls the FeedSearchManager to search on the topic for RSS & RDF feeds. 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) org.eclipse.swt.widgets.MenuItem |
addFeedToFav
|
private Thread |
animator
|
(package private) org.eclipse.swt.dnd.Clipboard |
cb
|
(package private) org.eclipse.swt.widgets.Button |
clearButton
|
(package private) org.eclipse.swt.widgets.TableColumn |
columnTitle
|
(package private) org.eclipse.swt.widgets.TableColumn |
columnUrl
|
private org.eclipse.swt.widgets.Composite |
composite
|
(package private) org.eclipse.swt.widgets.MenuItem |
copyXmlLocation
|
(package private) Hashtable |
currentResults
|
private static int |
DIALOG_HEIGHT
Height of the dialog in DLUs |
private static int |
DIALOG_WIDTH
Width of the dialog in DLUs |
(package private) org.eclipse.swt.widgets.Button |
exportToOpml
|
private org.eclipse.swt.widgets.Button |
importButton
|
(package private) org.eclipse.swt.widgets.Button |
intensiveSearchButton
|
(package private) boolean |
isIntensiveSearch
|
(package private) boolean |
isNativeLangSearch
|
private String |
message
|
(package private) org.eclipse.swt.custom.CLabel |
messageLabel
|
(package private) org.eclipse.swt.widgets.Button |
nativeLangSearchButton
|
(package private) org.eclipse.swt.widgets.MenuItem |
openFeed
|
private org.eclipse.swt.widgets.Shell |
parent
|
(package private) Hashtable |
results
|
(package private) org.eclipse.swt.widgets.Table |
resultTable
|
(package private) FeedSearchManager |
rssOwlFeedSearchManager
|
(package private) GUI |
rssOwlGui
|
(package private) org.eclipse.swt.widgets.Button |
searchButton
|
(package private) boolean |
searching
|
(package private) org.eclipse.swt.widgets.Text |
searchTopic
|
(package private) org.eclipse.swt.widgets.Shell |
shell
|
(package private) org.eclipse.swt.dnd.DragSource |
tableDragSource
|
(package private) org.eclipse.swt.dnd.TextTransfer |
textTransfer
|
private String |
title
|
Constructor Summary | |
FeedSearchDialog(String dialogTitle,
String dialogMessage,
GUI rssOwlGui)
Creates an input dialog with Search, Stop, OK and Cancel buttons. |
Method Summary | |
void |
addResultElement(String url,
String feedtitle)
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 |
Hashtable |
getResults()
Get the results from the feed searches |
(package private) void |
importResults()
Import results from the search into a category |
boolean |
isSearching()
|
void |
open()
Display the dialog |
(package private) void |
openFeed(org.eclipse.swt.widgets.TableItem item)
Open selected item as newsfeed in the tabfolder |
(package private) void |
performSearch(String topic)
Begin the search |
void |
setButtonState(boolean searching)
Set the state of the search- and stop button |
void |
setErrorMessage(String errorMessage)
Set / unset the warning message on the dialog |
void |
setMessage(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 Thread animator
private org.eclipse.swt.widgets.Composite composite
private org.eclipse.swt.widgets.Button importButton
private String message
private org.eclipse.swt.widgets.Shell parent
private String title
org.eclipse.swt.widgets.MenuItem addFeedToFav
org.eclipse.swt.dnd.Clipboard cb
org.eclipse.swt.widgets.Button clearButton
org.eclipse.swt.widgets.TableColumn columnTitle
org.eclipse.swt.widgets.TableColumn columnUrl
org.eclipse.swt.widgets.MenuItem copyXmlLocation
Hashtable currentResults
org.eclipse.swt.widgets.Button exportToOpml
org.eclipse.swt.widgets.Button intensiveSearchButton
boolean isIntensiveSearch
boolean isNativeLangSearch
org.eclipse.swt.custom.CLabel messageLabel
org.eclipse.swt.widgets.Button nativeLangSearchButton
org.eclipse.swt.widgets.MenuItem openFeed
Hashtable results
org.eclipse.swt.widgets.Table resultTable
FeedSearchManager rssOwlFeedSearchManager
GUI rssOwlGui
org.eclipse.swt.widgets.Button searchButton
boolean searching
org.eclipse.swt.widgets.Text searchTopic
org.eclipse.swt.widgets.Shell shell
org.eclipse.swt.dnd.DragSource tableDragSource
org.eclipse.swt.dnd.TextTransfer textTransfer
Constructor Detail |
public FeedSearchDialog(String dialogTitle, String dialogMessage, GUI rssOwlGui)
dialogTitle
- the dialog titledialogMessage
- the dialog messagerssOwlGui
- The RSSOwl MaincontrollerMethod Detail |
public void addResultElement(String url, String feedtitle)
url
- URL of the newsfeedfeedtitle
- Title of the newsfeedpublic Hashtable getResults()
public boolean isSearching()
public void open()
public void setButtonState(boolean searching)
searching
- TRUE if a search is performedpublic void setErrorMessage(String errorMessage)
errorMessage
- The warning message or NULL for no warningpublic void setMessage(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(org.eclipse.swt.widgets.TableItem item)
item
- TableItem holding URL of the newsfeedvoid performSearch(String topic)
topic
- 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 |