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

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

public class PalmAddressRecord
extends java.lang.Object
implements AddressRecord

An implementation of interface AddressRecord for PalmOS. Currently supports the following fields: N, TITLE, ORG, TEL, EMAIL, ADR, X-CUSTOM, NOTE


Constructor Summary
protected PalmAddressRecord(int index)
          Creates a PalmAddressRecord from the given index
 
Method Summary
 Vector getFields()
          Reads AddressFields from the device, maps them and stores them in AddressFields and returns them.
protected  int getIndex()
          Getter for index
 java.lang.String rawReadNote()
          Reads this AddressRecord's note directly.
 void rawWriteNote(java.lang.String note)
          Writes this AddressRecord's note directly
 void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
          Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
 void setFields(Vector fields)
          Reads information from the passed fields, maps them and writes them to the device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PalmAddressRecord

protected PalmAddressRecord(int index)
Creates a PalmAddressRecord from the given index
Parameters:
index - the index, for which this Record should be created
Method Detail

getFields

public Vector getFields()
Description copied from interface: AddressRecord
Reads AddressFields from the device, maps them and stores them in AddressFields and returns them.
Specified by:
getFields in interface AddressRecord
Tags copied from interface: AddressRecord
Returns:
a Vector containing the contact information of this record in AddressFields

setFields

public void setFields(Vector fields)
Description copied from interface: AddressRecord
Reads information from the passed fields, maps them and writes them to the device. Passes not supported fields to a NotSupportedHandler
Specified by:
setFields in interface AddressRecord
Tags copied from interface: AddressRecord
Parameters:
fields - the fields to write to the device

getIndex

protected int getIndex()
Getter for index
Returns:
index

rawReadNote

public java.lang.String rawReadNote()
Description copied from interface: AddressRecord
Reads this AddressRecord's note directly.
Specified by:
rawReadNote in interface AddressRecord
Tags copied from interface: AddressRecord
Returns:
the note's text

rawWriteNote

public void rawWriteNote(java.lang.String note)
Description copied from interface: AddressRecord
Writes this AddressRecord's note directly
Specified by:
rawWriteNote in interface AddressRecord
Tags copied from interface: AddressRecord
Parameters:
note - the text to write to the note

registerNotSupportedhandler

public void registerNotSupportedhandler(AddressNotSupportedHandler nsh)
Description copied from interface: AddressRecord
Registeres a NotSupportedHandler that handle's AddressFields this device cannot store
Specified by:
registerNotSupportedhandler in interface AddressRecord
Tags copied from interface: AddressRecord
Parameters:
nsh - the NotSupportedHandler to register