|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An interface describing the functionality and implementation AddressBook must provide.
| Method Summary | |
void |
addCategory(java.lang.String category)
Adds a category |
AddressRecord |
createAddressRecord()
Creates a new AddressRecord |
void |
deleteAddressRecord(AddressRecord addressRecord)
Deletes an AddressRecord from the device |
RecordList |
getAddressRecords()
Reads stored AddressRecords from the device. |
Vector |
getCategories()
|
void |
removeCategory(java.lang.String category)
Removes a category |
void |
renameCategory(java.lang.String oldName,
java.lang.String newName)
Renames a category |
| Method Detail |
public RecordList getAddressRecords()
AddressRecords from the device. The returned Vector will be adapted, when records are deleted or created later on.AddressRecords stored on this device
public AddressRecord createAddressRecord()
throws NotSupportedByDeviceException
AddressRecordpublic void deleteAddressRecord(AddressRecord addressRecord)
AddressRecord from the deviceaddressRecord - AddressRecord to delete
public Vector getCategories()
throws NotSupportedByDeviceException
Strings containing the category name
public void addCategory(java.lang.String category)
throws NotSupportedByDeviceException
category - Category to add
public void removeCategory(java.lang.String category)
throws NotSupportedByDeviceException
category - the name of the category to remove
public void renameCategory(java.lang.String oldName,
java.lang.String newName)
throws NotSupportedByDeviceException
oldName - old name of the categorynewName - new name of the category
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||