frame


Name space rialto.widget
FILE rialtoEngine\javascript\components\containers\frame.js
NAME frame
INHERITS AbstractContainer
VERSION 0.86
update
DESCRIPTION This object create a frame



CONSTRUCTOR


Name Type Description Default
Name String Name of the HTML element frame
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%
position String position absolute or relative absolute
title String title of the frame
open boolean if dynamic, intial open state of the frame true
dynamic boolean if true, the frame is able to open and close true
draggable boolean true if the frame is draggable libelle1
parent String or reference Reference of an HTML or a javascript element parent of the frame html element

Example:
var CADREC = new rialto.widget.Frame({name:'CADREC',top:'15',left:'10',width:'98%',height:'335',title:'Search criteria',open:true,dynamic:true,position:'relative',draggable:false,parent:FORM1});

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
addButton object objIm void no no
setDisplay boolean isOpen void no no
setTitle String newTitle void no no
onSetDisplay boolean isOpen void no yes

addButton

this method will allow to add a button or image in the title area
Parameters:
object objIm:object to add in the toolbar

setDisplay

this method will allow to open or close the frame according to the parameter
Parameters:
boolean isOpen:True to open the frame

setTitle

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

onSetDisplay

raise after the use of setDisplay method
Parameters:
boolean isOpen:indicate the open state of the frame

The code must be redefine after the instanciation of the component. By default this method does nothing.
Example:
				myFrame.onSetDisplay=function(isOpen){
					if(isOpen){
						//code to execute after opening 
					}
					else{
						//code to execute after closing 
					}
				}