Class 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 Detail

      • Text

        public Text()
      • Text

        public Text​(java.lang.String text)
    • Method Detail

      • 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)