mWaba.gui.control
Class ScrollablePanel

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--mWaba.gui.mControl
                    |
                    +--mWaba.gui.mCanvas
                          |
                          +--mWaba.gui.mPanel
                                |
                                +--mWaba.gui.Holder
                                      |
                                      +--mWaba.gui.control.ScrollablePanel

public class ScrollablePanel
extends Holder
implements ScrollServer


Field Summary
protected static boolean blockUpdate
           
 ScrollClient client
           
 mScrollBar hbar
           
 boolean shrinkComponent
           
 boolean stretchComponent
           
static int vanish
           
 mScrollBar vbar
           
 
Fields inherited from class mWaba.gui.mPanel
Bottom, Center, childListeners, defaultAddToMeCellConstraints, defaultAddToMeControlConstraints, equalWidths, Fill, grid, HCenter, hGap, HStretch, Left, made, myControls, Right, Top, VCenter, vGap, VStretch
 
Fields inherited from class mWaba.gui.mCanvas
hasBorder, origin, raised, recessed, scrollServer, virtualSize
 
Fields inherited from class mWaba.gui.mControl
_debug, AlwaysEnabled, AlwaysRecalculateSize, backGround, borderWidth, CapturesPen, columns, debugGui, defaultAddMeCellConstraints, defaultAddMeControlConstraints, DidHoldDown, Disabled, doubleBuffer, doubleClickTime, dragging, dragResolution, DrawFlat, emptySize, firstPress, fixedPreferredSize, fixedSize, ForceResize, foreGround, globalDrawFlat, globalEditable, globalEnabled, globalSmallControls, GotPenDown, GotPreferredSize, holdDownPause, holdTick, ImageChanged, Invisible, KeepImage, kids, listeners, modifiers, myFont, myFrame, NoFocus, NotAnEditor, NotEditable, PenTransparent, preferredSize, PreferredSizeOnly, pressPoint, prompt, SendUpKeyEvents, SendUpPenEvents, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, text, Transparent, WantDrag, WantHoldDown
 
Fields inherited from class waba.ui.Container
children, numChildren, tail
 
Fields inherited from class waba.ui.Control
height, next, parent, width, x, y
 
Constructor Summary
ScrollablePanel(ScrollClient client)
           
 
Method Summary
 void changeContents(mControl what)
           
 void checkScrolls()
           
 void onEvent(waba.ui.Event ev)
           
 void onScrollEvent(mScrollEvent se)
           
 void redisplay()
           
 void reset()
          This will reset the origin of a client (if it is a ScrollableHolder) to (0,0) if it is not already so.
 void resizeTo(int w, int h)
           
 void setScroll(int which, int v, int a, int c)
           
 void updateScroll(int which)
           
 
Methods inherited from class mWaba.gui.mPanel
add, addChildListener, addLast, addNext, calculatePreferredSize, doPaintData, fillInColumns, getChildren, make, onControlEvent, removeChildListener, reShow, sendToChildListeners
 
Methods inherited from class mWaba.gui.mCanvas
doBorder, doPaint, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getMySize, getPercent, getVisible, getVisibleArea, onScroll, onSetOrigin, reduceClip, scroll, scroll, setOrigin, setServer, updateScrollServer
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doPaintChildren, dragged, editable, enabled, fixSizeAt, getBackground, getChildren, getControlBuffer, getControlBuffer, getDim, getFont, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getNext, getPosInFrame, getPreferredSize, getSurface, gotFocus, handedPenEvent, handOffPenEvent, handOffPenEvent, hasModifier, inheritModifiers, isOnMe, lostFocus, makeFrameTopMost, modify, modifyAll, modifyAll, notifyAction, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, postEvent, recalculateSize, remove, removeListener, repaint, repaintDataNow, repaintNow, repaintNow, requestCallBack, requestResizeTo, resetRect, restore, sendToListeners, set, setNext, setParent, setRect, show, shown, startDragging, stopDragging, ticked, visible
 
Methods inherited from class waba.ui.Container
findChild
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getMainWindow, getParent, getRect, removeTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

public ScrollClient client

hbar

public mScrollBar hbar

vbar

public mScrollBar vbar

stretchComponent

public boolean stretchComponent

shrinkComponent

public boolean shrinkComponent

vanish

public static int vanish

blockUpdate

protected static boolean blockUpdate
Constructor Detail

ScrollablePanel

public ScrollablePanel(ScrollClient client)
Method Detail

changeContents

public void changeContents(mControl what)

checkScrolls

public void checkScrolls()
Specified by:
checkScrolls in interface ScrollServer
Overrides:
checkScrolls in class mCanvas

updateScroll

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

setScroll

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

onScrollEvent

public void onScrollEvent(mScrollEvent se)

onEvent

public void onEvent(waba.ui.Event ev)
Overrides:
onEvent in class mControl

resizeTo

public void resizeTo(int w,
                     int h)
Overrides:
resizeTo in class mPanel

redisplay

public void redisplay()
Overrides:
redisplay in class mControl

reset

public void reset()
This will reset the origin of a client (if it is a ScrollableHolder) to (0,0) if it is not already so. If it is already so, it has no effect.