fable.gui.event
Class ArticleReadEvent

java.lang.Object
  extended by java.util.EventObject
      extended by fable.adt.FableEvent
          extended by fable.gui.event.ArticleReadEvent
All Implemented Interfaces:
java.io.Serializable

public class ArticleReadEvent
extends FableEvent

This object represents an event that the user chose to read the article.

Author:
Wonsik Kim, Christopher Moh
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ArticleReadEvent(java.lang.Object source, Article article)
          Construct a new AricleReadEvent with provided source and article.
 
Method Summary
 Article getArticle()
          Returns article that the user want to read.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArticleReadEvent

public ArticleReadEvent(java.lang.Object source,
                        Article article)
Construct a new AricleReadEvent with provided source and article.

Parameters:
source - source of the event.
article - the article corresponds to the content.
Effects:
create a new ArticleReadEvent object.
Method Detail

getArticle

public Article getArticle()
Returns article that the user want to read.

Returns:
article that the user want to read.