|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.Displayable javax.microedition.lcdui.Screen javax.microedition.lcdui.Form dict.me.BaseForm
public abstract class BaseForm
Base class for forms used in the package. Collects some common functionality.
Field Summary | |
---|---|
private javax.microedition.lcdui.Gauge |
m_gauge
For progress presentation. |
protected DictMidlet |
m_parent
The parent midlet. |
Constructor Summary | |
---|---|
BaseForm(DictMidlet aParent,
java.lang.String aTitle)
Initializes the form. |
Method Summary | |
---|---|
abstract void |
addResult(java.lang.String aResult)
Adding results must be implemented in derived classes. |
protected void |
emptyForm()
Deletes of contents of the form but the gauge. |
protected DictIndex |
getIndex()
Returns dictionary index handled in this application. |
protected void |
message(java.lang.Object msg)
Prints the given message in an alert box. |
void |
progress(int aPercentage)
Shows progress of the background thread in the gauge. |
void |
ready(java.lang.String aMessage)
Called if the backgroudn thread finishes. |
protected void |
showForm(javax.microedition.lcdui.Form aForm)
Shows the given form. |
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 |
Methods inherited from interface javax.microedition.lcdui.CommandListener |
---|
commandAction |
Field Detail |
---|
protected DictMidlet m_parent
private javax.microedition.lcdui.Gauge m_gauge
Constructor Detail |
---|
public BaseForm(DictMidlet aParent, java.lang.String aTitle)
aParent
- the midlet to which the forms belongs.aTitle
- the title of the form.Method Detail |
---|
protected void emptyForm()
protected void showForm(javax.microedition.lcdui.Form aForm)
aForm
- the form to showprotected void message(java.lang.Object msg)
msg
- the message to show.protected final DictIndex getIndex()
public final void progress(int aPercentage)
progress
in interface IProgress
aPercentage
- the progress in percentspublic abstract void addResult(java.lang.String aResult)
addResult
in interface IResult
aResult
- the query result to show in the formpublic final void ready(java.lang.String aMessage)
ready
in interface IProgress
aMessage
- usually not null, if error. Show it then.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |