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

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

public class PalmDateRecord
extends java.lang.Object
implements DateRecord

An implementation of interface DateRecord for PalmOS. Currently supports the following fields: SUMMARY, DTSTART, DTEND, TRIGGER, EXDATE, RRULE, DESCRIPTION


Constructor Summary
protected PalmDateRecord(int index)
          Creates a PalmDateRecord from the given index
 
Method Summary
 Vector getFields()
          Reads DateFields from the device, maps them and stores them in DateFields and returns them.
protected  int getIndex()
          Getter for index
 java.lang.String rawReadNote()
          Reads this DateRecord's note directly.
 void rawWriteNote(java.lang.String note)
          Writes this DateRecord's note directly
 void registerNotSupportedhandler(DateNotSupportedHandler nsh)
          Registeres a NotSupportedHandler that handle's DateFields 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

PalmDateRecord

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

getIndex

protected int getIndex()
Getter for index
Returns:
index

getFields

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

setFields

public void setFields(Vector fields)
Description copied from interface: DateRecord
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 DateRecord
Tags copied from interface: DateRecord
Parameters:
fields - the fields to write to the device

rawReadNote

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

rawWriteNote

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

registerNotSupportedhandler

public void registerNotSupportedhandler(DateNotSupportedHandler nsh)
Description copied from interface: DateRecord
Registeres a NotSupportedHandler that handle's DateFields this device cannot store
Specified by:
registerNotSupportedhandler in interface DateRecord
Tags copied from interface: DateRecord
Parameters:
nsh - the NotSupportedHandler to register