public class VirtualKeyboard extends Window
Control.TranslucentShape
Modifier and Type | Field and Description |
---|---|
protected AlphabetKeyboard |
alfaKeyboard
Represents the container's letters keyboard
|
boolean |
btnCancelPressed |
static int |
iconColor |
protected static boolean |
isOpen |
protected static VirtualKeyboard |
keyboard |
protected NumericAndSymbolsKeyboard |
numericKeyboard
Represents the container's numeric keyboard
|
protected int |
totalTime |
java.lang.String |
value |
_controlEvent, _dragEvent, _focus, _keyEvent, _mouseEvent, _multiEvent, _penEvent, androidBorderThickness, beepIfOut, blocking, borderStyle, cancelPenUp, canDrag, dragThreshold, fadeOtherWindows, fadeValue, firstFocus, flickEnabled, focusOnPenUp, footerColor, footerH, gradientTitleEndColor, gradientTitleStartColor, headerColor, highlighted, highResPrepared, HORIZONTAL_GRADIENT, ignoreEventOfType, keyHook, lastShiftY, lastSwappedContainer, mainSwapContainer, menubar, multiTouching, needsPaint, NO_BORDER, ORIENTATION_INVERTED, ORIENTATION_LANDSCAPE, ORIENTATION_PORTRAIT, popped, RECT_BORDER, repaintOnSwap, robot, ROUND_BORDER, rTitle, sameBackgroundColor, shiftH, shiftY, SIP_BOTTOM, SIP_HIDE, SIP_SHOW, SIP_TOP, TAB_BORDER, TAB_ONLY_BORDER, tempTitle, title, titleAlign, titleColor, titleFont, titleGap, topMost, VERTICAL_GRADIENT, zStack
alwaysEraseBackground, BACKGROUND_CYLINDRIC_SHADED, BACKGROUND_SHADED, BACKGROUND_SHADED_INV, BACKGROUND_SOLID, backgroundStyle, BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_ROUNDED, BORDER_SIMPLE, BORDER_TOP, borderColor, borderRadius, children, controlFound, finishedStart, ignoreOnAddAgain, ignoreOnRemove, insets, lastH, lastScreenWidth, lastW, numChildren, started, tabOrder, tail, TRANSITION_TIME
AFTER, alphaValue, appId, appObj, asContainer, asWindow, backColor, BEFORE, BOTTOM, BOTTOM_OF, BRIGHTER_BACKGROUND, callListenersOnAllTargets, CENTER, CENTER_OF, clearValueInt, clearValueStr, DARKER_BACKGROUND, DP, effect, enableUpdateScreen, esce, eventsEnabled, FILL, fillColor, FIT, floating, fm, fmH, focusHandler, focusLess, focusOnPenDown, focusTraversable, font, FONTSIZE, foreColor, height, ignoreInsets, isHighlighting, isTablet, KEEP, keepDisabled, keepEnabled, LEFT, next, nextTabControl, npParts, offscreen, offscreen0, onEventFirst, parent, PARENTSIZE, PARENTSIZEMAX, PARENTSIZEMIN, PREFERRED, prev, RANGE, repositionAllowed, RIGHT, RIGHT_OF, SAME, SCREENSIZE, SCREENSIZEMAX, SCREENSIZEMIN, setFont, setH, setRel, setW, setX, SETX_NOT_SET, setY, tempW, textShadowColor, TOP, translucentShape, transparentBackground, uiAdjustmentsBasedOnFontHeightIsSupported, uiAndroid, UICONST, uiFlat, uiHolo, uiMaterial, uiVista, visible, width, WILL_RESIZE, x, y
Modifier | Constructor and Description |
---|---|
protected |
VirtualKeyboard() |
Modifier and Type | Method and Description |
---|---|
static VirtualKeyboard |
getInstance()
This method returns the last created instance of the VirtualKeyboard.
|
static VirtualKeyboard |
getInstance(Control c) |
java.lang.String |
getText()
Returns the value on the VirtualKeyboard
|
void |
onEvent(Event event)
Called to process key, pen, control and other posted events.
|
protected void |
onPopup()
Placeholder called imediatly before the popup began.
|
protected boolean |
organizarVisibilidadeTecladoAlfa()
Organizes the visible buttons in accordance with the valid characters.
|
protected boolean |
organizeNumericKeyboardVisibility()
Organizes the visible buttons in accordance with the valid characters.
|
static void |
orientationChanged(boolean changed) |
void |
popup()
Pops up this window, blocking the execution until the window closes.
|
protected void |
postPopup()
Placeholder called after the popup is done and after the repaint of this window.
|
void |
postUnpop()
Placeholder called after the unpop is done and after the repaint of the other window.
|
void |
screenResized()
Called when the screen is resized, probably caused by a rotation.
|
void |
setCursorPos() |
void |
setCursorPosEnd() |
void |
setFocus(Control c)
Sets focus to the given control.
|
void |
setMaxLength(int maxLength)
Sets the max string size
|
void |
setMode(byte mode) |
protected void |
setRect(boolean screenResized) |
void |
setText(java.lang.String text)
Sets the text on the VirtualKeyboard Edit.
|
void |
setValidChars(java.lang.String validCharsString)
Sets the possible characters to be written on the keyboard.
|
void |
setValue(java.lang.String value)
Sets the value used when you open the keyboard.
|
void |
unpop()
Hides this window.
|
static void |
updateImages(Image imgOk,
Image imgCancel,
Image imgBackSpace,
Image img123,
Image imgAbc) |
static void |
updateMessages(java.lang.String strCancelar,
java.lang.String strLimpar)
Deprecated.
|
static void |
updateStrCancel(java.lang.String strCancel)
Updates the cancel string;
|
_doPaint, _postEvent, destroyZStack, drawHighlight, getBorderStyle, getClientRect, getClientRect, getDefaultDragThreshold, getFocus, getHighlighted, getPopupCount, getPreferredHeight, getPreferredWidth, getTitleFont, getTopMost, handleFocusChangeKeys, isScreenShifted, isSipShown, isSipShown4D, isTopMost, isVisible, loadBehind, makeUnmovable, onClickedOutside, onRobotKey, onUnpop, paintTitle, paintWindowBackground, popupMenuBar, popupNonBlocking, postPressedEvent, pumpEvents, removeFocus, repaintActiveWindows, resize, resizeHeight, resizeWidth, setBorderStyle, setDeviceTitle, setGrabPenEvents, setHighlighted, setMenuBar, setOrientation, setSIP, setTitle, setTitleFont, shiftScreen, swap, swapFocus, validate
add, add, add, add, add, broadcastEvent, clear, fillBackground, findChild, findNearestChild, findNextFocusControl, getBorderRadius, getChildren, getChildrenCount, getFirstChild, getFocusableControls, getInsets, incLastX, incLastY, initUI, isPressed, moveFocusToNextControl, moveFocusToNextEditable, onAddAgain, onColorsChanged, onPaint, onRemove, onSwapFinished, paintChildren, remove, removeAll, setBorderRadius, setEnabled, setFocusTraversable, setHighlighting, setInsets, setPressColor, setPressed, swapToTopmostWindow
_onEvent, addEnabledStateListener, addFocusListener, addFontChangeHandler, addGridListener, addHandler, addHighlightListener, addKeyListener, addListContainerListener, addMouseListener, addMultiTouchListener, addPenListener, addPressListener, addPushNotificationListener, addSizeChangeHandler, addTimer, addTimer, addTimerListener, addValueChangeHandler, addWindowListener, bringToFront, changeHighlighted, contains, drawTranslucentBackground, getAbsoluteRect, getBackColor, getDoEffect, getEffectH, getEffectW, getEffectX, getEffectY, getEventListeners, getFont, getForeColor, getGap, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPressedEvent, getPrev, getRect, getSize, getTextShadowColor, getWidth, getX, getX2, getY, getY2, hadParentScrolled, handleGeographicalFocusChangeKeys, hasFocus, internalSetEnabled, intXYWH, isActionEvent, isChildOf, isDisplayed, isEnabled, isFloating, isInsideOrNear, isObscured, isVisibleAndInside, onBoundsChanged, onFontChanged, onWindowPaintFinished, post, postEvent, releaseScreenShot, removeEnabledStateListener, removeFocusListener, removeGridListener, removeHandler, removeHighlightListener, removeKeyListener, removeListContainerListener, removeMouseListener, removeMultiTouchListener, removePenListener, removePressListener, removePushNotificationListener, removeTimer, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, reposition, repositionChildren, requestFocus, resetSetPositions, resetStyle, safeRepaintNow, safeUpdateScreen, sendToBack, setBackColor, setBackForeColors, setDoEffect, setFloating, setFocusLess, setFont, setForeColor, setNinePatch, setNinePatch, setRect, setRect, setRect, setRect, setSet, setTextShadowColor, setTranslucent, setVisible, showTip, takeInitialScreenShot, takeScreenShot, translateFromOrigin, uiStyleChanged, updateScreen, updateTemporary, willOpenKeyboard
public java.lang.String value
protected NumericAndSymbolsKeyboard numericKeyboard
protected AlphabetKeyboard alfaKeyboard
protected static VirtualKeyboard keyboard
protected static boolean isOpen
public boolean btnCancelPressed
public static int iconColor
protected int totalTime
public static void orientationChanged(boolean changed)
public static VirtualKeyboard getInstance()
public static VirtualKeyboard getInstance(Control c)
protected void onPopup()
Window
protected void setRect(boolean screenResized)
public void popup()
Window
protected void postPopup()
Window
public void postUnpop()
Window
public void unpop()
Window
protected boolean organizarVisibilidadeTecladoAlfa()
protected boolean organizeNumericKeyboardVisibility()
public void setValue(java.lang.String value)
value
- public java.lang.String getText()
public void setText(java.lang.String text)
text
- new textpublic void setValidChars(java.lang.String validCharsString)
public void setMaxLength(int maxLength)
maxLength2
- public void setMode(byte mode)
public void setFocus(Control c)
Window
public void onEvent(Event event)
Control
public void setCursorPosEnd()
public void setCursorPos()
public static void updateMessages(java.lang.String strCancelar, java.lang.String strLimpar)
strCancelar
- strLimpar
- public static void updateStrCancel(java.lang.String strCancel)
strCancel
- public static void updateImages(Image imgOk, Image imgCancel, Image imgBackSpace, Image img123, Image imgAbc)
public void screenResized()
Window
screenResized
in class Window