|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMIDlet
LeGaMidlet
Application entry point and core Midlet class. Responsibilites include listening for commands, parsing of messages and program control flow.
Field Summary | |
protected int |
answerIndex
|
protected ClientNetworkThread |
clientNetwork
|
private boolean |
CommandCreated_NewUser
|
private boolean |
CommandCreated_Retry
|
protected boolean |
connectionOK
|
protected long |
deleteMe
|
protected TextField |
input
|
protected Form |
inputForm
|
int |
inputState
|
protected java.lang.String |
lectureCode
|
protected Form |
messageFrm
|
protected java.lang.Thread |
networkThread
|
protected java.lang.String |
nickName
|
protected Command |
okCommand
|
protected LeGaGameCanvas |
okForm
|
protected java.lang.Thread |
okThread
|
protected java.lang.String |
passWord
|
protected Form |
questionForm
|
private boolean |
readyToClose
|
Constructor Summary | |
LeGaMidlet()
|
Method Summary | |
void |
commandAction(Command command,
Displayable displayable)
Triggered through the commandlistener interface and performs the respective actions, such as changing the state of the program flow, or sending data over the network to the server. |
protected void |
destroyApp(boolean b)
Closes the application and exits to the OS of the the device. |
protected void |
forcedLogin()
Initiates the login seuence. |
void |
networkFailure()
Displays an error on screen if the network connection is not properly initilized. |
void |
networkStatus(boolean connectionOK)
Sets the appropriate state of the network. |
void |
parse(java.lang.String received)
Parses the incoming network messages, nad performs the appropriate actions according to the recieved data. |
protected void |
pauseApp()
Not implemented. |
void |
readyToClose()
Sets a flag that indicates q wish to close the apllication. |
protected void |
startApp()
Initialize members, network connection, and start login sequence. |
void |
timesUp()
Calles from external TimerTask thread whenever the timelimit for answering a question is exceeded. |
private void |
waitIDLE()
Makes the running thread sleep indefinietely, and wakes the other thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ClientNetworkThread clientNetwork
protected java.lang.Thread networkThread
protected Command okCommand
protected boolean connectionOK
protected TextField input
protected Form inputForm
protected Form questionForm
protected Form messageFrm
public int inputState
protected LeGaGameCanvas okForm
protected int answerIndex
protected java.lang.Thread okThread
protected java.lang.String nickName
protected java.lang.String passWord
protected java.lang.String lectureCode
protected long deleteMe
private boolean readyToClose
private boolean CommandCreated_Retry
private boolean CommandCreated_NewUser
Constructor Detail |
public LeGaMidlet()
Method Detail |
protected void startApp() throws MIDletStateChangeException
MIDletStateChangeException
protected void forcedLogin()
protected void pauseApp()
protected void destroyApp(boolean b) throws MIDletStateChangeException
b
-
MIDletStateChangeException
public void commandAction(Command command, Displayable displayable)
command
- displayable
- public void networkFailure()
public void parse(java.lang.String received)
received
- the received dataprivate void waitIDLE()
public void networkStatus(boolean connectionOK)
connectionOK
- public void timesUp()
public void readyToClose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |