mWaba.gui.control
Class mList

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--mWaba.gui.mControl
                    |
                    +--mWaba.gui.control.ChoiceControl
                          |
                          +--mWaba.gui.control.Menu
                                |
                                +--mWaba.gui.control.mList

public class mList
extends Menu
implements ScrollClient


Field Summary
protected  boolean amScrolling
           
 int columns
           
 boolean multiSelect
           
 int rows
           
 
Fields inherited from class mWaba.gui.control.ChoiceControl
blockSelected, displayRows, extraButton, firstItem, items, selectedIndex, spacing, xOffset, xShift
 
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
mList(int rows, int columns, boolean multi)
           
 
Method Summary
 MenuItem addItem(java.lang.String what)
           
protected  boolean allowNotOnMeSelection()
           
protected  void calculatePreferredSize()
           
 void doScroll(int which, int action, int value)
           
 void dragged(DragContext dc)
           
 int getActual(int which)
           
 int getCurrent(int which)
           
 ScrollablePanel getScrollablePanel()
           
 int getVisible(int which, int forSize)
           
 boolean isSelected(int index)
           
 void notifySelection(int index, boolean selected)
           
protected  void paintBox(waba.fx.Graphics g)
           
 void penReleased(Point p)
           
protected  void pressedNewSelected(int oldSel)
           
 void selectAll(boolean select)
           
 void selectItem(int index, boolean selected)
           
 void setServer(ScrollServer server)
           
 void updateItems()
           
 
Methods inherited from class mWaba.gui.control.Menu
addItems, doDropMenu, getCarrierFrame, noMenu, onEvent, penPressed, postEvent, selectNewItem, whichItem
 
Methods inherited from class mWaba.gui.control.ChoiceControl
centerSelected, changeModifiers, doPaint, doPaintData, getDisplayRows, getItemAt, getItemHeight, getMenuHeight, getMenuWidth, getScreenRows, getSelectedItem, paintItem, paintItem, selectOrUnselect
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doBorder, doPaintChildren, editable, enabled, fixSizeAt, getBackground, getChildren, getChildren, getControlBuffer, getControlBuffer, getDim, getFont, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getNext, getPosInFrame, getPreferredSize, getSurface, gotFocus, handedPenEvent, handOffPenEvent, handOffPenEvent, hasModifier, inheritModifiers, isOnMe, lostFocus, make, makeFrameTopMost, modify, modifyAll, modifyAll, notifyAction, onControlEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, recalculateSize, redisplay, reduceClip, remove, removeListener, repaint, repaintDataNow, repaintNow, repaintNow, requestCallBack, requestResizeTo, resetRect, resizeTo, 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

multiSelect

public boolean multiSelect

amScrolling

protected boolean amScrolling

rows

public int rows

columns

public int columns
Constructor Detail

mList

public mList(int rows,
             int columns,
             boolean multi)
Method Detail

isSelected

public boolean isSelected(int index)
Overrides:
isSelected in class ChoiceControl

selectItem

public void selectItem(int index,
                       boolean selected)

pressedNewSelected

protected void pressedNewSelected(int oldSel)
Overrides:
pressedNewSelected in class Menu

paintBox

protected void paintBox(waba.fx.Graphics g)
Overrides:
paintBox in class ChoiceControl

calculatePreferredSize

protected void calculatePreferredSize()
Overrides:
calculatePreferredSize in class ChoiceControl

allowNotOnMeSelection

protected boolean allowNotOnMeSelection()
Overrides:
allowNotOnMeSelection in class Menu

dragged

public void dragged(DragContext dc)
Overrides:
dragged in class Menu

penReleased

public void penReleased(Point p)
Overrides:
penReleased in class Menu

notifySelection

public void notifySelection(int index,
                            boolean selected)

getScrollablePanel

public ScrollablePanel getScrollablePanel()

selectAll

public void selectAll(boolean select)

updateItems

public void updateItems()

addItem

public MenuItem addItem(java.lang.String what)

doScroll

public void doScroll(int which,
                     int action,
                     int value)
Specified by:
doScroll in interface ScrollClient

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