org.wpi.gdc.cms.main
Class EventItem
java.lang.Object
|
+--org.wpi.gdc.cms.main.EventItem
- public class EventItem
- extends java.lang.Object
An event item.
- Version:
- 1.3
- Author:
- dmpotter
Field Summary |
static int |
FIELD_END
The event item enddate field. |
static int |
FIELD_ID
The event item ID field. |
static int |
FIELD_PAIRS
The event item name/value pairs field. |
static int |
FIELD_START
The event item startdate field. |
Constructor Summary |
EventItem(int id,
java.util.Calendar start,
java.util.Calendar end,
java.util.Hashtable pairs)
Creates a new Event based on the passed values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FIELD_ID
public static final int FIELD_ID
- The event item ID field.
- See Also:
getID()
FIELD_START
public static final int FIELD_START
- The event item startdate field.
- See Also:
getStartDate()
FIELD_END
public static final int FIELD_END
- The event item enddate field.
- See Also:
getEndDate()
FIELD_PAIRS
public static final int FIELD_PAIRS
- The event item name/value pairs field.
- See Also:
getPairs()
EventItem
public EventItem(int id,
java.util.Calendar start,
java.util.Calendar end,
java.util.Hashtable pairs)
- Creates a new Event based on the passed values.
- Parameters:
id
- the ID of the event; set to a negative number for a event
to be inserted into the DB layer.name
- the name of the event.location
- the location of the event.url
- the address of the website for the event.pairs
- any additional information about the event other than that above.items
-
getID
public int getID()
getStartDate
public java.util.Calendar getStartDate()
getEndDate
public java.util.Calendar getEndDate()
getPairs
public java.util.Hashtable getPairs()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001 WPI Game Development Club. All Rights Reserved.