|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrss.controller.Controller
public class Controller
Controller is used as a message handler for the 3 main components
of the RSS application. The GUI sends Events to its the Controller,
which then processes those events by starting new threads where necessary.
These processes can make calls to functionality of the program, such as
searching, parsing, and updating, or queries to the data source for feeds
and feed items.
The Controller's main purpose is to avoid letting the GUI communicate
directly with the data source or functionality classes.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_DATA_SAVE_LOCATION
Default location used to save feed data and application state information |
Constructor Summary | |
---|---|
Controller(Core guiDisplay,
DataSource dataSource)
Creates a new Controller that listens to the given Core GUI and loads/stores all data in the given DataSource. |
Method Summary | |
---|---|
void |
coreActionPerformed(GUIEvent ge)
Method called whenever a CoreEvent has been performed. |
void |
dataEventPerformed(DataEvent de)
Method called whenever a DataEvent has been performed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_DATA_SAVE_LOCATION
Constructor Detail |
---|
public Controller(Core guiDisplay, DataSource dataSource)
guiDisplay
- Core GUI object to listen to for eventsdataSource
- DataSource used to load/store dataMethod Detail |
---|
public void coreActionPerformed(GUIEvent ge)
CoreListener
coreActionPerformed
in interface CoreListener
ge
- CoreEvent that occuredpublic void dataEventPerformed(DataEvent de)
DataListener
dataEventPerformed
in interface DataListener
de
- DataEvent that occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |