Checkbox

出自OpenFace

跳转到: 导航, 搜索

目录

<checkbox>

--Xuhb 2008年3月29日 (六) 11:17 (CST)

A check box is usually used to interact with users like provide users with selection of one or many items. Check box inherits from the button and has different status. In the same way, when the check box is in different status, different windows will be provided for prompt. You can add a text label for the check box and it will be displayed right to it as default. You can set the position of this text label to put it where you want.

Attributes

Name        Usage      Type(Tag)    Type (JS)    Default    Category

selected       Tag & JS     boolean     Boolean     null     setter

If the check box is selected.


value         Tag & JS     string      String      null     setter

The value stands for the check box.


--Xuhb 2008年3月29日 (六) 11:17 (CST) [这部分和laszlo不同,组件直接继承自相对应的java类,具体的继承关系请参考API文档]

Attributes inherited from BaseButton

Attributes inherited from Component

align, bgcolor, clip, cloneManager, datapath, enabled, fgcolor, focusable, fontsize, frame, hassetheight, hassetwidth, height, ignorelayout, ignorex, ignorey, mask, opacity, resource, resourceheight, resourcewidth, rotation, source, totalframes, valign, visible, width, x, y

Attributes inherited from Node

id, name, parent, subnodes


Methods

--Xuhb 2008年3月29日 (六) 11:17 (CST) [这部分和laszlo不同,组件直接继承自相对应的java类,具体的继承关系请参考API文档]

Methods inherited from BaseButton

Methods inherited from Component

applyData, containsPt, 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, setClickable, setColor, setDatapath, setHeight, setOpacity, setResource, setResourceNumber, setRotation, setSource, setValign, setVisible, setWidth, setX, setY, stretchResource

Methods inherited from Node

getAttribute, setAttribute,applyConstraint


Events

--Xuhb 2008年3月29日 (六) 11:17 (CST) [这部分和laszlo不同,组件直接继承自相对应的java类,具体的继承关系请参考API文档]

Events inherited from Component

onenabled, onerror, onfocus, onwidth, onheight, onopacity, onvisible, onwidth, onx, ony, onpathready, oncloneend, onclonenumber

Events inherited from Node

ondata, oninit