CHECKBOX


Name space rialto.widget
FILE rialtoEngine\javascript\components\controls\checkBox.js
NAME CHECKBOX
INHERITS AbstractComponent
VERSION 0.86
update
DESCRIPTION This object create a checkbox



CONSTRUCTOR


Name Type Description Default
Name String Name of the HTML element checkbox
top int Top position (in pixel) 0
left int Left position (in pixel) 0
parent String or reference Reference of an HTML or a javascript element parent of the checkbox html element
text String Text to display
checked boolean True if checkbox is checked false
classname String classname to use for the text libelle1

Example:
var myCheck=new rialto.widget.Checkbox("CHECK1",10,10,frame1,"Label",true,"libNormal");

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
setEnable boolean isEnable void no no
setCheck boolean isCheck,boolean executeOnclick void no no
isCheck boolean no no
onclick no yes

setEnable

this method will allow to enable or disable the checkbox according to the parameter
Parameters:
boolean isEnable:True to enable the checkbox

setCheck

this method will allow to check or uncheck the checkbox according to the parameter
Parameters:
boolean isCheck:True to check the checkbox
boolean executeOnclick:True to execute the code define on the onclick event

isCheck

return the check status of the checkbox
Parameters:

onclick

this method will be raise afert clicking the checkbox.
Parameters:

The code must be redefine after the instanciation of the component. By default this method does nothing.