ewe.ui
Class FormBase

java.lang.Object
  extended byewe.ui.ControlBase
      extended byewe.ui.Control
          extended byewe.ui.Container
              extended byewe.ui.Canvas
                  extended byewe.ui.Panel
                      extended byewe.ui.CellPanel
                          extended byewe.ui.FormBase
All Implemented Interfaces:
CellConstants, ControlConstants, EventListener, ImageRefresher, IScroll, LayoutManager, ScrollClient, TimerProc, UIConstants
Direct Known Subclasses:
Form

public abstract class FormBase
extends CellPanel

This class is used to hold the constant Form static data to reduce the number of variables in the Form class.


Field Summary
static int BACKB
          An option for doButtons()
static int CANCELB
          An option for doButtons()
static IImage close
          The close (X) icon - colored Black.
static IImage cross
          The cross (X) icon - colored Red.
static int defaultShowOptions
          This is set to Gui.CENTER_FRAME by default.
static int DEFCANCELB
          This is an OK button that has CANCEL assigned as the hotkey.
static int DEFOKB
          This is an OK button that has ENTER assigned as the hotkey.
static String EXIT_IDBACK
          A standard Form action string.
static String EXIT_IDCANCEL
          A standard Form action string.
static String EXIT_IDNO
          A standard Form action string.
static String EXIT_IDOK
          A standard Form action string.
static String EXIT_IDYES
          A standard Form action string.
static int IDBACK
          A predefined return value from the Form.
static int IDCANCEL
          A predefined return value from the Form.
static int IDNO
          A predefined return value from the Form.
static int IDOK
          A predefined return value from the Form - it is the same as IDYES.
static int IDYES
          A predefined return value from the Form - it is the same as IDOK.
static int MBB
          A MessageBox type.
static int MBNONE
          A MessageBox type.
static int MBOK
          A MessageBox type.
static int MBOKCANCEL
          A MessageBox type.
static int MBYESNO
          A MessageBox type.
static int MBYESNOCANCEL
          A MessageBox type.
static int NOB
          An option for doButtons()
static int OKB
          An option for doButtons()
static IImage stop
          The stop icon.
static IImage tick
          The tick icon.
static IImage tools
          The tool icon - supposed to look like a spanner.
static int YESB
          An option for doButtons()
 
Fields inherited from class ewe.ui.CellPanel
autoSpan, equalHeights, equalWidths, layout, mySplitter, nextSplitter, quickRecalculate
 
Fields inherited from class ewe.ui.Panel
all, backgroundImage, calculated, childListeners, defaultAddToMeCellConstraints, defaultTags, grid, lastAdded, layoutManager, made, noInsets, stretchFirstColumn, stretchFirstRow, stretchLastColumn, stretchLastRow, titleGap
 
Fields inherited from class ewe.ui.Canvas
isFullScrollClient, origin, scrollPercent, virtualSize
 
Fields inherited from class ewe.ui.Container
closedFocus, cycleFocus, dontAutoScroll, dontFocusOnChildren
 
Fields inherited from class ewe.ui.Control
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y
 
Fields inherited from class ewe.ui.ControlBase
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput
 
Fields inherited from interface ewe.ui.CellConstants
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
 
Fields inherited from interface ewe.ui.IScroll
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical
 
Fields inherited from interface ewe.ui.UIConstants
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN
 
Fields inherited from interface ewe.ui.ControlConstants
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
 
Fields inherited from interface ewe.fx.ImageRefresher
KEEP_VISIBLE
 
Constructor Summary
FormBase()
           
 
Methods inherited from class ewe.ui.CellPanel
calculateSizes, make, makeLayoutGrid, onEvent, relayout, relayoutMe, removeAll, reShow, resize, resizeTo
 
Methods inherited from class ewe.ui.Panel
add, addChildListener, addDirectly, addLast, addLast, addNext, addNext, addNext, doBackground, doBorder, endRow, getControlTag, getPreferredSize, getSubControls, isEmpty, layout, remove, removeChildListener, sendToChildListeners, setText
 
Methods inherited from class ewe.ui.Canvas
canGo, canScreenScroll, checkScrolls, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getDisplayedSize, getMySize, getPercent, getScrollablePanel, getScrollClient, getVisible, getVisibleArea, needScrollBar, onScroll, onSetOrigin, reduceClip, scroll, scroll, scrollToVisible, setOrigin, updateScrollServer
 
Methods inherited from class ewe.ui.Container
_paintChildren, add, containerHasFocus, dismantle, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getFirstFocus, getNextKeyFocus, gotFocus, lostFocus, repaintDataNow, takeFocus, takePromptControl
 
