/// class PD.Web.UI.Controls.WaitScreen
/// using PD.Web.UI.Controls.Control

PD.Web.UI.Controls.WaitScreen =
    PD.Web.UI.Controls.Control.extend({

        //===================================
        // PROPERTIES
        //===================================

        get_message: function () {
            return this._options.message;
        },

        //===================================
        // PUBLIC METHODS
        //===================================

        template: function (e) {

            var message = (this.get_message() != null ? this.get_message() : "");

            return [
                "<div class='-pd-wait-screen'>",
                    "<div class='-pd-wait-screen-background'></div>",
                    "<div class='-pd-wait-screen-content'>",
                        "<div class='-pd-wait-screen-graphic'>",
                            "<div class='-pd-wait-screen-ring'>",
                                "<div></div>",
                                "<div></div>",
                                "<div></div>",
                                "<div></div>",
                            "</div>",
                        "</div>",
                        "<div class='-pd-wait-screen-text'>" + message + "</div>",
                    "</div>",
                "</div>"
            ];
        }

    });