|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Edit
|
+--superwaba.ext.xplat.html.ui.Edit
Edit extends the Waba Edit control
and implements it as a Controllable
| Fields inherited from class waba.ui.Edit |
alignment,
ALL_LOWER,
ALL_NORMAL,
ALL_UPPER,
autoSelect,
calculator,
calendar,
capitalise,
CURRENCY,
currencyCharsSet,
DATE,
dateSet,
editable,
hasBorder,
hasCursorWhenNotEditable,
KBD_CALCULATOR,
KBD_CALENDAR,
KBD_DEFAULT,
KBD_KEYBOARD,
KBD_NONE,
kbdType,
keyboard,
len,
mask,
maxLength,
NORMAL,
numbersSet,
overwrite,
PASSWORD,
PASSWORD_ALL,
pushedInsertPos,
pushedStartSelectPos,
pushedxOffset,
removeFocusOnAction,
validChars |
| Fields inherited from class waba.ui.Control |
AFTER,
appId,
appObj,
asContainer,
asWindow,
backColor,
backDis,
BEFORE,
BOTTOM,
CENTER,
clearValueInt,
clearValueStr,
enabled,
FILL,
FIT,
fm,
fmH,
focusLess,
focusTraversable,
font,
foreColor,
foreDis,
height,
highlightRectsCount,
isHighlighting,
LEFT,
parent,
PREFERRED,
RANGE,
RIGHT,
SAME,
TOP,
uiCE,
uiFlat,
uiPalm,
uiVista,
visible,
width,
x,
x2,
y,
y2 |
| Constructor Summary | |
Edit(java.lang.String name,
java.lang.String text,
int len,
int maxLen)
Constructor |
|
| Method Summary | |
Graphics |
createGraphics()
Override the createGraphics method in order to get the text edit control to be positionned at its place, given the scoll values. |
void |
getFocus()
Make this controllable gets the focus |
java.lang.String |
getName()
Get the name of this Controllable |
int |
getPreferredWidth()
Get the width of this Controllable |
java.lang.String |
getValue()
Get the value hold by this Controllable |
void |
onEvent(Event event)
Called to process key, pen, control and other posted events. |
void |
popupKCC()
user method to popup the keyboard/calendar/calculator for this edit. |
void |
repaint()
Marks the control for repaint. |
void |
reset()
Resets the control to its original default value. |
void |
setHtmlContainer(HtmlContainer htmlCnr)
Set the Html HtmlContainer associated to this Controllable |
| Methods inherited from class waba.ui.Edit |
charPos2x,
clear,
draw,
getCursorPos,
getKeyboardType,
getLength,
getPreferredHeight,
getText,
isCharValid,
isEditable,
onBoundsChanged,
onColorsChanged,
onPaint,
onWindowPaintFinished,
popPosState,
pushPosState,
setCapitaliseMode,
setCursorPos,
setEditable,
setKeyboard,
setMaxLength,
setMode,
setText,
setValidChars,
x2charPos |
| Methods inherited from class waba.ui.Control |
addTimer,
changeHighlighted,
contains,
drawHighlight,
getAbsoluteRect,
getBackColor,
getFont,
getFontMetrics,
getForeColor,
getNext,
getParent,
getParentWindow,
getPos,
getRect,
getSize,
isDisplayed,
isEnabled,
isVisible,
onFontChanged,
postEvent,
removeTimer,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setEnabled,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setRect,
setVisible,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Edit(java.lang.String name,
java.lang.String text,
int len,
int maxLen)
name - name of this Controllabletext - the text displayed in this Edit controllen - length (in characters) of this field; -1 to use defaultmaxLen - the maximum length of characters of this field;
-1 to use default| Method Detail |
public void setHtmlContainer(HtmlContainer htmlCnr)
htmlCnr - the HtmlContainer associated to this Controllablepublic void popupKCC()
public void onEvent(Event event)
event - the event to processpublic void getFocus()
public int getPreferredWidth()
public java.lang.String getName()
public java.lang.String getValue()
public void repaint()
public Graphics createGraphics()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||