Class ScrollableContainer

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--ScrollableContainer

public class ScrollableContainer
extends waba.ui.Container
implements ScrollServer


Field Summary
 int barWidth
           
 boolean blockUpdate
           
 
Fields inherited from class waba.ui.Container
children, tail
 
Fields inherited from class waba.ui.Control
height, next, parent, prev, width, x, y
 
Constructor Summary
ScrollableContainer(ScrollClient cl, int scrolls)
           
 
Method Summary
 void checkScrolls()
           
 void onEvent(waba.ui.Event e)
           
 void setRect(int x, int y, int w, int h)
           
 void setScroll(int which, int v, int a, int c)
           
 void updateScroll(int which)
           
 
Methods inherited from class waba.ui.Container
add, findChild, paintChildren, remove
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, onPaint, postEvent, removeTimer, repaint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockUpdate

public boolean blockUpdate

barWidth

public int barWidth
Constructor Detail

ScrollableContainer

public ScrollableContainer(ScrollClient cl,
                           int scrolls)
Method Detail

updateScroll

public void updateScroll(int which)
Specified by:
updateScroll in interface ScrollServer

setScroll

public void setScroll(int which,
                      int v,
                      int a,
                      int c)

checkScrolls

public void checkScrolls()
Specified by:
checkScrolls in interface ScrollServer

setRect

public void setRect(int x,
                    int y,
                    int w,
                    int h)
Overrides:
setRect in class waba.ui.Control

onEvent

public void onEvent(waba.ui.Event e)
Overrides:
onEvent in class waba.ui.Control