fable.gui
Class AbstractFeedListTree

java.lang.Object
  extended by fable.gui.AbstractFeedListTree
Direct Known Subclasses:
FeedListTree

public abstract class AbstractFeedListTree
extends java.lang.Object

This class is a component of the GUI. It displays a tree view of folders and feeds in a hierachy as chosen by the user. All interaction between this class and other classes are handled by the concrete class which extends this one (and the MessageHandler class).
This class has its own listeners: dragListener and dropListener. These two listeners listen are responsible for the drag and drop feature of the tree. They listen for drag events from the user, and then send/receive the selected TreeItem data via FableComponentTransfer.

Author:
Weijie Yuan, Yongjin Kim (Drag 'N Drop only)
See Also:
FableComponentTransfer, FeedListTree

Constructor Summary
AbstractFeedListTree(Composite parent, FableManager fbm)
          Instantiates the object, with the given parent
 
Method Summary
 void setRoot(java.lang.Object fc)
          Sets the root of the tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeedListTree

public AbstractFeedListTree(Composite parent,
                            FableManager fbm)
Instantiates the object, with the given parent

Parameters:
parent - the parent of this object
fbm - the FableManager which is used to execute user actions to the underlying datatype
Method Detail

setRoot

public void setRoot(java.lang.Object fc)
Sets the root of the tree. Note that the root is not displayed. Drawing begins with the children of the root

Parameters:
fc - the FableComponent that is the root of the tree hierachy