rss.gui
Class Core

java.lang.Object
  extended by rss.gui.Core

public class Core
extends java.lang.Object

The Core of the gui structure that initializes the main screen initializing all subcomposites.

Author:
Jong-Moon Kim

Constructor Summary
Core()
          We initialize a new Core by ensuring our initialization occurs in a new thread, allowing other classes to initialize Core without fearing a program hang due to the GUI thread.
 
Method Summary
 void addCoreListener(CoreListener listener)
          Adds a new listener for RSSEvents fired by the Core.
static void main(java.lang.String[] args)
          Debug runner
 void refreshTree(RootFolder root)
          This is called by the Controller once it passes the rootFolder structure to the GUI.
 void removeCoreListener(CoreListener listener)
          Removes a listener from the Core RSSEvents listeners list.
 void returnFeedItems(Feed feed, java.util.List<FeedItem> feedItems)
          This is called by the Controller when initializing a new view.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Core

public Core()
We initialize a new Core by ensuring our initialization occurs in a new thread, allowing other classes to initialize Core without fearing a program hang due to the GUI thread.

Method Detail

refreshTree

public void refreshTree(RootFolder root)
This is called by the Controller once it passes the rootFolder structure to the GUI. The GUI will refresh its tree structure once root is received.

Parameters:
root - Contains tree structure and all feeds

returnFeedItems

public void returnFeedItems(Feed feed,
                            java.util.List<FeedItem> feedItems)
This is called by the Controller when initializing a new view.

Parameters:
feed - Feed to be displayed
feedItems - FeedItems corresponding with the feed

main

public static void main(java.lang.String[] args)
Debug runner


addCoreListener

public void addCoreListener(CoreListener listener)
Adds a new listener for RSSEvents fired by the Core.

Parameters:
listener - Object to listen and respond to RSSEvents fired by the Core.

removeCoreListener

public void removeCoreListener(CoreListener listener)
Removes a listener from the Core RSSEvents listeners list.

Parameters:
listener - CoreListener to remove