|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMIDlet
org.kalmeo.kuix.core.KuixMIDlet
public abstract class KuixMIDlet
This class derived the J2ME MIDlet
and is the base of all Kuix
applications.
Simply derived this class to start your own Kuix application.
Constructor Summary | |
---|---|
KuixMIDlet()
Construct a KuixMIDlet |
Method Summary | |
---|---|
void |
commandAction(Command command,
Displayable displayable)
|
protected KuixConverter |
createNewConverterInstance()
Returns a new KuixConverter object instance. |
protected void |
destroyApp(boolean unconditional)
|
void |
destroyImpl()
Invoked to destroy the MIDlet implementation. |
void |
fatal(java.lang.String message)
Display a basic lcdui fatal error alert popup with the given message . |
void |
fatal(java.lang.String message,
java.lang.Throwable throwable)
Display a basic lcdui fatal error alert popup with the given message and throwable . |
java.lang.String |
getAppVersion()
Returns the MIDlet version extracted from jad properties. |
static KuixMIDlet |
getDefault()
|
Display |
getDisplay()
Returns the display object instance. |
int |
getInitializationBackgroundColor()
Returns the initalization background color. |
java.lang.String |
getInitializationImageFile()
Returns the initalization message (e.g. |
java.lang.String |
getInitializationMessage()
Returns the initalization message (e.g. |
int |
getInitializationMessageColor()
Returns the initalization message color. |
MIDlet |
getMIDlet()
Returns the application MIDlet instance. |
abstract void |
initDesktopContent(Desktop desktop)
Init the Desktop's content. |
abstract void |
initDesktopStyles()
Implement in this method all your style initializations (e.g. |
protected boolean |
isFullscreen()
Overide this method to customize your KuixMIDlet fullscreen
attribute. |
protected void |
onDestroy()
Call defore destroy process. |
protected void |
onPause()
Call before pause process. |
protected void |
onResumed()
Call after resume (unpause) process. |
protected void |
onStarted()
Call after start process. |
void |
onWorkerError(WorkerTask task,
java.lang.Error error)
|
void |
onWorkerException(WorkerTask task,
java.lang.Exception exception)
|
protected void |
pauseApp()
|
void |
processDebugInfosKeyEvent()
This method is invoked when a Kuix internal debug infos key event occured. |
protected void |
startApp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KuixMIDlet()
KuixMIDlet
Method Detail |
---|
public MIDlet getMIDlet()
KuixInitializer
getMIDlet
in interface KuixInitializer
MIDlet
instance.public Display getDisplay()
public java.lang.String getAppVersion()
public static KuixMIDlet getDefault()
protected boolean isFullscreen()
KuixMIDlet
fullscreen
attribute. By default the value is true
.
true
if the midlet is full screenpublic int getInitializationBackgroundColor()
KuixInitializer
getInitializationBackgroundColor
in interface KuixInitializer
public int getInitializationMessageColor()
KuixInitializer
getInitializationMessageColor
in interface KuixInitializer
public java.lang.String getInitializationMessage()
KuixInitializer
null
if no message.
getInitializationMessage
in interface KuixInitializer
public java.lang.String getInitializationImageFile()
KuixInitializer
null
if no image.
getInitializationImageFile
in interface KuixInitializer
protected KuixConverter createNewConverterInstance()
KuixConverter
derived
converter.
public abstract void initDesktopStyles()
KuixInitializer
Kuix.loadCss("myStyle.css");
).
initDesktopStyles
in interface KuixInitializer
public abstract void initDesktopContent(Desktop desktop)
KuixInitializer
initDesktopContent
in interface KuixInitializer
public void destroyImpl()
KuixInitializer
destroyImpl
in interface KuixInitializer
public void fatal(java.lang.String message)
message
. After displaying
the message the application will be closed.
message
- public void fatal(java.lang.String message, java.lang.Throwable throwable)
message
and throwable
. After displaying
the message the application will be closed.
message
- throwable
- public void commandAction(Command command, Displayable displayable)
protected void startApp() throws MIDletStateChangeException
MIDletStateChangeException
protected void pauseApp()
protected void destroyApp(boolean unconditional)
public void processDebugInfosKeyEvent()
KuixInitializer
processDebugInfosKeyEvent
in interface KuixInitializer
protected void onStarted()
protected void onPause()
protected void onResumed()
protected void onDestroy()
public void onWorkerError(WorkerTask task, java.lang.Error error)
public void onWorkerException(WorkerTask task, java.lang.Exception exception)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |