com.sun.kjava
Class SelectScrollTextBox

java.lang.Object
  |
  +--com.sun.kjava.TextBox
        |
        +--com.sun.kjava.ScrollTextBox
              |
              +--com.sun.kjava.SelectScrollTextBox

public class SelectScrollTextBox
extends ScrollTextBox


Field Summary
static int LEADING
           
 
Fields inherited from class com.sun.kjava.TextBox
g, height, heightM, lineEnds, lineStarts, text, width, widthM, xPos, yPos
 
Constructor Summary
SelectScrollTextBox(java.lang.String t, int x, int y, int w, int h)
           
 
Method Summary
 java.lang.String getSelection(int x, int y)
           
 void setText(java.lang.String t)
          Set the text.
 
Methods inherited from class com.sun.kjava.ScrollTextBox
contains, handleKeyDown, handlePenDown, handlePenMove, init, paint, setBounds, setScrollValue
 
Methods inherited from class com.sun.kjava.TextBox
getNumLines
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEADING

public static final int LEADING
Constructor Detail

SelectScrollTextBox

public SelectScrollTextBox(java.lang.String t,
                           int x,
                           int y,
                           int w,
                           int h)
Method Detail

getSelection

public java.lang.String getSelection(int x,
                                     int y)

setText

public void setText(java.lang.String t)
Description copied from class: ScrollTextBox
Set the text. You need to call paint() on the ScrollTextBox to get the new text/scrollbar to display.
Overrides:
setText in class ScrollTextBox
Tags copied from class: ScrollTextBox
Parameters:
t - a String representing the new text.