javax.microedition.lcdui
Class Displayable
java.lang.Objectjavax.microedition.lcdui.Displayable
- Direct Known Subclasses:
- Canvas, Screen
- public abstract class Displayable extends Object
An object that has the capability of being placed on the display. A Displayable object may have a title, a ticker, zero or more commands and a listener associated with it. The contents displayed and their interaction with the user are defined by subclasses.
The title string may contain line breaks. The display of the title string must break accordingly. For example, if only a single line is available for a title and the string contains a line break then only the characters up to the line break are displayed.
Unless otherwise specified by a subclass, the default state of newly created Displayable objects is as follows:
- it is not visible on the
Display; - there is no
Tickerassociated with thisDisplayable; - the title is
null; - there are no
Commandspresent; and - there is no
CommandListenerpresent.
- Since:
- MIDP 1.0
翻译: lori.wang
Displayable类作为MIDP1.0的一部分,定义了能够在屏幕上显示的对象的基础行为。此类可包含标题、滚动条及命令监听器,并由其子类具体实现显示内容及用户交互。
742

被折叠的 条评论
为什么被折叠?



