Package snap.text

Class TextDoc

All Implemented Interfaces:
CharSequence, Cloneable, PropChange.DoChange, CharSequenceX, XMLArchiver.Archivable

public class TextDoc extends TextBlock
This class is the basic text storage class, holding a list of TextLine.
  • Constructor Details

    • TextDoc

      public TextDoc()
      Constructor.
  • Method Details

    • getSourceURL

      public WebURL getSourceURL()
      Returns the source URL.
    • setSourceURL

      public void setSourceURL(WebURL aURL)
      Sets the Source URL.
    • getSourceFile

      public WebFile getSourceFile()
      Returns the source file.
    • readFromSourceURL

      public void readFromSourceURL(WebURL aURL)
      Load TextDoc from source URL.
    • writeToSourceFile

      public void writeToSourceFile()
      Write TextDoc text to source file.