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

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

public class PocketPCDateBook
extends java.lang.Object
implements DateBook

Implements the pimal.datebook.DateBook interface for Pocket PC devices


Constructor Summary
PocketPCDateBook()
          creates a new instance of PocketPCDateBook
 
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)
 DateRecord createDateRecord()
          Creates a new DateRecord
 void deleteDateRecord(DateRecord dateRecord)
          Deletes a DateRecord from the device
 Vector getCategories()
          Always throws NotSupportedByDeviceException since categories are currently not supported
 RecordList getDateRecords()
          Reads stored DateRecords 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

PocketPCDateBook

public PocketPCDateBook()
creates a new instance of PocketPCDateBook
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

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

getCategories

public Vector getCategories()
                     throws NotSupportedByDeviceException
Always throws NotSupportedByDeviceException since categories are currently not supported
Specified by:
getCategories in interface DateBook
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 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
Always throws NotSupportedByDeviceException since categories are currently not supported
Specified by:
removeCategory in interface DateBook
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 DateBook
See Also:
AddressBook.renameCategory(java.lang.String, java.lang.String)