Package snap.view

Class TextAreaKeys

java.lang.Object
snap.view.TextAreaKeys

public class TextAreaKeys extends Object
This class is a helper for JavaTextArea to handle key processing.
  • Field Details

    • _textArea

      protected TextArea _textArea
  • Constructor Details

    • TextAreaKeys

      public TextAreaKeys(TextArea aJTA)
      Constructor.
  • Method Details

    • isSelEmpty

      public boolean isSelEmpty()
      TextArea method.
    • getSel

      public TextSel getSel()
      TextArea method.
    • setSel

      public void setSel(int charIndex)
      TextArea method.
    • getSelStart

      public int getSelStart()
      TextArea method.
    • length

      public int length()
      TextArea method.
    • charAt

      public char charAt(int charIndex)
      TextArea method.
    • keyPressed

      protected void keyPressed(ViewEvent anEvent)
      Called when a key is pressed.
    • keyTyped

      protected void keyTyped(ViewEvent anEvent)
      Called when a key is typed.
    • keyReleased

      protected void keyReleased(ViewEvent anEvent)
      Called when a key is released.