SimpleWindow


Name space rialto.widget
FILE rialtoEngine\javascript\components\containers\simpleWindow.js
NAME SimpleWindow
INHERITS AbstractContainer
VERSION 0.86
update
DESCRIPTION This object create a simple window that occupate all the parent

For the moment there is a restriction. You can't have more than one simple window visible. That mean that each creation of simple window hide the previous active one


CONSTRUCTOR


Name Type Description Default
parent String or reference Reference of an HTML or a javascript element parent of the window html element
title String Title of the window
icone String path of an image to use as icone "images/imgFenSimple/picto-gr_default.gif"

Example:
          sWin = new rialto.widget.SimpleWindow({parent:splitPG.div2,title:'Form example',icone:'images/imgFenSimple/picto-gr_recherchepatients.gif'});
        

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
closeWindow void no no
activeFen void no no
setVisible boolean isVisible void no no
setTitle String newTitle void no no
onSetTitle String newTitle void no yes
onClose void no yes

closeWindow

this method will allow to close the window
Parameters:

activeFen

this method will allow to activate the window
Parameters:

setVisible

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

setTitle

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

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.

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.