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 usinggetTitle().- 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
Tickerclass that may be installed using thesetTicker(). The same ticker may be associated with more than oneScreen.
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access