Package snap.viewx

Class TextPane

All Implemented Interfaces:
PropChange.DoChange

public class TextPane extends ViewOwner
A panel for editing text files.
  • Constructor Details

    • TextPane

      public TextPane()
      Constructor.
  • Method Details

    • 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.
    • textBlockDidPropChange

      protected void textBlockDidPropChange(PropChange aPC)
      Called when TextBlock does prop change.
    • main

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