|
||||||||||
| 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 | |
|---|---|
static PopupBox |
alert(java.lang.String message)
Deprecated. use Kuix.alert(message) |
PopupBox |
alert(java.lang.String message,
int options)
Deprecated. use Kuix.alert(message, options) |
static PopupBox |
alert(java.lang.String message,
int options,
java.lang.String okAction,
java.lang.String yesAction,
java.lang.String noAction,
java.lang.String cancelAction)
Deprecated. use Kuix.alert(message, options, okAction, yesAction, noAction, cancelAction) |
PopupBox |
alert(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. use Kuix.alert(message, throwable) |
PopupBox |
alert(java.lang.Throwable throwable)
Deprecated. use Kuix.alert(throwable) |
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. |
KuixCanvas |
getCanvas()
Deprecated. use Kuix.getCanvas() |
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. |
static PopupBox |
showPopupBox(java.lang.String styleClass,
int duration,
java.lang.Object content,
int progress,
java.lang.String[] buttonTexts,
int[] buttonShortcutKeyCodes,
java.lang.String[] buttonOnActions,
java.lang.String onCloseAction)
Deprecated. use Kuix.showPopupBox(styleClass, duration, content, progress, buttonTexts, buttonShortcutKeyCodes, buttonOnActions, onCloseAction) |
static PopupBox |
splash(int duration,
Widget content,
java.lang.String onCloseAction)
Deprecated. use Kuix.splash(duration, content, onCloseAction) |
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 KuixInitializerMIDlet instance.public KuixCanvas getCanvas()
Kuix.getCanvas()
KuixCanvas object instance.
public Display getDisplay()
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 KuixInitializerpublic int getInitializationMessageColor()
KuixInitializer
getInitializationMessageColor in interface KuixInitializerpublic java.lang.String getInitializationMessage()
KuixInitializernull
if no message.
getInitializationMessage in interface KuixInitializerpublic java.lang.String getInitializationImageFile()
KuixInitializernull if no image.
getInitializationImageFile in interface KuixInitializerprotected KuixConverter createNewConverterInstance()
KuixConverter derived
converter.
public abstract void initDesktopStyles()
KuixInitializerKuix.loadCss("myStyle.css");).
initDesktopStyles in interface KuixInitializerpublic abstract void initDesktopContent(Desktop desktop)
KuixInitializer
initDesktopContent in interface KuixInitializerpublic void destroyImpl()
KuixInitializer
destroyImpl in interface KuixInitializerpublic 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 static PopupBox showPopupBox(java.lang.String styleClass,
int duration,
java.lang.Object content,
int progress,
java.lang.String[] buttonTexts,
int[] buttonShortcutKeyCodes,
java.lang.String[] buttonOnActions,
java.lang.String onCloseAction)
Kuix.showPopupBox(styleClass, duration, content, progress, buttonTexts, buttonShortcutKeyCodes, buttonOnActions, onCloseAction)
PopupBox.
This method is a full feature of all PopupBox helpers like alert, splash.
styleClass - The PopupBox style classduration - the duration of the PopupBoxcontent - the content could be a Widget or a Stringprogress - a fixed-point integer representing progress valuebuttonTexts - The ordered buttons textbuttonShortcutKeyCodes - The ordred buttons shortcut kuixKeyCodebuttonOnActions - The ordred buttons onAction
PopupBox instance
public static PopupBox splash(int duration,
Widget content,
java.lang.String onCloseAction)
Kuix.splash(duration, content, onCloseAction)
PopupBox
duration - the duration of the splash (in ms)content - the splash widget content
PopupBox instance
public static PopupBox alert(java.lang.String message,
int options,
java.lang.String okAction,
java.lang.String yesAction,
java.lang.String noAction,
java.lang.String cancelAction)
Kuix.alert(message, options, okAction, yesAction, noAction, cancelAction)
options
parameter.
Example:
alert("Hello world", KuixConstants.ALERT_OK | KuixConstants.ALERT_INFO, "doOk", null, null, null);
alert("Is it rainning ?", KuixConstants.ALERT_YES | KuixConstants.ALERT_NO | KuixConstants.ALERT_QUESTION, null, null, "doYes", "doNo");
message - the text message to displayoptions - the options KuixConstantsokAction - the ok onAction nameyesAction - the yes onAction namenoAction - the no onAction namecancelAction - the cancel onAction name
PopupBox instance
public PopupBox alert(java.lang.String message,
int options)
Kuix.alert(message, options)
PopupBox with a
single text message an single OK button (mapped to FIRE key). If you try
to use other buttons with options, they will be ignored.
message - the message to displayoptions - KuixConstants
PopupBox instancepublic static PopupBox alert(java.lang.String message)
Kuix.alert(message)
message - the message to display
PopupBox instance
public PopupBox alert(java.lang.String message,
java.lang.Throwable throwable)
Kuix.alert(message, throwable)
Throwable object message and 'alerterror'
style class.
message - the message to displaythrowable - the Throwable to get message or class name
PopupBox instancepublic PopupBox alert(java.lang.Throwable throwable)
Kuix.alert(throwable)
Throwable object message and
'alerterror' style class.
throwable - the Throwable to get message or class name
PopupBox instance
public void commandAction(Command command,
Displayable displayable)
protected void startApp()
throws MIDletStateChangeException
MIDletStateChangeExceptionprotected void pauseApp()
protected void destroyApp(boolean unconditional)
public void processDebugInfosKeyEvent()
KuixInitializer
processDebugInfosKeyEvent in interface KuixInitializerprotected 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 | |||||||||