"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 });
var Panel_1 = require("../views/Panel");
/**
 * 相片详情界面
 */
var AlbumInfoPanel = (function (_super) {
    __extends(AlbumInfoPanel, _super);
    function AlbumInfoPanel() {
        var _this = _super.call(this) || this;
        _this.init();
        return _this;
    }
    Object.defineProperty(AlbumInfoPanel.prototype, "skinKey", {
        get: function () { return 'AlbumInfo'; },
        enumerable: true,
        configurable: true
    });
    AlbumInfoPanel.prototype.start = function (data) {
        this.percentHeight = 100;
        if (data) {
            this.img.source = data.img;
            this.nameTxt.text = data.name;
            this.descTxt.text = data.itemDesc;
        }
    };
    AlbumInfoPanel.prototype.init = function () {
    };
    AlbumInfoPanel.prototype.initEvents = function () {
        this.closeBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
    };
    AlbumInfoPanel.prototype.removeEvents = function () {
        this.closeBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.hidePanel, this);
    };
    return AlbumInfoPanel;
}(Panel_1.default));
exports.default = AlbumInfoPanel;
__reflect(AlbumInfoPanel.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/src/albumPanel/AlbumInfoPanel\".AlbumInfoPanel");
//# sourceMappingURL=AlbumInfoPanel.js.map