|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--superwaba.ext.palm.io.builtin.Memo
Provides a link to the standard Palm Memo database. Note: if you call getMemo and null is returned, its because that memo was deleted. The deleted memos stays on the catalog, but you can't access them. So to do a search for a title, use the method findMemo.
Here is an example for storing a memo:
Memo m2 = new Memo(); m2.text = "a new memo"; Memo.addMemo(m2);
Field Summary | |
String |
text
the text of the memo. |
Constructor Summary | |
Memo()
Constructs a new empty memo |
Method Summary | |
static boolean |
addMemo(Memo memo)
Adds a new Memo to the database |
static Memo |
findMemo(String title,
boolean ignoreCase)
Search through the Memo to find records that starts with the given title. ignoreCase searches are much slower, since the string is converted to lowercase before comparision. |
byte |
getID()
Gets a unique ID for this class. |
Storable |
getInstance()
Returns an object of the same class as this object. |
static Memo |
getMemo(int i)
Gets a Memo from the database |
static boolean |
getMemo(int i,
Memo memo)
Gets a Memo from the database and places it into the given Memo. |
void |
loadState(DataStream ds)
Load state information from the given DataStream into this object If any Storable objects need to be loaded as part of the state, their loadState() method can be called too. |
static int |
memoCount()
Gets the number of Memos in the database |
void |
saveState(DataStream ds)
Send the state information of this object to the given object catalog using the given DataStream. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
toString,
wait,
wait |
Field Detail |
public String text
Constructor Detail |
public Memo()
Method Detail |
public static int memoCount()
public static Memo getMemo(int i)
i
- the index to getpublic static boolean getMemo(int i, Memo memo)
i
- the index to getmemo
- the memo object to place the memo into.public static boolean addMemo(Memo memo)
memo
- the memo to addpublic void saveState(DataStream ds)
public void loadState(DataStream ds)
public byte getID()
public Storable getInstance()
public static Memo findMemo(String title, boolean ignoreCase)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |