fable.gui.event
Class ArticleBrowseEvent

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

public class ArticleBrowseEvent
extends FableEvent

This object represents an event that the user chose to browse the article according to its URL.

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ArticleBrowseEvent(java.lang.Object source, Article article)
          Construct a new AricleBrowseEvent with provided source, content, and article.
 
Method Summary
 Article getArticle()
          Returns article that the user want to browse.
 
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

ArticleBrowseEvent

public ArticleBrowseEvent(java.lang.Object source,
                          Article article)
Construct a new AricleBrowseEvent with provided source, content, and article.

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

getArticle

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

Returns:
article that the user want to browse.