fable.gui.dialog
Class ImportOPMLDialog

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

public class ImportOPMLDialog
extends Dialog

This dialog box allows users to import feeds in the OPML file.

Author:
Wonsik Kim

Method Summary
static ImportOPMLDialogData showImportOPMLDialog(Shell parent, FableComponent root)
          Show an import OPML dialog box to users and return selected feeds.
static ImportOPMLDialogData showImportOPMLDialog(Shell parent, FableComponent root, FableComponent currentPosition)
          Show an import OPML dialog box to users and return selected feeds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showImportOPMLDialog

public static ImportOPMLDialogData showImportOPMLDialog(Shell parent,
                                                        FableComponent root)
Show an import OPML dialog box to users and return selected feeds.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
Returns:
selected feeds, or null if cancelled.
Requires:
parent != null, root != null, ! root.getChildren().isEmpty(), root.getChildren().get( 0 ) instanceof Folder.

showImportOPMLDialog

public static ImportOPMLDialogData showImportOPMLDialog(Shell parent,
                                                        FableComponent root,
                                                        FableComponent currentPosition)
Show an import OPML dialog box to users and return selected feeds.

Parameters:
parent - parent shell of the dialog box.
root - root of the tree structure.
currentPosition - currently selected fable componnet.
Returns:
selected feeds, 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.