MID Profile

javax.microedition.lcdui
Class Screen

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Screen
Direct Known Subclasses:
Alert, Form, List, TextBox

public abstract class Screen
extends Displayable

The Screen class is an abstract superclass that provides its subclasses with an optional title and an optional ticker-tape style display.


Method Summary
 Ticker getTicker()
          Gets the ticker used by this Screen.
 String getTitle()
          Gets the title of the Screen.
 void setTicker(Ticker ticker)
          Set a ticker for use with this Screen, replacing any previous ticker.
 void setTitle(String s)
          Sets the title of the Screen.
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTitle

public String getTitle()
Gets the title of the Screen. Returns null if there is no title.

setTitle

public void setTitle(String s)
Sets the title of the Screen. If null is given, removes the title.

If the Screen is physically visible, the visible effect should take place no later than immediately after the callback or startApp returns back to the implementation.

Parameters:
s - the new title, or null for no title

setTicker

public void setTicker(Ticker ticker)
Set a ticker for use with this Screen, replacing any previous ticker. If null, removes the ticker object from this screen. The same ticker is may be shared by several Screen objects within an application. This is done by calling setTicker() on different screens with the same Ticker object. If the Screen is physically visible, the visible effect should take place no later than immediately after the callback or startApp returns back to the implementation.
Parameters:
ticker - the ticker object used on this screen

getTicker

public Ticker getTicker()
Gets the ticker used by this Screen.
Returns:
ticker object used, or null if no ticker is present

MID Profile

Submit a comment or suggestion Version 0.9 of MID Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.