oscar.Gui.Dialog

oscar.Gui.Dialog is the base class for dialogs in Oscar Framework.

Inherits from:oscar.Gui

@deprecated

Summary
oscar.Gui.Dialogoscar.Gui.Dialog is the base class for dialogs in Oscar Framework.
Constructor
oscar.Gui.Dialog
Functions
setHeaderSets the header for the dialog panel
setContentSets the content for the dialog panel, can either be text or an HTML element like a div.
renderThis function will “draw” the dialog panel.
hideThis function will hide and destroy the dialog.
showThis function will show the dialog panel.
addOkButtonThis is a convenience method for adding an OK button to the dialog.
addCancelButtonThis is a convenience method for adding a Cancel button to the dialog.
Constants
CLASS_NAME - oscar.Gui.Dialog

Constructor

oscar.Gui.Dialog

Parameters: namename of the dialog. options - {Object} An optional object whose properties will be set on this instance.

Functions

setHeader

setHeader : function(header)

Sets the header for the dialog panel

Parameters: headerheader for the dialog panel.

setContent

setContent : function(content)

Sets the content for the dialog panel, can either be text or an HTML element like a div.

Parameters: contentthe content object to be set.

render

render : function()

This function will “draw” the dialog panel.

hide

hide : function()

This function will hide and destroy the dialog.

show

show : function()

This function will show the dialog panel.

addOkButton

addOkButton : function(callback)

This is a convenience method for adding an OK button to the dialog.

Parameters: callbackthe callback function.

addCancelButton

addCancelButton : function(callback)

This is a convenience method for adding a Cancel button to the dialog.

Parameters: callbackthe callback function.

Constants

CLASS_NAME - oscar.Gui.Dialog

setHeader : function(header)
Sets the header for the dialog panel
setContent : function(content)
Sets the content for the dialog panel, can either be text or an HTML element like a div.
render : function()
This function will “draw” the dialog panel.
hide : function()
This function will hide and destroy the dialog.
show : function()
This function will show the dialog panel.
addOkButton : function(callback)
This is a convenience method for adding an OK button to the dialog.
addCancelButton : function(callback)
This is a convenience method for adding a Cancel button to the dialog.
The Oscar GUI package offers a set of utilities for building richly interactive web applications.This oscar.Gui object defines the Oscar GUI namespace.