text input component with lz components look and feel
The edittext tag provides a text input field which has a
look and feel to match the lz component set. It can accept any
<inputtext> attribute.
<canvas bgcolor="blue" height="60" > <edittext width="200" x="20" y="20">default text goes here</edittext> </canvas>
For details on how this component is constructed see the edittext section of the Guide.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| maxlength | Tag & JS | number | Number | null | setter |
|
The maximum number of chars that can be entered. |
|||||
|
|
|||||
| multiline | Tag only | expression | false | final | |
|
Set to true for multiple lines, default: false. |
|||||
|
|
|||||
| password | Tag only | expression | false | final | |
|
Set to true for a password field. Text will appear as ****, default: false. |
|||||
|
|
|||||
| pattern | Tag & JS | string | String | setter | |
|
An expression for a set of characters to restrict entry to. |
|||||
|
|
|||||
| resizable | Tag only | expression | final | ||
|
Set to true if you plan to change the width or height of the component at run-time, default: false. |
|||||
|
|
|||||
| text_y | Tag & JS | number | Number | setter | |
|
the y position of the text. default: centered, unless it is mutltiline |
|||||
|
|
|||||
doesenter, enabled, hasdefault, isdefault, style, styleable, text
changed, ignoreform, onchanged, onvalue, rollbackvalue, submit, submitname
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset
| clearText() | ||
| edittext.clearText() | ||
|
Clears the text field. |
||
|
|
| getText() | ||
| edittext.getText() | ||
|
Returns the string displayed in this component, like getValue(). |
||
| Returns | ||
| Type | Desc | |
| String | the string displayed. | |
|
|
||
| getValue() | ||
| edittext.getValue() | ||
|
Returns string displayed in this component, like getText(). |
||
| Returns | ||
| Type | Desc | |
| String | the string displayed. | |
|
|
||
| setMaxlength() | ||
| edittext.setMaxlength(n) | ||
| Parameters | ||
| Name | Type | Desc |
| n | None | |
|
|
||
| setPattern() | ||
| edittext.setPattern(r) | ||
| Parameters | ||
| Name | Type | Desc |
| r | None | |
|
|
||
| updateText() | ||
| edittext.updateText() | ||
|
|
doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault
applyData, commit, findForm, init, rollback, setChanged, setValue, toXML, updateData
animate, applyConstraint, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
| Events |
onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony
Copyright © 2002-2005 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.