| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Form
dict.me.BaseForm
dict.me.DictForm
public class DictForm
The main dictionary form.
| Field Summary | |
|---|---|
private  javax.microedition.lcdui.TextField | 
m_input
Input box for the keyword to search for.  | 
private  DictIndexLoadThread | 
m_loadthr
Thread for background loading.  | 
private  SearchKeysForm | 
m_skform
For for searching keywords.  | 
private  DictIndexSearchThread | 
m_thr
Thread for searching for keyword explanations.  | 
private static int | 
MAXINPLEN
Maximum length of the keyword to search in characters.  | 
| Fields inherited from class dict.me.BaseForm | 
|---|
m_parent | 
| Constructor Summary | |
|---|---|
DictForm(DictMidlet aParent)
Initializes the form.  | 
|
| Method Summary | |
|---|---|
 void | 
addResult(java.lang.String aResult)
Shows the given result in the form.  | 
 void | 
commandAction(javax.microedition.lcdui.Command c,
              javax.microedition.lcdui.Displayable s)
Command actions.  | 
private  void | 
doSearch()
Starts searching for the keyword explanations.  | 
 void | 
doSearch(java.lang.String aKeyword)
Starts searching for the given keyword.  | 
protected  void | 
emptyForm()
Initializes the layout of an empty form.  | 
 java.lang.String | 
getInput()
Returns the keyword entered by the user.  | 
| Methods inherited from class dict.me.BaseForm | 
|---|
getIndex, message, progress, ready, showForm | 
| Methods inherited from class javax.microedition.lcdui.Form | 
|---|
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size | 
| Methods inherited from class javax.microedition.lcdui.Displayable | 
|---|
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static final int MAXINPLEN
private DictIndexLoadThread m_loadthr
private DictIndexSearchThread m_thr
private javax.microedition.lcdui.TextField m_input
private SearchKeysForm m_skform
| Constructor Detail | 
|---|
public DictForm(DictMidlet aParent)
aParent - the parent midlet.| Method Detail | 
|---|
protected void emptyForm()
emptyForm in class BaseFormpublic final void addResult(java.lang.String aResult)
addResult in interface IResultaddResult in class BaseFormaResult - the result string to add.public final java.lang.String getInput()
public final void doSearch(java.lang.String aKeyword)
aKeyword - the keyword to searchprivate void doSearch()
public final void commandAction(javax.microedition.lcdui.Command c,
                                javax.microedition.lcdui.Displayable s)
c - c.getCommandType() contains the action caused by the user.s - ignored.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||