DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class Display

java.lang.Object
  |
  +--javax.microedition.lcdui.Display

public class Display
extends Object

This is the manager for displays in the system. There is one display per midlet


Field Summary
 Displayable current
          The current displayable
 
Method Summary
 void callSerially(Runnable r)
          Let cause the runnable object to have its run method called sometime after the next repaint
 Displayable getCurrent()
          Get the current displayable
static Display getDisplay(MIDlet m)
          Get the display for a midlet
 boolean isColor()
          Do we support colour - the answer is yes
 int numColors()
          Return the number of colours that can be represented
 void setCurrent(Alert alert, Displayable next)
          Set the current screen to be an alert, followed by a displayable
 void setCurrent(Displayable next)
          Set the current displayable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

public Displayable current
The current displayable

Method Detail

getDisplay

public static Display getDisplay(MIDlet m)
Get the display for a midlet

Parameters:
m - The midlet
Returns:
the display object for the midlet

callSerially

public void callSerially(Runnable r)
Let cause the runnable object to have its run method called sometime after the next repaint

Parameters:
r - The runnable object

getCurrent

public Displayable getCurrent()
Get the current displayable

Returns:
the displayable

isColor

public boolean isColor()
Do we support colour - the answer is yes

Returns:
true if the display supports colour

numColors

public int numColors()
Return the number of colours that can be represented

Returns:
the number of colours

setCurrent

public void setCurrent(Alert alert,
                       Displayable next)
Set the current screen to be an alert, followed by a displayable

Parameters:
alert - The alert
next - The next displayable

setCurrent

public void setCurrent(Displayable next)
Set the current displayable

Parameters:
next - The displayable to make current

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification