com.syncbuilder.storage.todo
Class Record

java.lang.Object
  |
  +--com.syncbuilder.storage.Block
        |
        +--com.syncbuilder.storage.Record
              |
              +--com.syncbuilder.storage.todo.Record

public class Record
extends Record

A representation of a todo database record.

See Also:
Serialized Form

Field Summary
 boolean complete
           
 java.lang.String description
           
 java.util.Date due
           
 java.lang.String note
           
 int priority
           
 
Fields inherited from class com.syncbuilder.storage.Record
archived, ARCHIVED, busy, BUSY, category, CATEGORY_MASK, deleted, DELETED, id, index, modified, MODIFIED, secret, SECRET
 
Fields inherited from class com.syncbuilder.storage.Block
raw
 
Constructor Summary
Record()
          Create a todo-Record, filled with default-values.
Record(byte[] contents, RecordID id, int index, int attr, int cat)
           
 
Method Summary
 java.lang.String describe()
           
 void fill()
          Fill the Record with default-values.
Empty description, priority 1, no due-date, not completed, no note
 byte[] pack()
          Turn the settings of the Record's attributes into the native format of the PalmPilot's To-Do-application.
 void unpack(byte[] data)
          Turn the native format of a to-do-record into proper settings for this object's attributes.
 
Methods inherited from class com.syncbuilder.storage.Record
describe, equals, getCategory, getFlags, getID, getIndex, hasID, isArchived, isBusy, isDeleted, isModified, isSecret, setArchived, setBusy, setCategory, setDeleted, setFlags, setID, setIndex, setModified, setSecret
 
Methods inherited from class com.syncbuilder.storage.Block
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

public java.lang.String description

note

public java.lang.String note

due

public java.util.Date due

complete

public boolean complete

priority

public int priority
Constructor Detail

Record

public Record()
Create a todo-Record, filled with default-values.
See Also:
fill()

Record

public Record(byte[] contents,
              RecordID id,
              int index,
              int attr,
              int cat)
Method Detail

unpack

public void unpack(byte[] data)
            throws java.lang.IllegalArgumentException
Turn the native format of a to-do-record into proper settings for this object's attributes.
Parameters:
data - the array of bytes in native format
Overrides:
unpack in class Block

pack

public byte[] pack()
Turn the settings of the Record's attributes into the native format of the PalmPilot's To-Do-application.
Overrides:
pack in class Block

fill

public void fill()
Fill the Record with default-values.
Empty description, priority 1, no due-date, not completed, no note
Overrides:
fill in class Record

describe

public java.lang.String describe()
Overrides:
describe in class Record


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.