|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
DateRecord describes the signature, a device specific implementation of a DateRecord has to fulfill.
A DateRecord is one appointment. It's attributes are saved in it's DateFields
When get*Fields() is called, the data must be read out directly from the device, new *Fields must be created from it and stored in a Vector. This is the place where you need some kind of "upward"-mapping of the datatypes (mapping the native data structure to the generic pimAL *Fields). Now we can understand why get*Records() does not have to read out the complete data from the device but only the ids: As soon as get*Fields() of a single *Record is called, the data will be read out anyway (it must only be found - thats where you need to device id for).
| Method Summary | |
Vector |
getFields()
Reads DateFields from the device, maps them and stores them in DateField |
java.lang.String |
rawReadNote()
Reads this DateRecord's note directly. |
void |
rawWriteNote(java.lang.String note)
Writes this DateRecord's note directly |
void |
registerNotSupportedhandler(DateNotSupportedHandler nsh)
Registeres a NotSupportedHandler that handle's DateFields this device cannot store |
void |
setFields(Vector fields)
Reads information from the passed fields, maps them and writes them to the device. |
| Method Detail |
public Vector getFields()
DateFields from the device, maps them and stores them in DateFields and returns them.
- Returns:
- a Vector containing the contact information of this record in
DateFields
public void setFields(Vector fields)
NotSupportedHandlerfields - the fields to write to the devicepublic java.lang.String rawReadNote()
DateRecord's note directly.public void rawWriteNote(java.lang.String note)
DateRecord's note directlynote - the text to write to the notepublic void registerNotSupportedhandler(DateNotSupportedHandler nsh)
DateFields this device cannot storensh - the NotSupportedHandler to register
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||