Class PIMTodo

java.lang.Object
  |
  +--PIMEntity
        |
        +--PIMTodo
All Implemented Interfaces:
PIMDateable

public class PIMTodo
extends PIMEntity
implements PIMDateable


Constructor Summary
PIMTodo()
          default constructor.
PIMTodo(java.lang.String todo, java.util.Date thedate)
          constructor that allows the description and date to be specified.
PIMTodo(java.lang.String todo, java.util.Date thedate, java.lang.String prio)
          constructor that allows the description, date and priority to be specified.
 
Method Summary
 void fromString(java.lang.String s)
          sets the priority, date and description from a string.
 java.util.Date getDate()
          get the date associated with the PIM object.
 void setDate(java.util.Date d)
          set the date to be associated with the PIM object.
 void setDate(java.lang.String s)
          set the date from a String in the format "mm/dd/yy"
 java.lang.String toString()
          generates a string representation of the Todo item, including the priority, date and description of what needs to be done.
 
Methods inherited from class PIMEntity
getPriority, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PIMTodo

public PIMTodo()
default constructor.


PIMTodo

public PIMTodo(java.lang.String todo,
               java.util.Date thedate)
constructor that allows the description and date to be specified.

Parameters:
todo - the text description of what to do.
thedate - the date to be assigned to this todo item.

PIMTodo

public PIMTodo(java.lang.String todo,
               java.util.Date thedate,
               java.lang.String prio)
constructor that allows the description, date and priority to be specified.

Parameters:
todo - the text description of what to do.
thedate - the date to be assigned to this todo item.
prio - the priority label (string).
Method Detail

fromString

public void fromString(java.lang.String s)
sets the priority, date and description from a string.

Specified by:
fromString in class PIMEntity
Parameters:
s - printable representation of the todo item, in the format produced by the toString method.

toString

public java.lang.String toString()
generates a string representation of the Todo item, including the priority, date and description of what needs to be done.

Specified by:
toString in class PIMEntity
Returns:
the string representation of this todo item.

getDate

public java.util.Date getDate()
Description copied from interface: PIMDateable
get the date associated with the PIM object.

Specified by:
getDate in interface PIMDateable
Returns:
a Date object

setDate

public void setDate(java.lang.String s)
Description copied from interface: PIMDateable
set the date from a String in the format "mm/dd/yy"

Specified by:
setDate in interface PIMDateable
Parameters:
s - the string holding a representation of the date to be assigned.

setDate

public void setDate(java.util.Date d)
Description copied from interface: PIMDateable
set the date to be associated with the PIM object.

Specified by:
setDate in interface PIMDateable
Parameters:
d - the a Date object.