Methods inherited from class ewe.ui.Control
acceptsData, activate, addListener, addTimer, amOnTopFrame, calculateTextSize, cancelCut, cancelHoldDown, canEdit, chainDataChange, change, checkClipboardOperations, checkExitKey, checkMenu, checkMenuKey, checkModifiers, checkPenTransparent, clearTag, clipboardToString, clipboardTransfer, closeMenu, contains, contains, createGraphics, dataAccepted, dataBeingRemoved, dataDraggedOff, dataDraggedOver, dataDraggedOver, dataDroppedOn, dataTransferCancelled, deactivate, defaultTo, doAction, doActionKey, doMenu, dontAcceptDrop, doPaint, doPaintChildren, doPaintChildren, doPaintChildren, doPaintData, doPaintData, doShowMenu, dragged, exitEntry, fillBackground, formClosing, fromClipboard, fromField, fromField, getAllDescendants, getAllSubControls, getBackground, getClipboardMenu, getClipObject, getControlBuffer, getControlBuffer, getDataRect, getDataToCopy, getDataToDragAndDrop, getDim, getDisplayText, getDragAndDropContext, getFont, getFontMetrics, getFontMetrics, getForeground, getFrame, getFrameOrContainer, getGraphics, getImage, getLastSelected, getLocation, getMaximumSize, getMenu, getMinimumSize, getModifiers, getNext, getParent, getPasswordCharacter, getPosInFrame, getPosInParent, getPreferredSize, getPrompt, getPromptText, getRect, getRect, getServer, getSize, getSizes, getTag, getText, getToolTip, getWindow, hasModifier, hasPopupFormAttached, hasTag, inheritModifiers, isChildOf, isModal, isOnMe, isSomeonesHotKey, makeFrameTopMost, makeHot, menuIsActive, modify, modifyAll, modifyAll, notifyAction, notifyDataChange, notifyDataChange, notNative_doPaintChildren, oldButWorksDoPaintChildren, oldPaintChildren, oldPostEvent, onControlEvent, onKeyEvent, onLabelPenEvent, onPaint, onPenEvent, paintBackground, paintChildren, penClicked, penDoubleClicked, penHeld, penPressed, penReleased, penRightReleased, popupBeep, popupMenuClosed, popupMenuEvent, popupMenuEvent, postEvent, recalculatePreferredSize, redisplay, refresh, removeListener, removeTimer, repaint, repaintNow, repaintNow, repaintNow, requestPaint, requestResizeTo, resetRect, restore, scrollAndRepaint, sendToListeners, set, setBorder, setCell, setClipObject, setControl, setCursor, setFixedSize, setFont, setHotKey, setHotKey, setLocation, setMaximumSize, setMenu, setMinimumSize, setPreferredSize, setPromptControl, setRect, setRect, setServer, setTag, setTags, setTextSize, setToolTip, show, shown, standardOnKeyEvent, startDragAndDrop, startDragAndDrop, startDragging, stopDragging, takeData, takeFromClipboard, testDim, ticked, toClipboard, toField, toField, toString, toTextData, transferPenPress, transferPenPress, tryDragAndDrop, tryNext, tryStartMenu, updateData, willAcceptDrop, willShowFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 
Methods inherited from interface ewe.ui.ScrollClient
getServer, setServer
 

Field Detail

defaultShowOptions

public static int defaultShowOptions
This is set to Gui.CENTER_FRAME by default.


tick

public static IImage tick
The tick icon.


cross

public static IImage cross
The cross (X) icon - colored Red.


close

public static IImage close
The close (X) icon - colored Black.


tools

public static IImage tools
The tool icon - supposed to look like a spanner.


stop

public static IImage stop
The stop icon.


IDYES

public static final int IDYES
A predefined return value from the Form - it is the same as IDOK.

See Also:
Constant Field Values

IDOK

public static final int IDOK
A predefined return value from the Form - it is the same as IDYES.

See Also:
Constant Field Values

IDNO

public static final int IDNO
A predefined return value from the Form.

See Also:
Constant Field Values

IDBACK

public static final int IDBACK
A predefined return value from the Form.

See Also:
Constant Field Values

IDCANCEL

public static final int IDCANCEL
A predefined return value from the Form.

See Also:
Constant Field Values

YESB

public static final int YESB
An option for doButtons()

See Also:
Constant Field Values

NOB

public static final int NOB
An option for doButtons()

See Also:
Constant Field Values

CANCELB

public static final int CANCELB
An option for doButtons()

See Also:
Constant Field Values

OKB

public static final int OKB
An option for doButtons()

See Also:
Constant Field Values

BACKB

public static final int BACKB
An option for doButtons()

See Also:
Constant Field Values

DEFOKB

public static final int DEFOKB
This is an OK button that has ENTER assigned as the hotkey.

See Also:
Constant Field Values

DEFCANCELB

public static final int DEFCANCELB
This is an OK button that has CANCEL assigned as the hotkey.

See Also:
Constant Field Values

MBB

public static final int MBB
A MessageBox type.

See Also:
Constant Field Values

MBYESNO

public static final int MBYESNO
A MessageBox type.

See Also:
Constant Field Values

MBYESNOCANCEL

public static final int MBYESNOCANCEL
A MessageBox type.

See Also:
Constant Field Values

MBOK

public static final int MBOK
A MessageBox type.

See Also:
Constant Field Values

MBOKCANCEL

public static final int MBOKCANCEL
A MessageBox type.

See Also:
Constant Field Values

MBNONE

public static final int MBNONE
A MessageBox type.

See Also:
Constant Field Values

EXIT_IDCANCEL

public static final String EXIT_IDCANCEL
A standard Form action string.

See Also:
Constant Field Values

EXIT_IDOK

public static final String EXIT_IDOK
A standard Form action string.

See Also:
Constant Field Values

EXIT_IDYES

public static final String EXIT_IDYES
A standard Form action string.

See Also:
Constant Field Values

EXIT_IDNO

public static final String EXIT_IDNO
A standard Form action string.

See Also:
Constant Field Values

EXIT_IDBACK

public static final String EXIT_IDBACK
A standard Form action string.

See Also:
Constant Field Values
Constructor Detail

FormBase

public FormBase()