superwaba.ext.ce.io.builtin.pimal
Class PocketPCToDoBook

java.lang.Object
  |
  +--superwaba.ext.ce.io.builtin.pimal.PocketPCToDoBook

public class PocketPCToDoBook
extends java.lang.Object
implements ToDoBook

Implements the pimal.todobook.ToDoBook interface for PocketPC devices


Constructor Summary
PocketPCToDoBook()
          creates a new instance of PocketPCToDoBook
 
Method Summary
 void addCategory(java.lang.String category)
          Always throws NotSupportedByDeviceException since categories are currently not supported * @see superwaba.ext.xplat.io.pimal.addressbook.AddressBook#addCategory(java.lang.String)
 ToDoRecord createToDoRecord()
          Creates a new ToDoRecord
 void deleteToDoRecord(ToDoRecord todoRecord)
          Deletes a ToDoRecord from the device
 Vector getCategories()
          Always throws NotSupportedByDeviceException since categories are currently not supported
 RecordList getToDoRecords()
          Reads stored ToDoRecords from the device.
 void removeCategory(java.lang.String category)
          Always throws NotSupportedByDeviceException since categories are currently not supported
 void renameCategory(java.lang.String oldName, java.lang.String newName)
          Always throws NotSupportedByDeviceException since categories are currently not supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PocketPCToDoBook

public PocketPCToDoBook()
creates a new instance of PocketPCToDoBook
Method Detail

getToDoRecords

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

createToDoRecord

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

deleteToDoRecord

public void deleteToDoRecord(ToDoRecord todoRecord)
Description copied from interface: ToDoBook
Deletes a ToDoRecord from the device
Specified by:
deleteToDoRecord in interface ToDoBook
Tags copied from interface: ToDoBook
Parameters:
todoRecord - ToDoeRecord to delete

getCategories

public Vector getCategories()
                     throws NotSupportedByDeviceException
Always throws NotSupportedByDeviceException since categories are currently not supported
Specified by:
getCategories in interface ToDoBook
See Also:
AddressBook.getCategories()

addCategory

public void addCategory(java.lang.String category)
                 throws NotSupportedByDeviceException
Always throws NotSupportedByDeviceException since categories are currently not supported * @see superwaba.ext.xplat.io.pimal.addressbook.AddressBook#addCategory(java.lang.String)
Specified by:
addCategory in interface ToDoBook
Tags copied from interface: ToDoBook
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
Always throws NotSupportedByDeviceException since categories are currently not supported
Specified by:
removeCategory in interface ToDoBook
See Also:
AddressBook.removeCategory(java.lang.String)

renameCategory

public void renameCategory(java.lang.String oldName,
                           java.lang.String newName)
                    throws NotSupportedByDeviceException
Always throws NotSupportedByDeviceException since categories are currently not supported
Specified by:
renameCategory in interface ToDoBook
Tags copied from interface: ToDoBook
Parameters:
oldName - old name of the category
newName - new name of the category
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories