﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("MXA.Website.Kaldenbroeck");

MXA.Website.Kaldenbroeck.View = function (element) {

    MXA.Website.Kaldenbroeck.View.initializeBase(this, [element]);
    this.addCssClass('View');
    this._datasource = null;
}

MXA.Website.Kaldenbroeck.View.prototype =
{

    initialize: function () {
        MXA.Website.Kaldenbroeck.View.callBaseMethod(this, 'initialize');
        var _this = this;
    },

    setPath: function(value) {


    },

    updatePath: function() {

    },

    setSize: function () {

    },

    dispose: function () {
        MXA.Website.Kaldenbroeck.View.callBaseMethod(this, 'dispose');
    },

    set_datasource: function (value) {
        this._datasource = value;
    },

    databind: function () {
    },

    hide: function () {
        $(this._element).removeClass('active');
    },

    show: function () {
        if ($(this._element).hasClass('active') == false) {
            $(this._element).addClass('active');
        }
    },

    clear: function () {

    },

    raiseEvent: function (eventName, eventArgs) {

        var handler = this.get_events().getHandler(eventName);
        if (handler) {
            handler(this, eventArgs);
        }

    }
}



MXA.Website.Kaldenbroeck.View.registerClass('MXA.Website.Kaldenbroeck.View', Sys.UI.Control);
