Class ScrollableTextArea

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--AdvControl
              |
              +--TextArea
                    |
                    +--ScrollableTextArea

public class ScrollableTextArea
extends TextArea
implements ScrollClient

ScrollableTextArea by Michael L Brereton, November 1999. This code may be freely used, modified and redistributed, as long as credit is given to the original author in any such modification or distribution.


Field Summary
protected  boolean amScrolling
           
protected  ScrollServer ss
           
 
Fields inherited from class TextArea
blink, blockBuffer, cursorOn, curState, hasCursor, homeCursorOnLostFocus, itemBuffer, justGotFocus, lastDrag, lines, minXScroll, minYScroll, pressPoint, spacing
 
Fields inherited from class AdvControl
AlwaysEnabled, CapturesPen, DidHoldDown, Disabled, dragResolution, font, GotPenDown, Invisible, modifiers, name, NoFocus, NotAnEditor, NotEditable, PreferredSizeOnly, startDragResolution, text, WantDrag, WantHoldDown
 
Fields inherited from class waba.ui.Control
height, next, parent, prev, width, x, y
 
Constructor Summary
ScrollableTextArea()
           
 
Method Summary
 void checkScrolls()
           
 int getActual(int which)
           
 int getCurrent(int which)
           
 ScrollableContainer getScrollableContainer()
           
 int getVisible(int which, int forSize)
           
 void setServer(ScrollServer server)
           
protected  void updateScrolls()
           
 
Methods inherited from class TextArea
clearCursor, clearSelection, deleteSelection, doPaint, doPaintData, doPaintData, doScroll, dragged, fix, fixText, getCharRect, getItemHeight, getLine, getLine, getNumLines, getPenChar, getScreenRows, getText, getTextWidth, gotFocus, insertLine, lostFocus, newCursorPos, newText, onControlEvent, onKeyEvent, paintCursor, paintLastChar, paintLastChar, paintLine, penDoubleClicked, penPressed, selectAll, setText, split, splitLines
 
Methods inherited from class AdvControl
getFontMetrics, hasModifier, isOnMe, modify, onEvent, onPaint, onPenEvent, onTimerEvent, penClicked, penHeld, penReleased, repaintDataNow, repaintNow, repaintNow, startDragging, stopDragging
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, postEvent, removeTimer, repaint, setRect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ss

protected ScrollServer ss

amScrolling

protected boolean amScrolling
Constructor Detail

ScrollableTextArea

public ScrollableTextArea()
Method Detail

setServer

public void setServer(ScrollServer server)
Specified by:
setServer in interface ScrollClient

getActual

public int getActual(int which)
Specified by:
getActual in interface ScrollClient

getVisible

public int getVisible(int which,
                      int forSize)
Specified by:
getVisible in interface ScrollClient

getCurrent

public int getCurrent(int which)
Specified by:
getCurrent in interface ScrollClient

checkScrolls

public void checkScrolls()
Overrides:
checkScrolls in class TextArea

updateScrolls

protected void updateScrolls()
Overrides:
updateScrolls in class TextArea

getScrollableContainer

public ScrollableContainer getScrollableContainer()