mWaba.gui
Class Form

java.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
              |
              +--mWaba.gui.mControl
                    |
                    +--mWaba.gui.mCanvas
                          |
                          +--mWaba.gui.mPanel
                                |
                                +--mWaba.gui.Form
Direct Known Subclasses:
AppForm, mForm

public class Form
extends mPanel
implements TimerProc


Field Summary
 waba.ui.Control apply
           
static int APPLYB
           
static int BADOKB
           
 Vector buttons
           
 mPanel buttonsPanel
           
 waba.ui.Control cancel
           
static int CANCELB
           
static int CLOSEB
           
static int DEFAULTB
           
 waba.ui.Control deflt
           
 boolean exitButtonDefined
           
 boolean exitSystemOnClose
           
 int exitValue
           
protected  FormFrame formFrame
           
static int IDCANCEL
           
static int IDNO
           
static int IDOK
           
static int IDTIMEDOUT
           
static int IDYES
           
 boolean keepFrame
           
static int MBB
           
static int MBBADOK
           
static int MBNONE
           
static int MBOK
           
static int MBOKCANCEL
           
static int MBYESNO
           
static int MBYESNOCANCEL
           
 waba.ui.Control no
           
static int NOB
           
 waba.ui.Control ok
           
static int OKB
           
 waba.ui.Control reset
           
static int RESETB
           
 boolean resizable
           
 java.lang.String title
           
 waba.ui.Control titleCancel
           
 waba.ui.Control titleOK
           
 mPanel topControls
           
 waba.ui.Control yes
           
static int YESB
           
 
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
Form()
           
 
Method Summary
 waba.ui.Control addButton(int what, int mask, java.lang.String text)
           
protected  boolean canExit(int exitCode)
           
protected  void checkButtons()
           
 void close(int exitCode)
           
 void doButtons(int which)
           
protected  FormFrame doShowExec(mFrame parent, EventListener listener, boolean modal)
           
 FormFrame exec(mFrame parent, EventListener listener)
           
 boolean exit(int exitCode)
           
 waba.ui.Control getButton(java.lang.String text)
           
 FormFrame getFormFrame()
           
 boolean hasExitButton()
           
 void make()
           
protected  FormFrame makeFrame()
           
 void onControlEvent(waba.ui.ControlEvent ev)
           
 FormFrame show(mFrame parent, EventListener listener)
           
 
Methods inherited from class mWaba.gui.mPanel
add, addChildListener, addLast, addNext, calculatePreferredSize, doPaintData, fillInColumns, getChildren, removeChildListener, reShow, resizeTo, sendToChildListeners
 
Methods inherited from class mWaba.gui.mCanvas
checkScrolls, 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, onEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, postEvent, recalculateSize, redisplay, 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

exitSystemOnClose

public boolean exitSystemOnClose

resizable

public boolean resizable

keepFrame

public boolean keepFrame

IDYES

public static final int IDYES

IDOK

public static final int IDOK

IDNO

public static final int IDNO

IDCANCEL

public static final int IDCANCEL

IDTIMEDOUT

public static final int IDTIMEDOUT

YESB

public static final int YESB

NOB

public static final int NOB

CANCELB

public static final int CANCELB

OKB

public static final int OKB

BADOKB

public static final int BADOKB

APPLYB

public static final int APPLYB

RESETB

public static final int RESETB

DEFAULTB

public static final int DEFAULTB

CLOSEB

public static final int CLOSEB

MBB

public static final int MBB

MBYESNO

public static final int MBYESNO

MBYESNOCANCEL

public static final int MBYESNOCANCEL

MBOK

public static final int MBOK

MBBADOK

public static final int MBBADOK

MBOKCANCEL

public static final int MBOKCANCEL

MBNONE

public static final int MBNONE

yes

public waba.ui.Control yes

no

public waba.ui.Control no

cancel

public waba.ui.Control cancel

ok

public waba.ui.Control ok

apply

public waba.ui.Control apply

reset

public waba.ui.Control reset

deflt

public waba.ui.Control deflt

titleOK

public waba.ui.Control titleOK

titleCancel

public waba.ui.Control titleCancel

buttons

public Vector buttons

topControls

public mPanel topControls

buttonsPanel

public mPanel buttonsPanel

exitValue

public int exitValue

title

public java.lang.String title

exitButtonDefined

public boolean exitButtonDefined

formFrame

protected FormFrame formFrame
Constructor Detail

Form

public Form()
Method Detail

canExit

protected boolean canExit(int exitCode)

exit

public boolean exit(int exitCode)

hasExitButton

public boolean hasExitButton()

addButton

public waba.ui.Control addButton(int what,
                                 int mask,
                                 java.lang.String text)

doButtons

public void doButtons(int which)

getButton

public waba.ui.Control getButton(java.lang.String text)

checkButtons

protected void checkButtons()

make

public void make()
Overrides:
make in class mPanel

makeFrame

protected FormFrame makeFrame()

doShowExec

protected FormFrame doShowExec(mFrame parent,
                               EventListener listener,
                               boolean modal)

exec

public FormFrame exec(mFrame parent,
                      EventListener listener)

show

public FormFrame show(mFrame parent,
                      EventListener listener)

getFormFrame

public FormFrame getFormFrame()

close

public void close(int exitCode)

onControlEvent

public void onControlEvent(waba.ui.ControlEvent ev)
Overrides:
onControlEvent in class mPanel