fable.gui
Class FableGUI

java.lang.Object
  extended by fable.gui.FableGUI
All Implemented Interfaces:
FableListener, FeedDeletedListener, FeedSelectedListener, FolderDeletedListener, FolderSelectedListener, java.util.EventListener

public class FableGUI
extends java.lang.Object
implements FeedSelectedListener, FolderSelectedListener, FeedDeletedListener, FolderDeletedListener

This is the main GUI class of Fable.
It lays out all the other components and initializes them, this includes:


In addition, FableGUI also creates the toolbar and menubar.

Author:
Weijie Yuan, Christopher Moh

Constructor Summary
FableGUI()
          Instantiates the the FableGUI class, and initializes all other components contained within.
 
Method Summary
 void feedDeleted(FeedDeletedEvent fde)
          Whenever FeedDeletedEvent is received, disables the Delete action
 void feedSelected(FeedSelectedEvent fse)
          Whenever FeedSelectedEvent is received, updates the currentlySelected pointer and enables the Delete action
 void folderDeleted(FolderDeletedEvent fde)
          Whenever FolderDeletedEvent is received, disables the Delete action
 void folderSelected(FolderSelectedEvent fse)
          Whenever FolderSelectedEvent is received, updates the currentlySelected pointer and enables the Delete action if the selected folder is not the root
static void main(java.lang.String[] args)
          Instantiates the GUI and starts the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FableGUI

public FableGUI()
Instantiates the the FableGUI class, and initializes all other components contained within.

Method Detail

main

public static void main(java.lang.String[] args)
Instantiates the GUI and starts the program.


feedSelected

public void feedSelected(FeedSelectedEvent fse)
Whenever FeedSelectedEvent is received, updates the currentlySelected pointer and enables the Delete action

Specified by:
feedSelected in interface FeedSelectedListener
Parameters:
fse - the FeedSelectedEvent that is receieved

folderSelected

public void folderSelected(FolderSelectedEvent fse)
Whenever FolderSelectedEvent is received, updates the currentlySelected pointer and enables the Delete action if the selected folder is not the root

Specified by:
folderSelected in interface FolderSelectedListener
Parameters:
fse - the FolderSelectedEvent that is receieved

feedDeleted

public void feedDeleted(FeedDeletedEvent fde)
Whenever FeedDeletedEvent is received, disables the Delete action

Specified by:
feedDeleted in interface FeedDeletedListener
Parameters:
fde - the FeedDeletedEvent that is receieved

folderDeleted

public void folderDeleted(FolderDeletedEvent fde)
Whenever FolderDeletedEvent is received, disables the Delete action

Specified by:
folderDeleted in interface FolderDeletedListener
Parameters:
fde - the FolderDeletedEvent that is receieved