net.sourceforge.jpalm.mobiledb.record
Class FieldDisplaySizesRecord

java.lang.Object
  extended by net.sourceforge.jpalm.DataBlock
      extended by net.sourceforge.jpalm.mobiledb.record.AbstractRecord
          extended by net.sourceforge.jpalm.mobiledb.record.FieldDisplaySizesRecord
All Implemented Interfaces:
Record

public class FieldDisplaySizesRecord
extends AbstractRecord

The field display sizes record in a MobileDB database.

There should be exactly one of these records in a MobileDB database and should always have 20 fields.

When this class is serialized, if the field count is not 20, fields will be added or removed until the count is 20. If fields need to be added, they will have a value of 80.


Field Summary
static net.sourceforge.juint.UInt8 CATEGORY_ID
          The category identifier for this record.
 
Fields inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord
fields, header, HEADER, MAX_FIELD_WIDTH, TERIMINATOR, TRAILER
 
Constructor Summary
FieldDisplaySizesRecord()
          Creates a new field display size record with no display sizes.
FieldDisplaySizesRecord(byte[] data)
          Creates a new field display size record from a byte array.
FieldDisplaySizesRecord(java.util.List<java.lang.Integer> fieldDisplaySizes)
          Creates a new field display size record from a list of field display sizes.
FieldDisplaySizesRecord(Record record)
          Creates a new field display size record from a Record.
 
Method Summary
 java.util.List<java.lang.Integer> getFieldDisplaySizes()
          Gets the field display sizes.
 byte[] serialize()
          Create a byte array of the class properties.
 void setFieldDisplaySizes(java.util.List<java.lang.Integer> fieldDisplaySizes)
          Sets the field display sizes.
 
Methods inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord
deserialize, equals, getHeader, getInternalFields, setHeader, setInternalFields, trimOrFillList
 
Methods inherited from class net.sourceforge.jpalm.DataBlock
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_ID

public static final net.sourceforge.juint.UInt8 CATEGORY_ID
The category identifier for this record.

Constructor Detail

FieldDisplaySizesRecord

public FieldDisplaySizesRecord()
Creates a new field display size record with no display sizes.


FieldDisplaySizesRecord

public FieldDisplaySizesRecord(byte[] data)
Creates a new field display size record from a byte array.

Parameters:
data - the byte array
See Also:
AbstractRecord.deserialize(byte[])

FieldDisplaySizesRecord

public FieldDisplaySizesRecord(Record record)
Creates a new field display size record from a Record.

Parameters:
record - the record

FieldDisplaySizesRecord

public FieldDisplaySizesRecord(java.util.List<java.lang.Integer> fieldDisplaySizes)
Creates a new field display size record from a list of field display sizes.

Parameters:
fieldDisplaySizes - the field lengths
See Also:
setFieldDisplaySizes(List)
Method Detail

setFieldDisplaySizes

public void setFieldDisplaySizes(java.util.List<java.lang.Integer> fieldDisplaySizes)
Sets the field display sizes.

Parameters:
fieldDisplaySizes - the field display sizes

getFieldDisplaySizes

public java.util.List<java.lang.Integer> getFieldDisplaySizes()
Gets the field display sizes.

Returns:
the field display sizes

serialize

public byte[] serialize()
Description copied from class: DataBlock
Create a byte array of the class properties.

Specified by:
serialize in interface Record
Overrides:
serialize in class AbstractRecord
Returns:
the byte array