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

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

public class PalmDateBook
extends java.lang.Object
implements DateBook

Implementation of the DateBook interface for PalmOS


Constructor Summary
PalmDateBook()
           
 
Method Summary
 void addCategory(java.lang.String category)
          Adds a category
 DateRecord createDateRecord()
          Creates a new DateRecord
 void deleteDateRecord(DateRecord dateRecord)
          Deletes a DateRecord from the device
 Vector getCategories()
           
 RecordList getDateRecords()
          Reads stored DateRecords from the device.
 void removeCategory(java.lang.String category)
          Removes a category
 void renameCategory(java.lang.String oldName, java.lang.String newName)
          Renames a category
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PalmDateBook

public PalmDateBook()
Method Detail

getDateRecords

public RecordList getDateRecords()
Description copied from interface: DateBook
Reads stored DateRecords from the device. The returned Vector will be adapted, when records are deleted or created later on.
Specified by:
getDateRecords in interface DateBook
Tags copied from interface: DateBook
Returns:
RecordList of DateRecords stored on this device

createDateRecord

public DateRecord createDateRecord()
                            throws NotSupportedByDeviceException
Description copied from interface: DateBook
Creates a new DateRecord
Specified by:
createDateRecord in interface DateBook
Tags copied from interface: DateBook
Returns:
The created DateRecord
Throws:
NotSupportedByDeviceException - when no/no more records can be created on the given device

getCategories

public Vector getCategories()
                     throws NotSupportedByDeviceException
Specified by:
getCategories in interface DateBook
Tags copied from interface: DateBook
Returns:
A Vector if Strings containing the category name
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories

addCategory

public void addCategory(java.lang.String category)
                 throws NotSupportedByDeviceException
Description copied from interface: DateBook
Adds a category
Specified by:
addCategory in interface DateBook
Tags copied from interface: DateBook
Parameters:
category - Category to add
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories or doesn't support more categories

removeCategory

public void removeCategory(java.lang.String category)
                    throws NotSupportedByDeviceException
Description copied from interface: DateBook
Removes a category
Specified by:
removeCategory in interface DateBook
Tags copied from interface: DateBook
Parameters:
category - the name of the category to remove
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories

renameCategory

public void renameCategory(java.lang.String oldName,
                           java.lang.String newName)
                    throws NotSupportedByDeviceException
Description copied from interface: DateBook
Renames a category
Specified by:
renameCategory in interface DateBook
Tags copied from interface: DateBook
Parameters:
oldName - old name of the category
newName - new name of the category
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories

deleteDateRecord

public void deleteDateRecord(DateRecord dateRecord)
Description copied from interface: DateBook
Deletes a DateRecord from the device
Specified by:
deleteDateRecord in interface DateBook
Tags copied from interface: DateBook
Parameters:
dateRecord - DateRecord to delete