|
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.NotepadAppBlock
This class represents a Notepad application block.
Field Summary | |
---|---|
static byte |
ALPHA_ORDER
A constant used to denote that the records are sorted alphabetically. |
static byte |
UNSORTED
A constant used to denote that the records are unsorted. |
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
---|
blockSize, data |
Constructor Summary | |
---|---|
NotepadAppBlock()
Constructs an empty application block. |
|
NotepadAppBlock(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 |
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 NotepadAppBlock()
public NotepadAppBlock(DLPBlock block)
block
- the DLPBlock containing the Notepad 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 DLPBlock
public CategoryInfo getCategoryInfo(int i)
i
- the index of the category info 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 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 |