Name

Screen

Synopsis

This class is an abstract class derived from Displayable that is the base from which the screen classes used in the high-level API (Alert, Form, List and TextBox) are derived. This class adds two features to those provided by its superclass:

A title

An optional string that is typically displayed at the top of the screen and describes the function of the screen. The title is set using the setTitle() method and may be retrieved using getTitle().

A ticker

An optional scrolling string that is usually placed above the screen, alongside, above or below the title, depending on the implementation. The ticker is an instance of the Ticker class that may be installed using the setTicker(). The same ticker may be associated with more than one Screen.

                  
public abstract class Screen extends Displayable {
// No Constructor
                    
// Public Instance Methods
   public Ticker getTicker();  
   public String getTitle();  
   public void setTicker( Ticker ticker);  
   public void setTitle( String s);  
}

Subclasses

Alert, Form, List, TextBox

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.