|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
de.enough.polish.ui.splash.InitializerSplashScreen
public class InitializerSplashScreen
Provides a SplashScreen that initializes the real application in a background thread.
Copyright (c) Enough Software 2005 - 2009
ApplicationInitializer.initApp()| Field Summary |
|---|
| Fields inherited from class javax.microedition.lcdui.Canvas |
|---|
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
| Constructor Summary | |
|---|---|
InitializerSplashScreen(Display display,
Image image,
ApplicationInitializer initializer)
Creates a new InitializerSplashScreen using the internal default view and a white background. |
|
InitializerSplashScreen(Display display,
Image image,
ApplicationInitializer initializer,
Style style)
Creates a new InitializerSplashScreen using the internal default view and a white background. |
|
InitializerSplashScreen(Display display,
Image image,
int backgroundColor,
String readyMessage,
int messageColor,
ApplicationInitializer initializer)
Creates a new InitializerSplashScreen using the internal default view. |
|
InitializerSplashScreen(Display display,
Image image,
int backgroundColor,
String readyMessage,
int messageColor,
ApplicationInitializer initializer,
Style style)
Creates a new InitializerSplashScreen using the internal default view. |
|
InitializerSplashScreen(Display display,
SplashView view,
ApplicationInitializer initializer)
|
|
| Method Summary | |
|---|---|
Background |
getBackground()
Retrieves the background. |
void |
hideNotify()
|
void |
keyPressed(int keyCode)
|
void |
keyReleased(int keyCode)
|
void |
keyRepeated(int keyCode)
|
void |
paint(Graphics g)
|
void |
pointerDragged(int x,
int y)
Processes pointer dragged events. |
void |
pointerPressed(int x,
int y)
|
void |
pointerReleased(int x,
int y)
|
void |
run()
|
void |
setBackground(Background background)
Sets the background of this splash screen. |
void |
setMessage(String message)
Sets a message that is displayed immediately. |
void |
showNotify()
|
void |
sizeChanged(int width,
int height)
|
| Methods inherited from class javax.microedition.lcdui.Canvas |
|---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setFullScreenMode |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitializerSplashScreen(Display display,
Image image,
ApplicationInitializer initializer)
display - the display responsible for switching screensimage - the image that is shown in the centerinitializer - the application initializer that will be called in a background thread
public InitializerSplashScreen(Display display,
Image image,
ApplicationInitializer initializer,
Style style)
display - the display responsible for switching screensimage - the image that is shown in the centerinitializer - the application initializer that will be called in a background threadstyle - the style for this screen - only the background is currently applied
public InitializerSplashScreen(Display display,
Image image,
int backgroundColor,
String readyMessage,
int messageColor,
ApplicationInitializer initializer)
display - the display responsible for switching screensimage - the image that is shown in the centerbackgroundColor - the background color, e.g. white: 0xFFFFFFreadyMessage - the message that is displayed when the application has been initialized, set to null if the screen created by ApplicationInitializer.initApp() should be shown directly after that method returns.messageColor - the color for the message, e.g. black: 0initializer - the application initializer that will be called in a background thread
public InitializerSplashScreen(Display display,
Image image,
int backgroundColor,
String readyMessage,
int messageColor,
ApplicationInitializer initializer,
Style style)
display - the display responsible for switching screensimage - the image that is shown in the centerbackgroundColor - the background color, e.g. white: 0xFFFFFFreadyMessage - the message that is displayed when the application has been initialized, set to null if the screen created by ApplicationInitializer.initApp() should be shown directly after that method returns.messageColor - the color for the message, e.g. black: 0initializer - the application initializer that will be called in a background threadstyle - the style for this screen - only the background is currently applied
public InitializerSplashScreen(Display display,
SplashView view,
ApplicationInitializer initializer)
| Method Detail |
|---|
public void setMessage(String message)
message - the new message, null when no message should be shown.public void paint(Graphics g)
paint in class Canvaspublic void run()
run in interface Runnablepublic void keyPressed(int keyCode)
keyPressed in class Canvaspublic void keyReleased(int keyCode)
keyReleased in class Canvaspublic void keyRepeated(int keyCode)
keyRepeated in class Canvas
public void pointerPressed(int x,
int y)
pointerPressed in class Canvas
public void pointerReleased(int x,
int y)
pointerReleased in class Canvas
public void pointerDragged(int x,
int y)
pointerDragged in class Canvasx - the horizontal coordinate of the clicked pixely - the vertical coordinate of the clicked pixel
public void sizeChanged(int width,
int height)
sizeChanged in class Canvaspublic void showNotify()
showNotify in class Canvaspublic void hideNotify()
hideNotify in class Canvaspublic Background getBackground()
public void setBackground(Background background)
background - the background to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||