|
|||||||||
| 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 | |
java.lang.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 boolean |
changeMemo(int i,
Memo memo)
Changes the Memo at the given index |
static boolean |
delMemo(int i)
Deletes a Memo entry in the database |
Memo |
findMemo(java.lang.String text,
boolean ignoreCase)
Search through the Memo to find records that starts with the given text. ignoreCase searches are slower, since the string is converted to lowercase before comparision. |
static int |
findMemoIndex(java.lang.String text,
boolean ignoreCase)
Search through the Memo to find records that starts with the given text. ignoreCase searches are 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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public java.lang.String text
| Constructor Detail |
public Memo()
| Method Detail |
public static int memoCount()
public static Memo getMemo(int i)
i - the index to get
public 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 static boolean delMemo(int i)
i - the index to delete
public static boolean changeMemo(int i,
Memo memo)
i - the index to changememo - a Memoobject with the values you want the Memo at i to havepublic void saveState(DataStream ds)
public void loadState(DataStream ds)
public byte getID()
public Storable getInstance()
public Memo findMemo(java.lang.String text,
boolean ignoreCase)
text - this String value contains the text to search
for ; multi-lines are OK with \n separatorignoreCase - if true, the search is case-insensitive ; uses
String.toLowerCaseMemo value ; null if no memo foundConvert.toLowerCase(char)
public static int findMemoIndex(java.lang.String text,
boolean ignoreCase)
text - this String value contains the text to search
for ; multi-lines are OK with \n separatorignoreCase - if true, the search is case-insensitive ; uses
String.toLowerCase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||