|
||||||||||
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
org.netbeans.microedition.lcdui.AbstractInfoScreen
org.netbeans.microedition.lcdui.SplashScreen
public class SplashScreen
This component represents a splash screen, which is usually being displayed when the application starts.
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 | |
---|---|
SplashScreen(javax.microedition.lcdui.Display display)
Creates a new instance of SplashScreen |
Method Summary | |
---|---|
int |
getTimeout()
Gets current timeout of the splash screen |
protected void |
hideNotify()
|
boolean |
isAllowTimeoutInterrupt()
Can be the splashscreen interrupted (dismissed) by the user pressing a key? |
protected void |
keyPressed(int keyCode)
keyPressed callback |
protected void |
pointerPressed(int x,
int y)
pointerPressed callback |
void |
setAllowTimeoutInterrupt(boolean allow)
Set to true, when the timeout with a specified timeout interval can be interrupted by pressing a key. |
void |
setTimeout(int timeout)
Sets the timeout of the splash screen - i.e. |
protected void |
showNotify()
starts the coundown of the timeout |
Methods inherited from class org.netbeans.microedition.lcdui.AbstractInfoScreen |
---|
getDisplay, getImage, getNextAlert, getNextDisplayable, getText, getTextFont, paint, setImage, setNextDisplayable, setNextDisplayable, setText, setTextFont, sizeChanged, switchToDisplayable, switchToNextDisplayable |
Methods inherited from class javax.microedition.lcdui.Canvas |
---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, pointerReleased, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplashScreen(javax.microedition.lcdui.Display display) throws java.lang.IllegalArgumentException
display
- display - cannot be null
java.lang.IllegalArgumentException
- when the display parameter is nullMethod Detail |
---|
public void setTimeout(int timeout)
timeout
- timeout in millisecondspublic int getTimeout()
public void setAllowTimeoutInterrupt(boolean allow)
allow
- true if the user can interrupt the screen, false if the user need to wait
until timeout.public boolean isAllowTimeoutInterrupt()
protected void keyPressed(int keyCode)
keyPressed
in class javax.microedition.lcdui.Canvas
keyCode
- protected void pointerPressed(int x, int y)
pointerPressed
in class javax.microedition.lcdui.Canvas
x
- y
- protected void showNotify()
showNotify
in class AbstractInfoScreen
protected void hideNotify()
hideNotify
in class javax.microedition.lcdui.Canvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |