mWaba.gui.control
Class Menu

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

public class Menu
extends ChoiceControl


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
Menu()
           
 
Method Summary
 MenuItem[] addItems(java.lang.String[] what)
           
protected  boolean allowNotOnMeSelection()
           
protected  void doDropMenu(Menu who)
           
 void dragged(DragContext dc)
           
 CarrierFrame getCarrierFrame(mControl owner, int maxWidth, int maxHeight, boolean shrinkWidth, boolean shrinkHeight, mFrame parent)
           
protected  void noMenu()
           
 void onEvent(waba.ui.Event ev)
           
 void penPressed(Point p)
           
 void penReleased(Point p)
           
 void postEvent(waba.ui.Event ev)
           
protected  void pressedNewSelected(int oldSel)
           
protected  void selectNewItem(Point p)
           
protected  int whichItem(int x, int y)
           
 
Methods inherited from class mWaba.gui.control.ChoiceControl
calculatePreferredSize, centerSelected, changeModifiers, doPaint, doPaintData, getDisplayRows, getItemAt, getItemHeight, getMenuHeight, getMenuWidth, getScreenRows, getSelectedItem, isSelected, paintBox, 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
 

Constructor Detail

Menu

public Menu()
Method Detail

whichItem

protected int whichItem(int x,
                        int y)

allowNotOnMeSelection

protected boolean allowNotOnMeSelection()

selectNewItem

protected void selectNewItem(Point p)

pressedNewSelected

protected void pressedNewSelected(int oldSel)

penPressed

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

dragged

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

penReleased

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

getCarrierFrame

public CarrierFrame getCarrierFrame(mControl owner,
                                    int maxWidth,
                                    int maxHeight,
                                    boolean shrinkWidth,
                                    boolean shrinkHeight,
                                    mFrame parent)

addItems

public MenuItem[] addItems(java.lang.String[] what)

doDropMenu

protected void doDropMenu(Menu who)

postEvent

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

noMenu

protected void noMenu()

onEvent

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