| org.netbeans.microedition.lcdui.AbstractInfoScreen org.netbeans.microedition.lcdui.SplashScreen
SplashScreen | public class SplashScreen extends AbstractInfoScreen (Code) | | This component represents a splash screen, which is usually being displayed
when the application starts. It waits for a specified amount of time (by default
5000 milliseconds) and then calls specified command listener commandAction method
with DISMISS_COMMAND as command parameter.
This version is using CommandListener and static Command pattern, but is still
compatible with older version. So if there is no command listener specified,
it still can use setNextDisplayable() method to specify the dismiss screen and
automatically switch to it.
author: breh |
Field Summary | |
final public static Command | DISMISS_COMMAND | final public static int | FOREVER Timeout value which wait forever. |
DISMISS_COMMAND | final public static Command DISMISS_COMMAND(Code) | | Command fired when the screen is about to be dismissed
|
FOREVER | final public static int FOREVER(Code) | | Timeout value which wait forever. Value is "0".
|
getTimeout | public int getTimeout()(Code) | | Gets current timeout of the splash screen
timeout value |
hideNotify | protected void hideNotify()(Code) | | |
isAllowTimeoutInterrupt | public boolean isAllowTimeoutInterrupt()(Code) | | Can be the splashscreen interrupted (dismissed) by the user pressing a key?
true if user can interrupt it, false otherwise |
keyPressed | protected void keyPressed(int keyCode)(Code) | | keyPressed callback
Parameters: keyCode - |
pointerPressed | protected void pointerPressed(int x, int y)(Code) | | pointerPressed callback
Parameters: x - Parameters: y - |
setAllowTimeoutInterrupt | public void setAllowTimeoutInterrupt(boolean allow)(Code) | | When set to true, the splashscreen timeout can be interrupted
(and thus dismissed) by pressing a key.
Parameters: allow - true if the user can interrupt the screen, false if the user need to waituntil timeout. |
setTimeout | public void setTimeout(int timeout)(Code) | | Sets the timeout of the splash screen - i.e. the time in milliseconds for
how long the splash screen is going to be shown on the display.
If the supplied timeout is 0, then the splashscreen waits forever (it needs to
be dismissed by pressing a key)
Parameters: timeout - in milliseconds |
showNotify | protected void showNotify()(Code) | | starts the coundown of the timeout
|
|
|