org.xnap.plugin.news
Class DefaultNewsItem

java.lang.Object
  extended by org.xnap.plugin.news.DefaultNewsItem
All Implemented Interfaces:
NewsItem

public class DefaultNewsItem
extends java.lang.Object
implements NewsItem

Implements the basic requirements for a news item. News items can be displayed in the news pane and can be provided by any plugin.


Constructor Summary
DefaultNewsItem()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 javax.swing.Action[] getActions()
          Returns the actions that can performed by the news item.
 java.lang.String getAuthor()
           
 java.util.Date getDate()
          Returns the publishing date of this news item.
 java.lang.String getDescription()
          Returns the description of this news item.
 java.lang.String getLink()
          Returns the link of this news item.
 java.lang.String getTitle()
          Returns the title of this news item.
 int hashCode()
           
 void setActions(javax.swing.Action[] actions)
          Sets the actions.
 void setAuthor(java.lang.String author)
          Sets the author of this news item.
 void setDate(java.util.Date date)
          Sets the publishing date of this news item.
 void setDescription(java.lang.String description)
          Sets the description of this news item.
 void setLink(java.lang.String link)
          Sets the link of this news item.
 void setTitle(java.lang.String title)
          Sets the title of this news item.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNewsItem

public DefaultNewsItem()
Method Detail

setTitle

public void setTitle(java.lang.String title)
Sets the title of this news item.


getTitle

public java.lang.String getTitle()
Returns the title of this news item.

Specified by:
getTitle in interface NewsItem

setDescription

public void setDescription(java.lang.String description)
Sets the description of this news item.


getDescription

public java.lang.String getDescription()
Returns the description of this news item.

Specified by:
getDescription in interface NewsItem

setLink

public void setLink(java.lang.String link)
Sets the link of this news item.


getLink

public java.lang.String getLink()
Returns the link of this news item.

Specified by:
getLink in interface NewsItem

setAuthor

public void setAuthor(java.lang.String author)
Sets the author of this news item.


getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface NewsItem

setDate

public void setDate(java.util.Date date)
Sets the publishing date of this news item.


getDate

public java.util.Date getDate()
Returns the publishing date of this news item.

Specified by:
getDate in interface NewsItem

setActions

public void setActions(javax.swing.Action[] actions)
Sets the actions.


getActions

public javax.swing.Action[] getActions()
Returns the actions that can performed by the news item.

Specified by:
getActions in interface NewsItem

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 2001-2005 XNap Team. All Rights Reserved.