|
||||||||||
| 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.ButtonControl
This is an intermediate class which is the base for mButtons and mCheckBoxes.
| Field Summary | |
boolean |
actionOnPress
|
int |
alignment
|
int |
anchor
|
int |
arrowDirection
This allows an optional arrow to be displayed along with the text and icon. |
boolean |
flatInside
|
int |
imageAnchor
|
protected boolean |
inPress
|
protected boolean |
pressState
|
boolean |
shouldRepeat
|
boolean |
state
|
| 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 | |
ButtonControl()
|
|
| Method Summary | |
void |
activate()
This does NOT enable a disabled control - but tells it to put itself in an "active" state. |
void |
deactivate()
This does NOT disable a control - but tells it to put itself in a "non-active" state. |
void |
doAction(int how)
|
void |
doPenHeld(Point p)
|
void |
doPenPress(Point p)
|
void |
dragged(DragContext dc)
This is called during the drag operation. |
void |
fullAction(int how)
|
void |
fullAction(int how,
boolean repaint)
|
void |
gotFocus(int how)
|
void |
lostFocus(int how)
|
void |
penHeld(Point p)
Called when the Pen or Mouse button is held down on the control. |
void |
penPressed(Point p)
Called when the Pen or Mouse button is pressed on the control. |
void |
penReleased(Point p)
Called when the Pen or Mouse button is released on the control. |
void |
penRightReleased(Point p)
Called when the right Mouse button is released on the control. |
void |
startDragging(DragContext dc)
This is called to indicate the start of a pen/mouse drag operation. |
boolean |
startDropMenu(Point p)
|
void |
stopDragging(DragContext dc)
Called when the pen was released during a drag operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
protected boolean pressState
protected boolean inPress
public boolean state
public boolean shouldRepeat
public boolean actionOnPress
public boolean flatInside
public int alignment
public int anchor
public int imageAnchor
public int arrowDirection
| Constructor Detail |
public ButtonControl()
| Method Detail |
public void gotFocus(int how)
gotFocus in class Controlpublic void lostFocus(int how)
lostFocus in class Controlpublic void penPressed(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penPressed in class Controlp - The point on the Control where the pen was pressed.public void penHeld(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
This method is usually used to display a context sensitive menu. In fact the default code for it is:
if (!menuIsActive()) doMenu(p);
penHeld in class Controlp - The point on the Control where the pen was held.public void penReleased(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penReleased in class Controlp - The point on the Control where the pen was released.public void startDragging(DragContext dc)
Control
startDragging in class Controldc - A DragContext indicating information about the dragging.public void stopDragging(DragContext dc)
Control
stopDragging in class Controldc - The DragContext for the dragging operation.public void fullAction(int how)
public void fullAction(int how,
boolean repaint)
public void doAction(int how)
doAction in class Controlpublic void dragged(DragContext dc)
Control
dragged in class Controldc - The DragContext for the dragging operation.public void penRightReleased(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
This method is usually used to display a context sensitive menu. In fact the default code for it is:
if (!menuIsActive())
if (doMenu(p)) return;
penReleased(p);
penRightReleased in class Controlp - The point on the Control where the pen was released.public void doPenHeld(Point p)
public void doPenPress(Point p)
public boolean startDropMenu(Point p)
public void deactivate()
ControlIf you want to disable a control do modify(Control.Disabled,0)
deactivate in class Controlpublic void activate()
ControlIf you want to re-enable a disabled control do modify(0,Control.Disabled)
activate in class Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||