Canvas
出自OpenFace
目录 |
canvas
The top-most view in a Laszlo application. JavaScript: LzCanvas
Extends View 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, library includes, and view and other instances.
See the Guide for a complete discussion of the <canvas> tag.
Attributes
Name Usage Type(Tag) Type (JS) Default Category
accessible Tag & JS boolean Boolean false
setterSpecifies if this application is intended to be accessible
Attributes inherited from Node
id, name, parent, subnodes
Attributes inherited from View
align,bgcolor,clip,cloneManager,datapath,enabled,fgcolor,focusable,fontsize,frame,hassetheight,hassetwidth,height,ignorelayout,ignorex,ignorey, opacity,resource,resourceheight,resourcewidth,rotation,source,totalframes,valign,visible,width,x,y,z
constructor()
LzCanvas(args)
Parameters Name Type Desc args None
getDataSet()
Get the dataset with the specified name
Parameter name: the name of the dataset
Methods inherited from LzNode
getAttribute, setAttribute,applyConstraint
Methods inherited from LzView
applyData,converseToRelativeX,converseToRelativeY,dataBind,destroy(),getAbsoluteX,getAbsoluteY,getAttribute, getBounds, getBGColor,getColor, getFontSize,getHeight,getParent,getResource,getRotation,getSource,getTotalFrames,getVisible,getWidth,getX,getY,getWidth,hasSetFGColor,hasSetFontSize,instantiateDone,isEnabled,isFocusable,sendBehind, sendInFrontOf, sendToBack,setAlign, setAttributeRelative, setBGColor, setColor, setDatapath,setHeight, setOpacity, setResource, setResourceNumber, setRotation, setSource, setValign, setVisible, setWidth, setX, setY, stretchResource
Events
Name Description
oninit None
Events inherited from LzNode
onconstruct, ondata, oninit
Events inherited from LzView
onenabled,onerror, onfocus, onwidth, onheight, onopacity, onvisible, onwidth, onx, ony, onpathready, oncloneend, onclonenumber

