Package snap.view
Class TextAreaKeys
java.lang.Object
snap.view.TextAreaKeys
This class is a helper for JavaTextArea to handle key processing.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int charIndex) TextArea method.getSel()
TextArea method.int
TextArea method.boolean
TextArea method.protected void
keyPressed
(ViewEvent anEvent) Called when a key is pressed.protected void
keyReleased
(ViewEvent anEvent) Called when a key is released.protected void
Called when a key is typed.int
length()
TextArea method.void
setSel
(int charIndex) TextArea method.
-
Field Details
-
_textArea
-
-
Constructor Details
-
TextAreaKeys
Constructor.
-
-
Method Details
-
isSelEmpty
public boolean isSelEmpty()TextArea method. -
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
Called when a key is pressed. -
keyTyped
Called when a key is typed. -
keyReleased
Called when a key is released.
-