javax.microedition.lcdui
Class Screen

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.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 newTicker)
          Set a ticker for use with this Screen, replacing any previous ticker.
 void setTitle(String newTitle)
          Sets the title of the Screen.
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setCommandListener
 
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:
Title of the Screen or null if there is no title.

setTitle

public void setTitle(String newTitle)
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:
newTitle -

setTicker

public void setTicker(Ticker newTicker)
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:
newTicker -

getTicker

public Ticker getTicker()
Gets the ticker used by this Screen.

Returns:
ticker object used, or null if no ticker is present


Generated on 2003-10-17For further information and updates, please visit Siemens mobile Developer Portal