gnu.kawa.models
Class Text
java.lang.Object
gnu.kawa.models.Model
gnu.kawa.models.Text
- All Implemented Interfaces:
- Viewable, java.io.Serializable
public class Text
- extends Model
- implements Viewable, java.io.Serializable
An editable sequences of characters and embedded objects.
For now, only supports plain text.
Conceptually similar to javax.swing.text.Document.
May display as a one line "text field" or a multi-line "text area"
depending on styling preferences; for now only the former is implemented.
- See Also:
- Serialized Form
Constructor Summary |
Text()
|
Text(java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
public final CharBuffer buffer
Text
public Text()
Text
public Text(java.lang.String text)
makeView
public void makeView(Display display,
java.lang.Object where)
- Specified by:
makeView
in interface Viewable
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
getBuffer
public CharBuffer getBuffer()