fable.gui.dialog
Class AddToCustomFeedDialog

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

public class AddToCustomFeedDialog
extends Dialog

This dialog box let users to choose custom feed to add some articles.

Author:
Christopher Moh, Wonsik Kim

Method Summary
static Feed showExportNewCustomFeedDialog(Shell parent, FableComponent root, FableManager fbm)
          Shows a export new custom feed dialog.
static Feed showExportNewCustomFeedDialog(Shell parent, FableComponent root, FableManager fbm, FableComponent currentPosition)
          Shows a export new custom feed dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showExportNewCustomFeedDialog

public static Feed showExportNewCustomFeedDialog(Shell parent,
                                                 FableComponent root,
                                                 FableManager fbm)
Shows a export new custom feed dialog. Default selected folder is the one at the top.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
Returns:
Feed instance that is selected, or null if cancelled.
Requires:
parent != null, root != null, ! root.getChildren().isEmpty(), root.getChildern().get( 0 ) instanceof Folder.
Modifies:
ADT

showExportNewCustomFeedDialog

public static Feed showExportNewCustomFeedDialog(Shell parent,
                                                 FableComponent root,
                                                 FableManager fbm,
                                                 FableComponent currentPosition)
Shows a export new custom feed dialog. Default selected folder is the nearest folder/custom feed from the current selection.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
currentPosition - current selected folder in the tree view.
Returns:
Feed instance that is selected, or null if cancelled.
Requires:
parent != null, root != null, currentPosition should be a descendant of root.
Modifies:
ADT