superwaba.ext.palm.io.builtin.pimal
Class PalmToDoRecord

java.lang.Object
  |
  +--superwaba.ext.palm.io.builtin.pimal.PalmToDoRecord

public class PalmToDoRecord
extends java.lang.Object
implements ToDoRecord

An implementation of interface ToDoRecord for PalmOS. Currently supports the following fields: SUMMARY, STATUS, DUE, PRIORITY, DESCRIPTION


Constructor Summary
protected PalmToDoRecord(int index)
          Creates a PalmToDoRecord from the given index
 
Method Summary
 Vector getFields()
          Reads ToDoFields from the device, maps them and stores them in ToDoFields and returns them.
protected  int getIndex()
          Getter for index
 java.lang.String rawReadNote()
          Reads this ToDoRecord's note directly.
 void rawWriteNote(java.lang.String note)
          Writes this ToDoRecord's note directly
 void registerNotSupportedhandler(ToDoNotSupportedHandler nsh)
          Registers a NotSupportedHandler that handle's ToDoFields this device cannot store
 void setFields(Vector fields)
          Reads information from the passed fields, maps them and writes them to the device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PalmToDoRecord

protected PalmToDoRecord(int index)
Creates a PalmToDoRecord from the given index
Parameters:
index - the index, for which this Record should be created
Method Detail

getFields

public Vector getFields()
Description copied from interface: ToDoRecord
Reads ToDoFields from the device, maps them and stores them in ToDoFields and returns them.
Specified by:
getFields in interface ToDoRecord
Tags copied from interface: ToDoRecord
Returns:
a Vector containing the contact information of this record in ToDoFields

setFields

public void setFields(Vector fields)
Description copied from interface: ToDoRecord
Reads information from the passed fields, maps them and writes them to the device. Passes not supported fields to a NotSupportedHandler
Specified by:
setFields in interface ToDoRecord
Tags copied from interface: ToDoRecord
Parameters:
fields - the fields to write to the device

getIndex

protected int getIndex()
Getter for index
Returns:
index

rawReadNote

public java.lang.String rawReadNote()
Description copied from interface: ToDoRecord
Reads this ToDoRecord's note directly.
Specified by:
rawReadNote in interface ToDoRecord
Tags copied from interface: ToDoRecord
Returns:
the note's text

rawWriteNote

public void rawWriteNote(java.lang.String note)
Description copied from interface: ToDoRecord
Writes this ToDoRecord's note directly
Specified by:
rawWriteNote in interface ToDoRecord
Tags copied from interface: ToDoRecord
Parameters:
note - the text to write to the note

registerNotSupportedhandler

public void registerNotSupportedhandler(ToDoNotSupportedHandler nsh)
Description copied from interface: ToDoRecord
Registers a NotSupportedHandler that handle's ToDoFields this device cannot store
Specified by:
registerNotSupportedhandler in interface ToDoRecord
Tags copied from interface: ToDoRecord
Parameters:
nsh - the NotSupportedHandler to register