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

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

public class PalmMemoRecord
extends java.lang.Object
implements MemoRecord

An implementation of interface MemoRecord for PalmOS. Currently supports the following fields: SUMMARY, MEMO


Constructor Summary
protected PalmMemoRecord(int index)
          Creates a PalmMemoRecord from the given index
 
Method Summary
 Vector getFields()
          Reads MemoFields from the device, maps them and stores them in MemoFields and returns them.
protected  int getIndex()
          Getter for index
 java.lang.String rawReadNote()
          Reads this MemoRecord's note directly.
 void rawWriteNote(java.lang.String note)
          Writes this MemoRecord's note directly
 void registerNotSupportedhandler(MemoNotSupportedHandler nsh)
          Registeres a NotSupportedHandler that handle's MemoFields 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

PalmMemoRecord

protected PalmMemoRecord(int index)
Creates a PalmMemoRecord 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: MemoRecord
Reads MemoFields from the device, maps them and stores them in MemoFields and returns them.
Specified by:
getFields in interface MemoRecord
See Also:
VersitRecord.getFields()

setFields

public void setFields(Vector fields)
Description copied from interface: MemoRecord
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 MemoRecord
See Also:
VersitRecord.setFields(waba.util.Vector)

getIndex

protected int getIndex()
Getter for index
Returns:
index

rawReadNote

public java.lang.String rawReadNote()
Description copied from interface: MemoRecord
Reads this MemoRecord's note directly.
Specified by:
rawReadNote in interface MemoRecord
See Also:
MemoRecord.rawReadNote()

rawWriteNote

public void rawWriteNote(java.lang.String note)
Description copied from interface: MemoRecord
Writes this MemoRecord's note directly
Specified by:
rawWriteNote in interface MemoRecord
See Also:
MemoRecord.rawWriteNote(java.lang.String)

registerNotSupportedhandler

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