[UP]
Wd_dialog
 Wd_dialog.dialog
 Wd_dialog.instant_session_manager
 Wd_dialog.database_session_manager
   
WDialog API for Objective Caml: Wd_dialog.dialog

Class virtual Wd_dialog.dialog


class virtual dialog : Wd_types.universe_type -> string -> Wd_types.environment -> object .. end
The class dialog is the implementation of Wd_types.dialog_type that should be used as base definition for all dialog objects. This class defines all methods but handle and prepare_page - these must be defined in the subclasses provided by the application programmer. Furthermore, there are some extensions to Wd_types.dialog_type realized as private methods to simplify access to templates. These additional methods begin with t_, but are otherwise named like the corresponding function in the module Wd_template.

The class takes three anonymous parameters:

  • The universe for which the dialog is defined
  • The name of the dialog in the UI definition
  • The environment of the current CGI activation

Inherits

The following private methods are shortcuts for the

Wd_template module.
method private t_get : string -> Wd_template.template
Returns the template
method private t_apply : Wd_template.template -> (string * Wd_template.tree) list -> Wd_template.tree
Applies the template, and passes the parameters to it
method private t_apply_byname : string -> (string * Wd_template.tree) list -> Wd_template.tree
Applies the named template, and passes the parameters to it
method private t_apply_lazily : string -> (string * Wd_template.tree) list -> Wd_template.tree
Constructs the expression that applies the names template on demand.
method private t_concat : Wd_template.tree -> Wd_template.tree list -> Wd_template.tree
Concatenates the tree list, and put the separator tree between the parts
method private t_empty : Wd_template.tree
The empty XML tree
method private t_text : string -> Wd_template.tree
The XML tree containing this text
method private t_html : string -> Wd_template.tree
The XML tree containing this HTML material
method private t_to_string : Wd_template.tree -> string
Evaluates the XML tree in the current environment, and returns the corresponding output string (HTML code)
method private put_tree : string -> Wd_template.tree -> unit
Sets the string variable to the string representation of the tree