WPI GDC CMS 0.0.1

org.wpi.gdc.cms.main
Class Topic

java.lang.Object
  |
  +--org.wpi.gdc.cms.main.Topic

public class Topic
extends java.lang.Object

The Topic class represents a Topic for news stories.

Version:
1.2
Author:
dmpotter

Constructor Summary
Topic(int id, java.lang.String name, java.lang.String description, Icon icon)
          Creates a new Topic object.
 
Method Summary
 java.lang.String getDescription()
          Retrieves the description of this topic.
 Icon getIcon()
          Retrieves the icon for this topic.
 int getID()
          Retrieves the ID of this topic.
 java.lang.String getName()
          Retrieves the name of this topic.
 void setDescription(java.lang.String description)
          Sets the description for this topic.
 void setIcon(Icon icon)
          Sets the icon for this topic.
 void setName(java.lang.String name)
          Sets the name for this topic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Topic

public Topic(int id,
             java.lang.String name,
             java.lang.String description,
             Icon icon)
Creates a new Topic object.
Parameters:
id - the ID of the topic; you should set this to a negative number if the topic is a new topic that will be added to the database later.
name - the name of the topic.
description - a brief description of the topic.
icon - an iconic representation of the topic.
Method Detail

getID

public int getID()
Retrieves the ID of this topic.
Returns:
the ID of this topic.

getName

public java.lang.String getName()
Retrieves the name of this topic.
Returns:
the name of this topic.

getDescription

public java.lang.String getDescription()
Retrieves the description of this topic.
Returns:
the description of this topic.

getIcon

public Icon getIcon()
Retrieves the icon for this topic.
Returns:
the icon for this topic.

setName

public void setName(java.lang.String name)
Sets the name for this topic.
Parameters:
name - the new name for this topic.

setDescription

public void setDescription(java.lang.String description)
Sets the description for this topic.
Parameters:
description - the new description for this topic.

setIcon

public void setIcon(Icon icon)
Sets the icon for this topic.
Parameters:
icon - the new icon for this topic.

WPI GDC CMS 0.0.1

Copyright © 2001 WPI Game Development Club. All Rights Reserved.