superwaba.ext.ce.io.builtin.pimal
Class PocketPCDateRecord
java.lang.Object
|
+--superwaba.ext.ce.io.builtin.pimal.PocketPCRecord
|
+--superwaba.ext.ce.io.builtin.pimal.PocketPCDateRecord
- public class PocketPCDateRecord
- extends PocketPCRecord
- implements DateRecord
Implements the pimal.datebook.DateRecord interface for PocketPC devices
|
Constructor Summary |
PocketPCDateRecord(IAppointment source)
creates a new PocketPCDateRecord from the given source; the only field needed from
the source is the id! |
|
Method Summary |
void |
addExceptionalFields(Vector alreadyFoundFields)
adds the exceptional fields to the given Vector; exceptional fields can mean that
they have been read out of the note e.g. |
java.lang.String |
field(int position)
return the field_name_ of a *FieldTemplate at a given position |
Vector |
getDateFields()
|
Vector |
getTemplates()
returns a cloned copy of the corresponding *FieldTemplates Vector of class Constant |
void |
handleExceptionalFields(Vector exceptionalFields)
handles the fields that could not be stored on the device (writes them in the note e.g.) |
void |
registerNotSupportedhandler(DateNotSupportedHandler nsh)
Registeres a NotSupportedHandler that handle's DateFields this device cannot store |
void |
setDateFields(Vector fields)
|
VersitField |
template(int position)
returns the template at the given position from the corresponding template Vector
from class Constant |
int |
templates()
returns the size of the corresponding *FieldTemplates Vector of class Constant |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PocketPCDateRecord
public PocketPCDateRecord(IAppointment source)
- creates a new PocketPCDateRecord from the given source; the only field needed from
the source is the id!
- Parameters:
source - the source from which this instance shall be created
getDateFields
public Vector getDateFields()
setDateFields
public void setDateFields(Vector fields)
registerNotSupportedhandler
public void registerNotSupportedhandler(DateNotSupportedHandler nsh)
- Description copied from interface: DateRecord
- Registeres a NotSupportedHandler that handle's
DateFields this device cannot store
- Specified by:
- registerNotSupportedhandler in interface DateRecord
- Tags copied from interface: DateRecord
- Parameters:
nsh - the NotSupportedHandler to register
handleExceptionalFields
public void handleExceptionalFields(Vector exceptionalFields)
- Description copied from class: PocketPCRecord
- handles the fields that could not be stored on the device (writes them in the note e.g.)
- Overrides:
- handleExceptionalFields in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Parameters:
exceptionalFields - a Vector of the fields that could not be mapped to the device
addExceptionalFields
public void addExceptionalFields(Vector alreadyFoundFields)
- Description copied from class: PocketPCRecord
- adds the exceptional fields to the given Vector; exceptional fields can mean that
they have been read out of the note e.g.
- Overrides:
- addExceptionalFields in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Parameters:
alreadyFoundFields - the Vector of the "regular" fields where the exceptional fields can be added
field
public java.lang.String field(int position)
- Description copied from class: PocketPCRecord
- return the field_name_ of a *FieldTemplate at a given position
- Overrides:
- field in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Parameters:
position - the index of the fieldname to return- Returns:
- the fieldname at given index
getTemplates
public Vector getTemplates()
- Description copied from class: PocketPCRecord
- returns a cloned copy of the corresponding *FieldTemplates Vector of class Constant
- Overrides:
- getTemplates in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Returns:
- all the corresponding templates in a Vector
template
public VersitField template(int position)
- Description copied from class: PocketPCRecord
- returns the template at the given position from the corresponding template Vector
from class Constant
- Overrides:
- template in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Parameters:
position - the index of the template- Returns:
- the template at the given index
templates
public int templates()
- Description copied from class: PocketPCRecord
- returns the size of the corresponding *FieldTemplates Vector of class Constant
- Overrides:
- templates in class PocketPCRecord
- Tags copied from class: PocketPCRecord
- Returns:
- the number of templates for the object