|
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.MemoAppBlock
This class parses and generates the application block information for the MemoPad application.
| Field Summary | |
|---|---|
static byte |
ALPHA_ORDER
A constant denoting that the records should be alphabetical. |
static byte |
UNSORTED
A constant denoting that the records should be unsorted. |
| Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
|---|
blockSize, data |
| Constructor Summary | |
|---|---|
MemoAppBlock()
Constructs an empty Memo application block. |
|
MemoAppBlock(DLPBlock block)
Constructs an application block based on the block information passed. |
|
| Method Summary | |
|---|---|
int |
findCategoryInfo(int i)
Retreives the category index for the category with the specified category ID, if available. |
protected void |
generateData()
Takes this classes fields and uses them to generate a byte array representation of the App Block. |
CategoryInfo[] |
getCategories()
Return an array of the category info blocks. |
CategoryInfo |
getCategoryInfo(int i)
Retreives the category info for the category with the specified index number. |
byte |
getLastUniqueID()
Retreives the last unique category ID number. |
int |
getNumCategories()
Retreives the number of categories held in this application block. |
byte |
getSortOrder()
Retreives the sort order in use by this application block. |
protected void |
parseFields()
Parses the data array into a set of class fields. |
void |
setCategoryInfo(CategoryInfo categoryinfo,
int i)
Sets the category information for the specified category index. |
void |
setSortOrder(byte so)
Sets the sort order. |
| Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
|---|
getBlockSize, getData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
|
| Field Detail |
public static final byte UNSORTED
public static final byte ALPHA_ORDER
| Constructor Detail |
public MemoAppBlock()
public MemoAppBlock(DLPBlock block)
block - the DLPBlock containing the MemoPad application block to parse.| Method Detail |
public int findCategoryInfo(int i)
i - the category ID of the information to retreive.protected void generateData()
generateData in class DLPBlockpublic CategoryInfo getCategoryInfo(int i)
i - the index number of the category to retreive.public byte getLastUniqueID()
public int getNumCategories()
public byte getSortOrder()
protected void parseFields()
parseFields in class DLPBlock
public void setCategoryInfo(CategoryInfo categoryinfo,
int i)
CategoryInfo - the category information.i - the index in which to store this category information.public CategoryInfo[] getCategories()
public void setSortOrder(byte so)
so - the sort order to bet set.UNSORTED,
ALPHA_ORDER
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||