superwaba.ext.ce.io.builtin.pimal
Class PocketPCToDoRecord
java.lang.Object
|
+--superwaba.ext.ce.io.builtin.pimal.PocketPCRecord
|
+--superwaba.ext.ce.io.builtin.pimal.PocketPCToDoRecord
- public class PocketPCToDoRecord
- extends PocketPCRecord
- implements ToDoRecord
Implements the pimal.todobook.ToDoRecord interface for PocketPc devices
|
Constructor Summary |
PocketPCToDoRecord(ITask source)
creates a new PocketPCToDoRecord 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 |
getTemplates()
returns a cloned copy of the corresponding *FieldTemplates Vector of class Constant |
Vector |
getToDoFields()
|
void |
handleExceptionalFields(Vector exceptionalFields)
handles the fields that could not be stored on the device (writes them in the note e.g.) |
void |
registerNotSupportedhandler(ToDoNotSupportedHandler nsh)
Registers a NotSupportedHandler that handle's ToDoFields this device cannot store |
void |
setToDoFields(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 |
PocketPCToDoRecord
public PocketPCToDoRecord(ITask source)
- creates a new PocketPCToDoRecord 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
getToDoFields
public Vector getToDoFields()
setToDoFields
public void setToDoFields(Vector fields)
registerNotSupportedhandler
public void registerNotSupportedhandler(ToDoNotSupportedHandler nsh)
- Description copied from interface: ToDoRecord
- Registers a NotSupportedHandler that handle's
ToDoFields this device cannot store
- Specified by:
- registerNotSupportedhandler in interface ToDoRecord
- Tags copied from interface: ToDoRecord
- 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