jSyncManager

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

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

public class NotepadRecord
extends DLPRecord

This class represents a Notepad record. Notepad records are RLE compressed bitmapped images.

Version:
$Revision: 1.6 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by$.
See Also:
Serialized Form

Inner Class Summary
(package private)  class NotepadRecord.NotepadDataRecord
          A class to represent a single Notepad data element.
 
Field Summary
static char NOTEPAD_HAS_ALARM
          A flag to denote that this record has an alarm.
static char NOTEPAD_HAS_BODY
          A flag to denote that this record has a body (image).
static char NOTEPAD_HAS_NAME
          A flag to denote that this record has a name.
protected static java.util.ResourceBundle rb
           
 
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
NotepadRecord()
          NotepadRecord default constructor.
NotepadRecord(DLPRecord record)
          Create a NotepadRecord using the given DLPRecord.
 
Method Summary
protected  void generateData()
          Generate the raw data block from the existing fields.
 java.util.Calendar getAlarmTime()
          Get the alarm time of this Notepad record.
 java.util.Calendar getCreationTime()
          Get the creation time of this Notepad record.
 int getHeight()
          Get the height of the Notepad record image buffer.
 java.awt.image.ImageProducer getImage()
          Parse the recordset data and return an ImageProducer image set.
 java.util.Calendar getModificationTime()
          Get the modification time of this Notepad record.
 java.lang.String getTitle()
          Get the title string of this Notepad record.
 int getWidth()
          Get the width of the Notepad record image buffer.
protected  void parseFields()
          Parse the data fields.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rb

protected static java.util.ResourceBundle rb

NOTEPAD_HAS_BODY

public static final char NOTEPAD_HAS_BODY
A flag to denote that this record has a body (image).

NOTEPAD_HAS_NAME

public static final char NOTEPAD_HAS_NAME
A flag to denote that this record has a name.

NOTEPAD_HAS_ALARM

public static final char NOTEPAD_HAS_ALARM
A flag to denote that this record has an alarm.
Constructor Detail

NotepadRecord

public NotepadRecord()
NotepadRecord default constructor.

NotepadRecord

public NotepadRecord(DLPRecord record)
Create a NotepadRecord using the given DLPRecord.
Parameters:
record - a DLPRecord object containing a record for the Notepad database.
Method Detail

generateData

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

parseFields

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

getImage

public java.awt.image.ImageProducer getImage()
Parse the recordset data and return an ImageProducer image set.
Returns:
the ImageProducer representing the data in the image.

getCreationTime

public java.util.Calendar getCreationTime()
Get the creation time of this Notepad record.
Returns:
the creation time of this Notepad record.

getModificationTime

public java.util.Calendar getModificationTime()
Get the modification time of this Notepad record.
Returns:
the modification time of this Notepad record.

getAlarmTime

public java.util.Calendar getAlarmTime()
Get the alarm time of this Notepad record.
Returns:
the alarm time of this Notepad record.

getTitle

public java.lang.String getTitle()
Get the title string of this Notepad record.
Returns:
the title string of this Notepad record.

getWidth

public int getWidth()
Get the width of the Notepad record image buffer.
Returns:
the width of the Notepad record image buffer.

getHeight

public int getHeight()
Get the height of the Notepad record image buffer.
Returns:
the height of the Notepad record image buffer.

jSyncManager

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