Package snap.viewx

Class TextPane<T extends TextDoc>

All Implemented Interfaces:
PropChange.DoChange

public class TextPane<T extends TextDoc> extends ViewOwner
A panel for editing text files.
  • Constructor Details

    • TextPane

      public TextPane()
      Constructor.
  • Method Details

    • getTextDoc

      public T getTextDoc()
      Returns the TextDoc.
    • setTextDoc

      public void setTextDoc(T aTextDoc)
      Sets the TextDoc.
    • getTextArea

      public TextArea getTextArea()
      Returns the TextArea.
    • createTextArea

      protected TextArea createTextArea()
      Creates the TextArea.
    • getToolBarPane

      public ChildView getToolBarPane()
      Returns the toolbar pane.
    • createUI

      protected View createUI()
      Create UI.
      Overrides:
      createUI in class ViewOwner
    • initUI

      protected void initUI()
      Initialize UI panel.
      Overrides:
      initUI in class ViewOwner
    • resetUI

      protected void resetUI()
      Reset UI.
      Overrides:
      resetUI in class ViewOwner
    • respondUI

      protected void respondUI(ViewEvent anEvent)
      Respond to UI controls.
      Overrides:
      respondUI in class ViewOwner
    • saveChanges

      public void saveChanges()
      Save file.
    • saveChangesImpl

      protected void saveChangesImpl()
      Save file.
    • getSelectionInfo

      public String getSelectionInfo()
      Get compile info.
    • find

      public void find(String aString, boolean ignoreCase, boolean isNext)
      Finds the given string.
    • showLineNumberPanel

      public void showLineNumberPanel()
      Shows the LineNumberPanel.
    • textAreaDidPropChange

      protected void textAreaDidPropChange(PropChange aPC)
      Called when TextArea does prop change.
    • textDocDidPropChange

      protected void textDocDidPropChange(PropChange aPC)
      Called when TextDoc does prop change.
    • main

      public static void main(String[] args)
      Silly test.