fable.gui.dialog
Class FeedsterSearchDialog

java.lang.Object
  extended by Dialog
      extended by fable.gui.dialog.FeedsterSearchDialog

public class FeedsterSearchDialog
extends Dialog

This is a dialog for Feedster Searches

Author:
Christopher Moh, Wonsik Kim

Method Summary
static java.util.List<NewFeedDialogData> showFeedsterSearchDialog(Shell parent, FableComponent root, FableComponent currentPosition, FableManager fbm)
          Show a feedster search dialog box which enables users to search the web for the feed.
static java.util.List<NewFeedDialogData> showFeedsterSearchDialog(Shell parent, FableComponent root, FableManager fbm)
          Show a feedster search dialog box which enables users to search the web for the feed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showFeedsterSearchDialog

public static java.util.List<NewFeedDialogData> showFeedsterSearchDialog(Shell parent,
                                                                         FableComponent root,
                                                                         FableComponent currentPosition,
                                                                         FableManager fbm)
Show a feedster search dialog box which enables users to search the web for the feed.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
currentPosition - current selected fable component.
fbm - fable manager object
Returns:
a NewFeedDialogData object containing all information gathered in the dialog box, or null if cancelled.
Requires:
parent != null, root != null, currentPosition should be a descendant of root, and if it is a direct child of root, it should be a Folder, fbm != null.

showFeedsterSearchDialog

public static java.util.List<NewFeedDialogData> showFeedsterSearchDialog(Shell parent,
                                                                         FableComponent root,
                                                                         FableManager fbm)
Show a feedster search dialog box which enables users to search the web for the feed.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
fbm - fable manager object
Returns:
a NewFeedDialogData object containing all information gathered in the dialog box, or null if cancelled.
Requires:
parent != null, root != null, ! root.getChildren().isEmpty(), root.getChildren().get( 0 ) instanceof Folder, fbm != null.