label


Name space rialto.widget
FILE rialtoEngine\javascript\components\controls\label.js
NAME label
INHERITS AbstractComponent
VERSION 0.86
update
DESCRIPTION This object create an label



CONSTRUCTOR


Name Type Description Default
name String Name of the HTML element
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 label html element
text String text of the label
className String Name of a classname to use for the text 0

Example:
          lab = new rialto.widget.Label("lab1",20,30,CADRE1,"Name:","libelle1");
        

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
setText String newText void no no
setVisible boolean isVisible void no no
setEnable boolean isEnable void no no

setText

this method will allow to change the text of the label
Parameters:
String newText:new text of the label

setVisible

this method will allow to display or hide the label according to the parameter
Parameters:
boolean isVisible:True to display

setEnable

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