public class Display extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Display.StateChangedListener
Listener to receive state changed notification.
|
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_FOREGROUND
State Type: Foreground
|
Modifier and Type | Method and Description |
---|---|
Area |
getContentArea()
Gets content area of the Display
|
static Display |
getDisplay()
Gets the default Display instance
|
boolean |
hasForeground()
Returns whether the display is in foreground
|
void |
refresh()
Refreshs the screen
|
void |
requestForeground()
Called to get the display to request the foreground
|
void |
setScreen(Screen screen)
Loads and shows the given screen.
|
void |
setStateChangedListener(Display.StateChangedListener listener)
Sets StateChangedListener to monitor state change event
|
void |
stop()
Stops this Display.
|
public static final int TYPE_FOREGROUND
public static Display getDisplay()
public Area getContentArea()
public void setScreen(Screen screen)
screen
- new screenpublic void refresh()
public void stop()
public void setStateChangedListener(Display.StateChangedListener listener)
listener
- StateChangedListener listenerpublic boolean hasForeground()
public void requestForeground()