Package gnu.kawa.models
Class Text
- java.lang.Object
-
- gnu.kawa.models.Model
-
- gnu.kawa.models.Text
-
- All Implemented Interfaces:
Viewable
,Serializable
public class Text extends Model implements Viewable, 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
-
-
Field Summary
Fields Modifier and Type Field Description CharBuffer
buffer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharBuffer
getBuffer()
String
getText()
void
makeView(Display display, Object where)
void
setText(String text)
-
Methods inherited from class gnu.kawa.models.Model
addListener, addListener, notifyListeners
-
-
-
-
Field Detail
-
buffer
public final CharBuffer buffer
-
-
Constructor Detail
-
Text
public Text()
-
Text
public Text(String text)
-
-