jSyncManager

org.jSyncManager.API.Protocol.Util.StdApps
Class MemoRecord

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPRecord
        |
        +--org.jSyncManager.API.Protocol.Util.StdApps.MemoRecord
All Implemented Interfaces:
java.io.Serializable

public class MemoRecord
extends DLPRecord

Record parser/generater for the Memo Database record format.

Version:
$Revision: 1.18 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/06/26 23:43:52 $.
See Also:
Serialized Form

Field Summary
protected  java.lang.String memoText
          A string to hold the text of the memo.
protected static java.util.ResourceBundle rb
          A handle to the resource bundle to use.
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
MemoRecord()
          MemoRecord default constructor.
MemoRecord(DLPRecord record)
          Construct a new Memo Record object from the contents of the specified DLPBlock object.
 
Method Summary
protected  void generateData()
          Generate the raw data block from the existing fields.
 java.lang.String getMemoText()
          Return the memo text contents in a String value.
protected  void parseFields()
          Parse the data fields.
 void setMemoText(java.lang.String s)
          Set the memo text contents with a String value.
 java.lang.String toString()
          Return a human-readable String representation of this memo record object.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

memoText

protected java.lang.String memoText
A string to hold the text of the memo.

rb

protected static java.util.ResourceBundle rb
A handle to the resource bundle to use.
Constructor Detail

MemoRecord

public MemoRecord()
MemoRecord default constructor.

MemoRecord

public MemoRecord(DLPRecord record)
Construct a new Memo Record object from the contents of the specified DLPBlock object.
Parameters:
record - a DLPBlork object as read from the handheld Memo database.
Method Detail

generateData

protected void generateData()
Generate the raw data block from the existing fields.
Overrides:
generateData in class DLPRecord

getMemoText

public java.lang.String getMemoText()
Return the memo text contents in a String value.
Returns:
the memo text contents in a String value.

parseFields

protected void parseFields()
Parse the data fields.
Overrides:
parseFields in class DLPRecord

setMemoText

public void setMemoText(java.lang.String s)
Set the memo text contents with a String value.
Parameters:
s - the text contents for the memo.

toString

public java.lang.String toString()
Return a human-readable String representation of this memo record object.
Overrides:
toString in class DLPRecord
Returns:
a String representation of this memo record object.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.