|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPBlock | +--org.jSyncManager.API.Protocol.Util.StdApps.DateBookAppBlock
The application block parser for the DateBook application. This class provides all of the parsing and access routines for the data contained within the application block belonging to the DateBook handheld application.
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
---|
blockSize, data |
Constructor Summary | |
---|---|
DateBookAppBlock()
DateBookAppBlock default constructor. |
|
DateBookAppBlock(DLPBlock block)
DateBookAppBlock constructor from DLPBlock. |
Method Summary | |
---|---|
int |
findCategoryInfo(int i)
Find the category info block, given the category ID. |
protected void |
generateData()
Generate the raw data block from the existing fields. |
CategoryInfo |
getCategoryInfo(int i)
Get the category info block given the category index. |
byte |
getLastUniqueID()
Return the last unique ID. |
int |
getNumCategories()
Return the number of categories. |
byte |
getStartOfWeek()
Return the byte value for the start of the week. |
protected void |
parseFields()
Parse the data fields. |
void |
setCategoryInfo(CategoryInfo categoryinfo,
int i)
Set the category info block, given the index. |
void |
setStartOfWeek(byte newValue)
Set the value for the start of the week field. |
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
---|
getBlockSize, getData, setData, toString |
Methods inherited from class java.lang.Object |
---|
|
Constructor Detail |
public DateBookAppBlock()
public DateBookAppBlock(DLPBlock block)
block
- an application block from the Datebook database.Method Detail |
public int findCategoryInfo(int i)
i
- int category IDprotected void generateData()
generateData
in class DLPBlock
public CategoryInfo getCategoryInfo(int i)
i
- int index to the desired category info.public byte getLastUniqueID()
public int getNumCategories()
public byte getStartOfWeek()
protected void parseFields()
parseFields
in class DLPBlock
public void setCategoryInfo(CategoryInfo categoryinfo, int i)
categoryInfo
- the CategoryInfo object to set.i
- Index in which to insert of the category info.public void setStartOfWeek(byte newValue)
newValue
- the value for the start of the week field.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |