superwaba.ext.xplat.html.ui
Class MultiEdit
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
|
+--superwaba.ext.xplat.ui.MultiEdit
|
+--superwaba.ext.xplat.html.ui.MultiEdit
- public class MultiEdit
- extends MultiEdit
- implements Controllable
MultiEdit extends the Waba MultiEdit control
and implements it as a Controllable
| Fields inherited from class waba.ui.Container |
BORDER_LOWERED,
BORDER_NONE,
BORDER_RAISED,
BORDER_SIMPLE,
children,
lastH,
lastW,
lastX,
lastY,
parentWindow,
started,
tabOrder,
tail |
| 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 |
MultiEdit(java.lang.String name,
int rows,
java.lang.String mask)
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. |
protected void |
draw(Graphics g,
boolean cursorOnly)
|
void |
getFocus()
Make this controllable gets the focus |
java.lang.String |
getName()
Get the name 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 |
onPaint(Graphics g)
When this method is called, the graphics object passed has been translated
into the coordinate system of the control and the area behind the control
has already been painted.
|
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 |
void |
setText(java.lang.String text)
Sets the text displayed in the edit control. |
| Methods inherited from class superwaba.ext.xplat.ui.MultiEdit |
clear,
getNumberOfTextLines,
getPreferredHeight,
getPreferredWidth,
getText,
isEditable,
onBoundsChanged,
onColorsChanged,
onFontChanged,
onWindowPaintFinished,
popPosState,
popupMenu,
pushPosState,
restoreText,
saveText,
setCapitaliseMode,
setDrawDots,
setEditable,
setKeyboard,
setMaxLength,
setNumberOfRows,
setRect,
setValidChars |
| Methods inherited from class waba.ui.Container |
add,
add,
add,
broadcastEvent,
findChild,
getChildren,
getClientRect,
getClientRect,
onAdd,
onRemove,
onStart,
paintChildren,
remove,
setBorderStyle,
setEnabled,
setHighlighting,
swapToTopmostWindow |
| 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,
postEvent,
removeTimer,
repaintNow,
requestFocus,
setBackColor,
setBackForeColors,
setFocusLess,
setFont,
setForeColor,
setRect,
setRect,
setVisible,
translateFromOrigin,
uiStyleChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
forceForceDrawAll
protected boolean forceForceDrawAll
MultiEdit
public MultiEdit(java.lang.String name,
int rows,
java.lang.String mask)
- Constructor
- Parameters:
name - name of this Controllablerows - number of lines (rows)mask - if needed; null otherwise
(the mask sets the width of the MultiEdit)
setText
public void setText(java.lang.String text)
- Description copied from class: MultiEdit
- Sets the text displayed in the edit control.
- Overrides:
- setText in class MultiEdit
setHtmlContainer
public void setHtmlContainer(HtmlContainer htmlCnr)
- Description copied from interface: Controllable
- Set the Html HtmlContainer associated to this Controllable
- Specified by:
- setHtmlContainer in interface Controllable
- Tags copied from interface: Controllable
- Parameters:
htmlCnr - the HtmlContainer associated to this Controllable
popupKCC
public void popupKCC()
- Description copied from class: MultiEdit
- user method to popup the keyboard/calendar/calculator for this edit.
- Overrides:
- popupKCC in class MultiEdit
draw
protected void draw(Graphics g,
boolean cursorOnly)
- Overrides:
- draw in class MultiEdit
onEvent
public void onEvent(Event event)
- Description copied from interface: Controllable
- Called to process key, pen, control and other posted events.
- Specified by:
- onEvent in interface Controllable
- Overrides:
- onEvent in class MultiEdit
- Tags copied from interface: Controllable
- Parameters:
event - the event to process
getFocus
public void getFocus()
- Description copied from interface: Controllable
- Make this controllable gets the focus
- Specified by:
- getFocus in interface Controllable
getName
public java.lang.String getName()
- Description copied from interface: Controllable
- Get the name of this Controllable
- Specified by:
- getName in interface Controllable
- Tags copied from interface: Controllable
- Returns:
- the name of this Controllable
getValue
public java.lang.String getValue()
- Description copied from interface: Controllable
- Get the value hold by this Controllable
- Specified by:
- getValue in interface Controllable
- Tags copied from interface: Controllable
- Returns:
- the value hold by this Controllable
repaint
public void repaint()
- Description copied from class: Control
- Marks the control for repaint. Important note: when you call repaint, the absolute
area of the control regarding its parent Window is invalidated (marked
for repaint); then, the next time a event (a keypress, a timer, a pen event)
occurs, the screen is updated. If you call repaint and the control isn't
effectively repainted, you have 2 choices: call Window._doPaint(), or,
use Control.repaintNow.
- Overrides:
- repaint in class Control
createGraphics
public Graphics createGraphics()
- Override the createGraphics method in order to get the text edit control
to be positionned at its place, given the scoll values.
- Overrides:
- createGraphics in class Control
- Returns:
- graphics object for this Edit control.
onPaint
public void onPaint(Graphics g)
- Description copied from interface: Controllable
- When this method is called, the graphics object passed has been translated
into the coordinate system of the control and the area behind the control
has already been painted.
The background is painted by the top-level window control.
- Specified by:
- onPaint in interface Controllable
- Overrides:
- onPaint in class MultiEdit
- Tags copied from interface: Controllable
- Parameters:
g - the graphics object for drawing
reset
public void reset()
- Description copied from interface: Controllable
- Resets the control to its original default value.
- Specified by:
- reset in interface Controllable