|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.Container
Container is a control that contains child controls.
| Field Summary | |
boolean |
closedFocus
If this is true then the keyboard focus cannot be moved outside of this Container using the TAB or cursor keys. |
boolean |
cycleFocus
If this is true then the keyboard focus will cycle from the first to the last control in this container when the focus has moved to the very first or very last control. |
boolean |
dontAutoScroll
If this is set to true, then when child Controls gain the focus the GUI will not attempt to scroll so that the focused Control is visible. |
boolean |
dontFocusOnChildren
If this is true then the keyboard focus cannot be moved to the Container's child controls using the TAB or cursor keys. |
| 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.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.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.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 | |
Container()
|
|
| Method Summary | |
void |
_paintChildren(Graphics g,
int x,
int y,
int width,
int height)
Called by the system to draw the children of the container. |
void |
add(Control control)
Adds a child control to this container. |
void |
addDirectly(Control control)
|
boolean |
containerHasFocus()
Returns true if the Container itself has the focus instead of one of its children. |
void |
dismantle()
|
void |
dismantle(Control stopAt)
|
protected boolean |
doHotKey(Control from,
KeyEvent ev)
This method checks to see if a KeyEvent should be considered the Control's hot-key. |
Control |
findChild(int x,
int y)
Returns the child located at the given x and y coordinates. |
void |
focusFirst()
|
void |
focusFirst(int how)
|
void |
focusOnContainer(int how)
Put the focus on the container itself rather than any of its children. |
void |
focusOnData(int how)
Put the focus on the data within the container. |
Iterator |
getChildren()
This iterator cycles through the components which are physically added to this Control |
Iterator |
getChildrenBackwards()
|
protected Control |
getFirstFocus()
|
Control |
getNextKeyFocus(Control sourceChild,
boolean forwards)
Determine which sub-control should receive the keyboard focus. |
void |
gotFocus(int how)
If a container gets the focus via an explicit focusOnContainer() then it will take the focus, otherwise it will call pass focus to the first control within it that wants the focus. |
void |
lostFocus(int how)
|
void |
remove(Control control)
Removes a child control from the container. |
void |
removeAll()
|
void |
repaintDataNow()
Repaint the "data" part of the Control now. |
boolean |
scrollToVisible(int x,
int y,
int width,
int height)
|
void |
takeFocus(int how)
|
protected boolean |
takePromptControl(Control prompt)
On a normal Control this will set the promptControl variable to "prompt", but on a Container, the first child non-container will have "prompt" assigned to it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public boolean dontAutoScroll
public boolean dontFocusOnChildren
public boolean closedFocus
public boolean cycleFocus
| Constructor Detail |
public Container()
| Method Detail |
public void addDirectly(Control control)
public void add(Control control)
public void remove(Control control)
public Control findChild(int x,
int y)
public void _paintChildren(Graphics g,
int x,
int y,
int width,
int height)
public Iterator getChildren()
Control
getChildren in class Controlpublic Iterator getChildrenBackwards()
getChildrenBackwards in class Controlpublic void repaintDataNow()
Control
repaintDataNow in class Controlpublic void removeAll()
public void dismantle(Control stopAt)
public final void dismantle()
protected boolean doHotKey(Control from,
KeyEvent ev)
Control
doHotKey in class Controlfrom - The Control (parent or sibling) that is passing the event to this Control.ev - The KeyEvent representing the key press.
public Control getNextKeyFocus(Control sourceChild,
boolean forwards)
getNextKeyFocus in class ControlsourceChild - the child control from which the call came from, or null if the call
came from the parent of this control, or this control itself.forwards - true if the user wants to go to the next control, false if the user wants
to go to the previous one.
protected Control getFirstFocus()
protected boolean takePromptControl(Control prompt)
takePromptControl in class Controlprompt - the Control acting as the prompt (usually an mLabel).public boolean containerHasFocus()
public void focusOnContainer(int how)
how - one of the Control.ByXXX values (e.g. ByRequest)public void focusOnData(int how)
how - one of the Control.ByXXX values (e.g. ByRequest)public void gotFocus(int how)
gotFocus in class Controlpublic void lostFocus(int how)
lostFocus in class Controlpublic void focusFirst()
public void focusFirst(int how)
public void takeFocus(int how)
takeFocus in class Control
public boolean scrollToVisible(int x,
int y,
int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||