The canvas is the container for all views within an application.
The LzCanvas class represents the viewable
area of the application. There is one instance of
LzCanvas, named canvas. The
canvas contains all views within an application.
The <canvas> tag is the document root of an LZX
application file. It contains class, resource, and font definitions,
library includes, and view and other instances.
See the Guide
for a complete discussion of the <canvas> tag.
| Name | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
dataloadtimeout
|
numberExpression | Number | read/write | |
| If present, specifies the default timeout in milliseconds of data load requests | ||||
datasets
|
Object | read/write | ||
| Dictionary of all named datasets. | ||||
defaultdataprovider
|
read/write | |||
|
LzHTTPDataProvider, which will also be pointed to by
the canvas.httpdataprovider.
|
||||
embedfonts
|
Boolean | initialize-only | ||
| Whether to embed fonts in the compiled application. | ||||
httpdataprovider
|
read/write | |||
|
LzHTTPDataProvider, which implements HTTP request
transport. The default value of the canvas.defaultdataprovider is initially set to point
to this same object.
|
||||
lpsbuild
|
String | initialize-only | ||
| A String specifying the LPS build revision and the build directory: e.g. "4075 /Users/maxcarlson/openlaszlo/legals" | ||||
lpsbuilddate
|
String | initialize-only | ||
| A String specifying the date and time of the LPS build. "2007-03-05T15:33:42-0800" | ||||
lpsrelease
|
String | initialize-only | ||
| release of the LPS that generated this application (for .lzo files, this is the release of the server that generated the optimized file, not the one that served it). | ||||
lpsversion
|
Number | initialize-only | ||
| version number of the LPS that generated this application (for .lzo files, this is the version number of the server that generated the optimized file, not the one that served it). | ||||
medialoadtimeout
|
numberExpression | Number | read/write | |
| If present, specifies the default timeout in milliseconds of media load requests | ||||
percentcreated
|
Number | read/write | ||
| A number from 0-1 that represents the percentage of the app that has been instantiated. | ||||
proxied
|
booleanLiteral | "inherit" | String | "inherit" | read/write |
| If true, requests for data and media are proxied through LPS server. if false, requests are made directly to target URLs. if inherit, inherit from lzproxied query arg. | ||||
runtime
|
String | initialize-only | ||
| A String describing the target runtime. "dhtml" | "swf7" | "swf8" are currently supported. Others are in development. | ||||
version
|
string | Number | "1.1" | read/write |
| The lpsversion of this lzx application. | ||||
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, cachebitmap, clickable, clickregion, clip, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visibility, visible, width, x, xoffset, y, yoffset
classroot, cloneManager, datapath, defaultplacement, id, ignoreplacement, immediateparent, initstage, name, nodeLevel, options, parent, placement, subnodes
Methods
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, measureHeight, measureWidth, play, proxyurl, releaseLayouts, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAccessible, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setProxyPolicy, setProxyURL, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setXOffset, setY, setYOffset, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
animate, applyConstraint, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setData, setDatapath, setOption, setSelected, updateData
Events
| Name | Description |
|---|---|
onafterinit
|
Sent after oninit |
onmousemove
|
Sent whenever the mouse moves |
onpercentcreated
|
Sent whenever the number of created nodes changes |
onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onframesloadratio, onheight, onkeydown, onkeyup, onlastframe, onload, onloadperc, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onvisible, onwidth, onx, ony
Copyright © 2002-2008 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.