jSyncManager

org.jSyncManager.API.Protocol.Util.StdApps
Class ToDoListRecord

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPRecord
        |
        +--org.jSyncManager.API.Protocol.Util.StdApps.ToDoListRecord
All Implemented Interfaces:
java.io.Serializable

public class ToDoListRecord
extends DLPRecord

This class represents a ToDoList record.

Version:
$Revision: 1.18 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/14 03:24:24 $.
See Also:
Serialized Form

Field Summary
protected static java.util.ResourceBundle rb
           
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
ToDoListRecord()
          ToDoListRecord default constructor.
ToDoListRecord(DLPRecord record)
          Construct a new ToDoList record using the specified DLPRecord object.
 
Method Summary
protected  void generateData()
          Generate the raw data block from the existing fields.
 java.lang.String getDescription()
          Get the description of this ToDoListRecord.
 java.util.Calendar getDueDate()
          Get the Calendar value of the DueDate field.
 java.lang.String getNote()
          Get the associated note field of this record.
 byte getPriority()
          Get the Priority byte value for this record.
 boolean hasDueDate()
          Get a boolean value denoting whether this record has a due date.
 boolean isCompleted()
          Get a boolean value denoting whether this ToDoList record item is completed.
 void noDueDate()
          Set the duedate flag to show no due date for this record.
protected  void parseFields()
          Parse the data fields.
 void setCompletionState(boolean flag)
          Set the boolean flag to denote this records completion state.
 void setDescription(java.lang.String s)
          Set the description field for this record.
 void setDueDate(java.util.Calendar calendar)
          Set the due date value from a Calendar object,
 void setNote(java.lang.String s)
          Set the associated note for this record.
 void setPriority(char c)
          Set the priority field of this record.
 java.lang.String toString()
          Return a human-readable String representation of this record.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rb

protected static java.util.ResourceBundle rb
Constructor Detail

ToDoListRecord

public ToDoListRecord()
ToDoListRecord default constructor.

ToDoListRecord

public ToDoListRecord(DLPRecord record)
Construct a new ToDoList record using the specified DLPRecord object.
Parameters:
record - a DLPRecord object containing a record read from the ToDo handheld database.
Method Detail

generateData

protected void generateData()
Generate the raw data block from the existing fields.
Overrides:
generateData in class DLPRecord

getDescription

public java.lang.String getDescription()
Get the description of this ToDoListRecord.
Returns:
the description of this ToDoListRecord.

getDueDate

public java.util.Calendar getDueDate()
Get the Calendar value of the DueDate field.
Returns:
the Calendar value of the DueDate field.

getNote

public java.lang.String getNote()
Get the associated note field of this record.
Returns:
the associated note field of this record.

getPriority

public byte getPriority()
Get the Priority byte value for this record.
Returns:
the Priority byte value for this record.

hasDueDate

public boolean hasDueDate()
Get a boolean value denoting whether this record has a due date.
Returns:
true if this record has a due date, false otherwise.

isCompleted

public boolean isCompleted()
Get a boolean value denoting whether this ToDoList record item is completed.
Returns:
true if this record has been flagged as completed, false otherwise.

noDueDate

public void noDueDate()
Set the duedate flag to show no due date for this record.

parseFields

protected void parseFields()
Parse the data fields.
Overrides:
parseFields in class DLPRecord

setCompletionState

public void setCompletionState(boolean flag)
Set the boolean flag to denote this records completion state.
Parameters:
flag - true if this record should be flagged as complete, false otherwise.

setDescription

public void setDescription(java.lang.String s)
Set the description field for this record.
Parameters:
s - the description field for this record.

setDueDate

public void setDueDate(java.util.Calendar calendar)
Set the due date value from a Calendar object,
Parameters:
calendar - the due date value as a Calendar object,

setNote

public void setNote(java.lang.String s)
Set the associated note for this record.
Parameters:
s - the associated note for this record.

setPriority

public void setPriority(char c)
Set the priority field of this record.
Parameters:
c - the priority field of this record.

toString

public java.lang.String toString()
Return a human-readable String representation of this record.
Overrides:
toString in class DLPRecord
Returns:
java.lang.String

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.