"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
// import { HtmlTextParser } from './../ctrls/HtmlTextParser';
var Panel_1 = require("../views/Panel");
var JoinPanel = (function (_super) {
    __extends(JoinPanel, _super);
    function JoinPanel(data) {
        var _this = _super.call(this, data) || this;
        _this.jlData = data;
        return _this;
    }
    Object.defineProperty(JoinPanel.prototype, "skinKey", {
        get: function () { return 'Join'; },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(JoinPanel.prototype, "groupName", {
        get: function () { return 'join_panel'; },
        enumerable: true,
        configurable: true
    });
    JoinPanel.prototype.onSkinComplete = function () {
        _super.prototype.onSkinComplete.call(this);
        this.once(egret.Event.ADDED_TO_STAGE, this.onLoad, this);
        if (this.stage) {
            this.onLoad();
        }
    };
    JoinPanel.prototype.onTouchTap = function () {
        _super.prototype.onTouchTap.call(this);
        if (this.jlData.callBack) {
            this.jlData.callBack(false);
        }
    };
    JoinPanel.prototype.start = function () {
        this.percentHeight = 100;
    };
    JoinPanel.prototype.initEvents = function () {
        _super.prototype.initEvents.call(this);
        this.closeBtn0.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTap, this);
    };
    JoinPanel.prototype.removeEvents = function () {
        _super.prototype.removeEvents.call(this);
        this.closeBtn0.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTap, this);
    };
    JoinPanel.prototype.onLoad = function () {
        this.jlText.text = this.jlData.text;
    };
    return JoinPanel;
}(Panel_1.default));
exports.default = JoinPanel;
__reflect(JoinPanel.prototype, "\"c:/Users/duiba/Documents/kuwo/egret/src/joinPanel/JoinPanel\".JoinPanel");
//# sourceMappingURL=JoinPanel.js.map