|
||||||||||
| 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.EditControl
This is a base class for mInput and mTextPad.
| Field Summary | |
protected int |
blinkId
|
static int |
CASE_LOWER
|
static int |
CASE_NORMAL
|
static int |
CASE_NUMBERS
|
static int |
CASE_SENTENCE
|
static int |
CASE_UPPER
|
protected Color[] |
colors
|
protected char |
conditionalChar
|
protected int |
conditionalCharIndex
|
protected boolean |
doingLocalInput
|
protected boolean |
doingNativeInput
|
static int |
FLAG_INPUT_ON_FOCUS
Use this in combination with FLAG_PASSIVE. |
static int |
FLAG_KEEP_FOCUS_AFTER_INPUT
Use this in combination with FLAG_PASSIVE. |
static int |
FLAG_PASSIVE
This tells the system that the EditControl should be "passive", i.e. |
static int |
FLAG_USE_NATIVE
This tells the system to use a native input method. |
protected boolean |
inFocus
If native input is used, this will normally start automatically when the input gets focus. |
int |
inputFlags
This value is -1 as default - which tells the VM to pick the best input flags for the current system. |
InputMethod |
inputMethod
You can set this to be a valid InputMethod object. |
boolean |
justGotFocus
|
protected String |
oldText
|
Color |
pageColor
|
protected boolean |
startNativeOnPaint
|
int |
textCase
This is CASE_NORMAL by default. |
InputValidator |
validator
|
| 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 | |
EditControl()
|
|
| Method Summary | |
boolean |
acceptsData(Object data,
DragContext how)
This should indicate whether this control will accept the data either via a drag and drop or via a paste operation. |
protected KeyEvent |
checkInputMethod(KeyEvent receivedKeyEvent)
|
boolean |
checkSipCoverage()
|
protected void |
dataBeingRemoved(Object data,
DragContext dc)
This tells the control that data is being removed from it either via a cut operation or by a drag operation that is not explicitly a copy operation. |
protected void |
dataTransferCancelled(Object data)
This gets called either when that was cut from this control was not placed into another control (either it was rejected by a paste or a subsequent copy/cut into the clipboard occured before the data was pasted) or a drag and drop was initiated but not completed. |
String |
fixCase(String text)
This converts the case of the incoming text to the one associated with the edit control. |
int |
getBestPassiveFlags()
Passive mode is normally selected on SmartPhone devices. |
protected void |
getColors(boolean hasFocus,
int flags)
Provides the colors to be used for the text and background colors. |
boolean |
hasChanged()
|
protected boolean |
keepConditionalChar()
|
void |
onControlEvent(ControlEvent ev)
|
protected abstract boolean |
paintConditionalChar(Graphics g,
boolean highlight)
|
abstract void |
selectAll()
|
protected void |
setConditionalChar(char cc,
int index)
|
protected void |
setNativeInputFlags(TextInputParameters tip)
|
boolean |
startActiveInput(boolean selectAll)
This tells the Control to start active input IF it has the FLAG_PASSIVE value set. |
protected void |
startLocalInput(boolean selectAll)
|
protected boolean |
startNativeInput(boolean selectAll)
|
boolean |
takeData(Object data,
DragContext how)
This tells the Control to take the data which has either come from a clipboard operation or from a DragAndDrop. |
void |
update()
|
void |
updateData()
This tells the control to consider its current data to be unchanged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.Selectable |
deleteSelection, getSelection, hasSelection, noSelection, replaceSelection |
| Field Detail |
public boolean justGotFocus
protected String oldText
public Color pageColor
protected boolean doingLocalInput
protected boolean doingNativeInput
public int textCase
public static final int CASE_NORMAL
public static final int CASE_UPPER
public static final int CASE_LOWER
public static final int CASE_SENTENCE
public static final int CASE_NUMBERS
protected Color[] colors
public int inputFlags
public static int FLAG_USE_NATIVE
public static int FLAG_PASSIVE
public static int FLAG_INPUT_ON_FOCUS
public static int FLAG_KEEP_FOCUS_AFTER_INPUT
public InputMethod inputMethod
public InputValidator validator
protected boolean inFocus
protected boolean startNativeOnPaint
protected int blinkId
protected int conditionalCharIndex
protected char conditionalChar
| Constructor Detail |
public EditControl()
| Method Detail |
protected void getColors(boolean hasFocus,
int flags)
hasFocus - True if the control currently has the focus.flags - This is the result of a call to getFlags(true) - which provides an OR'ing of all the flags
of this control and all its parents.public int getBestPassiveFlags()
public abstract void selectAll()
public boolean hasChanged()
public void updateData()
Control
updateData in class Controlpublic void onControlEvent(ControlEvent ev)
onControlEvent in class Controlpublic boolean checkSipCoverage()
public boolean takeData(Object data,
DragContext how)
Control
takeData in class Controldata - The data to accept.how - if the transfer is via DragAndDrop this will be a DragContext object,
otherwise it will be null to indicate a clipboard operation.
public boolean acceptsData(Object data,
DragContext how)
Control
acceptsData in class Controldata - The data to be transferred.how - if the transfer is via DragAndDrop this will be a DragContext object,
otherwise it will be null to indicate a clipboard operation.
protected void dataBeingRemoved(Object data,
DragContext dc)
Control
dataBeingRemoved in class Controlprotected void dataTransferCancelled(Object data)
Control
dataTransferCancelled in class Controldata - The data that was being transferred. If it is null it indicates
that this Control was a destination for a Drag and Drop operation, but the
operation was cancelled by the user.public void update()
protected boolean startNativeInput(boolean selectAll)
protected void startLocalInput(boolean selectAll)
public boolean startActiveInput(boolean selectAll)
protected void setNativeInputFlags(TextInputParameters tip)
public String fixCase(String text)
protected KeyEvent checkInputMethod(KeyEvent receivedKeyEvent)
protected abstract boolean paintConditionalChar(Graphics g,
boolean highlight)
protected boolean keepConditionalChar()
protected void setConditionalChar(char cc,
int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||