mWaba.gui.control
Class CardPanel

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

public class CardPanel
extends mControl
implements MultiPanel


Field Summary
 mVector cards
           
protected  Card curCard
           
protected  boolean gotSize
           
 int selectedItem
           
 
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
CardPanel()
           
 
Method Summary
 ControlEntry addItem(waba.ui.Control item, java.lang.String tabName, java.lang.String longName)
           
protected  void calculatePreferredSize()
           
protected  Card findCard(waba.ui.Control item, java.lang.String tabName)
           
 Enumeration getChildren(int dir)
           
 void make()
           
protected  void select(Card who)
           
 void select(waba.ui.Control item)
           
 void select(int index)
           
 void select(java.lang.String tabName)
           
protected  void selectAndPaint(Card c)
           
 void setRect(int x, int y, int width, int height)
           
 
Methods inherited from class mWaba.gui.mControl
add, addListener, addToFront, amFlat, amOnTopFrame, amSmall, callBack, checkHasModifier, checkPenTransparent, consume, contains, doBackground, doBorder, doPaint, 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, makeFrameTopMost, modify, modifyAll, modifyAll, notifyAction, onControlEvent, onEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, postEvent, recalculateSize, redisplay, reduceClip, remove, removeListener, repaint, repaintDataNow, repaintNow, repaintNow, requestCallBack, requestResizeTo, resetRect, resizeTo, restore, sendToListeners, set, setNext, setParent, 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

cards

public mVector cards

selectedItem

public int selectedItem

curCard

protected Card curCard

gotSize

protected boolean gotSize
Constructor Detail

CardPanel

public CardPanel()
Method Detail

getChildren

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

addItem

public ControlEntry addItem(waba.ui.Control item,
                            java.lang.String tabName,
                            java.lang.String longName)
Specified by:
addItem in interface MultiPanel

findCard

protected Card findCard(waba.ui.Control item,
                        java.lang.String tabName)

select

protected void select(Card who)

selectAndPaint

protected void selectAndPaint(Card c)

select

public void select(waba.ui.Control item)
Specified by:
select in interface MultiPanel

select

public void select(java.lang.String tabName)
Specified by:
select in interface MultiPanel

select

public void select(int index)
Specified by:
select in interface MultiPanel

make

public void make()
Overrides:
make in class mControl

calculatePreferredSize

protected void calculatePreferredSize()
Overrides:
calculatePreferredSize in class mControl

setRect

public void setRect(int x,
                    int y,
                    int width,
                    int height)
Overrides:
setRect in class mControl