org.kalmeo.kuix.core
Interface KuixInitializer

All Known Implementing Classes:
KuixMIDlet

public interface KuixInitializer

This interface permit to implements custom value during Kuix engine init process.
The default implementation of this interface is KuixMIDlet. But you can init Kuix without the KuixMIDlet class by implementing you own KuixInitializer and add this couple of lines to you standard Java ME application :

 KuixInitializer initializer = new MyKuixInitializer();
 KuixCanvas canvas = new KuixCanvas(initializer, true);
 KuixConverter converter = new KuixConverter();
 Kuix.initialize(null, canvas, converter);
 
After to be able to switch screen to the KuixCanvas by :
 Display.getDisplay(<myMIDlet>).setCurrent(Kuix.getCanvas());
 

Author:
bbeaulant

Method Summary
 void destroyImpl()
          Invoked to destroy the MIDlet implementation.
 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.
 void initDesktopContent(Desktop desktop)
          Init the Desktop's content.
 void initDesktopStyles()
          Implement in this method all your style initializations (e.g.
 void processDebugInfosKeyEvent()
          This method is invoked when a Kuix internal debug infos key event occured.
 

Method Detail

getMIDlet

MIDlet getMIDlet()
Returns the application MIDlet instance.

Returns:
the MIDlet instance.

getInitializationBackgroundColor

int getInitializationBackgroundColor()
Returns the initalization background color.

Returns:
a color int representation.

getInitializationMessageColor

int getInitializationMessageColor()
Returns the initalization message color.

Returns:
ta color int representation.

getInitializationMessage

java.lang.String getInitializationMessage()
Returns the initalization message (e.g. "Loading") or null if no message.

Returns:
a string

getInitializationImageFile

java.lang.String getInitializationImageFile()
Returns the initalization message (e.g. "/img/loading.png") or null if no image.

Returns:
a string

initDesktopStyles

void initDesktopStyles()
Implement in this method all your style initializations (e.g. Kuix.loadCss("myStyle.css");).


initDesktopContent

void initDesktopContent(Desktop desktop)
Init the Desktop's content. This method is call during the initialization process, then it is preferable to load the first screen there.

Parameters:
desktop -

destroyImpl

void destroyImpl()
Invoked to destroy the MIDlet implementation.


processDebugInfosKeyEvent

void processDebugInfosKeyEvent()
This method is invoked when a Kuix internal debug infos key event occured.
You can override this method to implement your own debug infos process.



Copyright © 2007-2008 Kalmeo. All Rights Reserved.