PopUp


Name space rialto.widget
FILE rialtoEngine\javascript\rialto\widget\container\popup.js
NAME PopUp
INHERITS AbstractContainer
VERSION 1.0
update
DESCRIPTION This object create a modal window which can be moved



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
width String Width (in pixel or %) 100%
height String Height (in pixel or %) 100%
content String text that will be add to the popup 100%
title String Title of the window
greyBackground String Popup on gray background ('gray') , transparent background ('transparent') or inherit ('inherit') transparent
objPar.withCloseButon boolean if true the popup has a close button true
objPar.visible boolean initial visible state of the popup true

Example:
          ppUp = new rialto.widget.PopUp('test',150,420,'250','150','',"Login",'transparent',{withCloseButon:true,visible:true});
        

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
setTitle String newTitle void no no
getTitle String no no
onSetTitle String newTitle void no yes
closeWindow void no no
onclose void no yes

setTitle

this method will allow to change the value of the title
Parameters:
String newTitle:new value of the title

getTitle

return the title
Parameters:

onSetTitle

this method will be raise after changing the title
Parameters:
String newTitle:new value of the title

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

closeWindow

this method will allow to close the window
Parameters:

onclose

this method will be raise after closing the window
Parameters:

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