superwaba.ext.xplat.io.pimal.memobook
Interface MemoBook

All Known Implementing Classes:
PalmMemoBook

public interface MemoBook

An interface describing the functionality and implementation DateBook must provide.


Method Summary
 void addCategory(java.lang.String category)
          Adds a category
 MemoRecord createMemoRecord()
          Creates a new MemoRecord
 void deleteMemoRecord(MemoRecord memoRecord)
          Deletes a MemoRecord from the device
 Vector getCategories()
           
 RecordList getMemoRecords()
          Reads stored MemoRecords 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
 

Method Detail

getMemoRecords

public RecordList getMemoRecords()
Reads stored MemoRecords from the device. The returned Vector will be adapted, when records are deleted or created later on.
Returns:
RecordList of MemoRecords stored on this device

createMemoRecord

public MemoRecord createMemoRecord()
                            throws NotSupportedByDeviceException
Creates a new MemoRecord
Returns:
The created MemoRecord
Throws:
NotSupportedByDeviceException - when no/no more records can be created on the given device

deleteMemoRecord

public void deleteMemoRecord(MemoRecord memoRecord)
Deletes a MemoRecord from the device
Parameters:
memoRecord - MemoRecord to delete

getCategories

public Vector getCategories()
                     throws NotSupportedByDeviceException
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
Adds a category
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
Removes a category
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
Renames a category
Parameters:
oldName - old name of the category
newName - new name of the category
Throws:
NotSupportedByDeviceException - when the given device doesn't support categories