<simpleinputtext>

A simple input text field with basic borders.

JavaScript: simpleinputtext

Extends View

A simpleinputtext is a single-line only input text field with a simple black border on the top and left side of the view.

Note: This element is deprecated; see <edittext>.

Example 1. Simpleinputtext
<canvas height="60" bgcolor="red">
  <include href="lz/simpletext.lzx" />
  <simpleinputtext width="200" x="20" y="20">
    default text goes here
  </simpleinputtext>
</canvas>
Attributes
Name Usage Type (Tag) Type (JS) Default Category
bgOpacity Tag & JS expression any 1 setter
 

The opacity for the input background. Default is 1.


blurborderOpacity Tag & JS expression any 1 setter
 

The opacity for the border on blur. Default is 1.


focusborderOpacity Tag & JS expression any 1 setter
 

The opacity for the border on focus. Default is 1.


text Tag & JS html any   setter
 

The text for input. Defaults to empty string.


textOpacity Tag & JS expression any 1 setter
 

The text opacity. Default is 1.



Attributes inherited from Node

class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes

Attributes inherited from View

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


Methods

getText()
simpleinputtext.getText()

Get the text.

Returns
Type Desc
String input text value.


setText()
simpleinputtext.setText(t)

Set the text.

Parameters
Name Type Desc
t String text value for input.


Methods inherited from LzNode

animate, applyConstraint, applyData, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption

Methods inherited from LzView

addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, init, 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

Events inherited from LzNode

onconstruct, ondata, oninit

Events inherited from LzView

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