mWaba.gui.control
Class PullDownMenu

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--mWaba.gui.mControl
                    |
                    +--mWaba.gui.control.PullDownMenu

public class PullDownMenu
extends mControl
implements EventListener


Field Summary
 Menu menu
           
 CarrierFrame menuFrame
           
 
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
PullDownMenu(java.lang.String title, Menu m)
           
 
Method Summary
protected  void calculatePreferredSize()
           
protected  void doDropMenu()
           
 void doPaint(waba.fx.Graphics g, waba.fx.Rect area)
           
 Enumeration getChildren(int dir)
           
protected  void noMenu()
           
 void onEvent(waba.ui.Event ev)
           
 void onPenEvent(waba.ui.PenEvent pe)
           
 void penPressed(Point p)
           
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doBorder, doPaintChildren, doPaintData, 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, make, makeFrameTopMost, modify, modifyAll, modifyAll, notifyAction, onControlEvent, onKeyEvent, onLabelPenEvent, onPaint, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penReleased, postEvent, 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

menu

public Menu menu

menuFrame

public CarrierFrame menuFrame
Constructor Detail

PullDownMenu

public PullDownMenu(java.lang.String title,
                    Menu m)
Method Detail

getChildren

public Enumeration getChildren(int dir)
Overrides:
getChildren in class mControl

penPressed

public void penPressed(Point p)
Overrides:
penPressed in class mControl

onPenEvent

public void onPenEvent(waba.ui.PenEvent pe)
Overrides:
onPenEvent in class mControl

calculatePreferredSize

protected void calculatePreferredSize()
Overrides:
calculatePreferredSize in class mControl

doPaint

public void doPaint(waba.fx.Graphics g,
                    waba.fx.Rect area)
Overrides:
doPaint in class mControl

doDropMenu

protected void doDropMenu()

noMenu

protected void noMenu()

onEvent

public void onEvent(waba.ui.Event ev)
Specified by:
onEvent in interface EventListener
Overrides:
onEvent in class mControl