﻿
Type.registerNamespace("ITkey.Web.UI");

ITkey.Web.UI.InputValueChangedEventArgs = function(newValue, oldValue) 
{
	ITkey.Web.UI.InputValueChangedEventArgs.initializeBase(this);
	this._newValue = newValue;
	this._oldValue = oldValue;
}

ITkey.Web.UI.InputValueChangedEventArgs.prototype = 
{
	get_oldValue : function ()
	{
		return this._oldValue;
	},
	
	get_newValue : function ()
	{
		return this._newValue;
	}
}

//$ITkey.makeCompatible(ITkey.Web.UI.InputValueChangedEventArgs);
ITkey.Web.UI.InputValueChangedEventArgs.registerClass('ITkey.Web.UI.InputValueChangedEventArgs', Sys.CancelEventArgs);

ITkey.Web.UI.InputValueChangingEventArgs = function(newValue, oldValue) 
{
	ITkey.Web.UI.InputValueChangingEventArgs.initializeBase(this, [newValue, oldValue]);
}

ITkey.Web.UI.InputValueChangingEventArgs.prototype = 
{
    set_newValue : function(value) 
    {
        if (this._newValue !== value) {
            this._newValue = value;
        }
    }	
}

//$ITkey.makeCompatible(ITkey.Web.UI.InputValueChangingEventArgs);
ITkey.Web.UI.InputValueChangingEventArgs.registerClass('ITkey.Web.UI.InputValueChangingEventArgs', ITkey.Web.UI.InputValueChangedEventArgs);

ITkey.Web.UI.MaskedTextBoxEventArgs = function(newValue, oldValue, chunk)
{
    ITkey.Web.UI.MaskedTextBoxEventArgs.initializeBase(this);
   
    this._newValue = newValue;
	this._oldValue = oldValue;
    this._chunk = chunk;
}

ITkey.Web.UI.MaskedTextBoxEventArgs.prototype = 
{
	get_oldValue : function ()
	{
		return this._oldValue;
	},
	
	get_newValue : function ()
	{
		return this._newValue;
	},
	
    get_currentPart : function()
    {
        return this._chunk;
    }
}

//$ITkey.makeCompatible(ITkey.Web.UI.MaskedTextBoxEventArgs);
ITkey.Web.UI.MaskedTextBoxEventArgs.registerClass("ITkey.Web.UI.MaskedTextBoxEventArgs", Sys.CancelEventArgs);

ITkey.Web.UI.InputKeyPressEventArgs = function(domEvent, keyCode, keyCharacter) 
{
	ITkey.Web.UI.InputKeyPressEventArgs.initializeBase(this);

	this._domEvent = domEvent;
	this._keyCode = keyCode;
	this._keyCharacter = keyCharacter;
}

ITkey.Web.UI.InputKeyPressEventArgs.prototype = 
{
	get_domEvent : function ()
	{
		return this._domEvent;
	},
	get_keyCode : function ()
	{
		return this._keyCode;
	},
    get_keyCharacter : function ()
	{
		return this._keyCharacter;
	}
}

//$ITkey.makeCompatible(ITkey.Web.UI.InputKeyPressEventArgs);
ITkey.Web.UI.InputKeyPressEventArgs.registerClass('ITkey.Web.UI.InputKeyPressEventArgs', Sys.CancelEventArgs);

ITkey.Web.UI.InputButtonClickEventArgs = function(buttonType) 
{
	ITkey.Web.UI.InputButtonClickEventArgs.initializeBase(this);

	this._buttonType = buttonType;
}

ITkey.Web.UI.InputButtonClickEventArgs.prototype = 
{
	get_buttonType : function ()
	{
		return this._buttonType;
	}
}

//$ITkey.makeCompatible(ITkey.Web.UI.InputButtonClickEventArgs);
ITkey.Web.UI.InputButtonClickEventArgs.registerClass('ITkey.Web.UI.InputButtonClickEventArgs', Sys.CancelEventArgs);

ITkey.Web.UI.InputErrorEventArgs = function(reason, inputText)
{
    ITkey.Web.UI.InputErrorEventArgs.initializeBase(this);
    
    this._reason = reason;
	this._inputText = inputText;
}

ITkey.Web.UI.InputErrorEventArgs.prototype = 
{
    get_reason : function ()
	{
		return this._reason;
	},
    get_inputText : function ()
	{
		return this._inputText;
	}
}

//$ITkey.makeCompatible(ITkey.Web.UI.InputErrorEventArgs);
ITkey.Web.UI.InputErrorEventArgs.registerClass("ITkey.Web.UI.InputErrorEventArgs", Sys.CancelEventArgs);

ITkey.Web.UI.NumericInputErrorEventArgs = function(reason, inputText, keyCode, keyCharacter) 
{
	ITkey.Web.UI.NumericInputErrorEventArgs.initializeBase(this, [reason, inputText]);
	
	this._keyCode = keyCode;
	this._keyCharacter = keyCharacter;
}

ITkey.Web.UI.NumericInputErrorEventArgs.prototype = 
{
    get_reason : function ()
	{
		return this._reason;
	},
    get_inputText : function ()
	{
		return this._inputText;
	},
    get_keyCode : function ()
	{
		return this._keyCode;
	},
    get_keyCharacter : function ()
	{
		return this._keyCharacter;
	}
}

//$ITkey.makeCompatible(ITkey.Web.UI.NumericInputErrorEventArgs);
ITkey.Web.UI.NumericInputErrorEventArgs.registerClass('ITkey.Web.UI.NumericInputErrorEventArgs', ITkey.Web.UI.InputErrorEventArgs);



ITkey.Web.UI.InputManagerKeyPressEventArgs = function(domEvent, keyCode, keyCharacter, targetInput) 
{
	ITkey.Web.UI.InputManagerKeyPressEventArgs.initializeBase(this, [domEvent, keyCode, keyCharacter]);

	this._targetInput = targetInput;
}

ITkey.Web.UI.InputManagerKeyPressEventArgs.prototype = 
{
	get_targetInput : function ()
	{
		return this._targetInput;
	}
}

ITkey.Web.UI.InputManagerKeyPressEventArgs.registerClass('ITkey.Web.UI.InputManagerKeyPressEventArgs', ITkey.Web.UI.InputKeyPressEventArgs);


ITkey.Web.UI.InputManagerEventArgs = function(targetInput, domEvent) 
{
	ITkey.Web.UI.InputManagerEventArgs.initializeBase(this);

	this._targetInput = targetInput;
	this._domEvent = domEvent;
}

ITkey.Web.UI.InputManagerEventArgs.prototype = 
{
	get_targetInput : function ()
	{
		return this._targetInput;
	},
	get_domEvent : function ()
	{
		return this._domEvent;
	}	
}

ITkey.Web.UI.InputManagerEventArgs.registerClass('ITkey.Web.UI.InputManagerEventArgs', Sys.EventArgs);


ITkey.Web.UI.InputManagerErrorEventArgs = function(reason, inputText, targetInput) 
{
	ITkey.Web.UI.InputManagerErrorEventArgs.initializeBase(this, [reason, inputText]);

	this._targetInput = targetInput;
}

ITkey.Web.UI.InputManagerErrorEventArgs.prototype = 
{
	get_targetInput : function ()
	{
		return this._targetInput;
	},
	set_inputText : function (value)
	{
		this._inputText = value;
	}	
}

ITkey.Web.UI.InputManagerErrorEventArgs.registerClass('ITkey.Web.UI.InputManagerErrorEventArgs', ITkey.Web.UI.InputErrorEventArgs);



ITkey.Web.UI.NumericInputManagerErrorEventArgs = function(reason, inputText, keyCode, keyCharacter, targetInput) 
{
	ITkey.Web.UI.NumericInputManagerErrorEventArgs.initializeBase(this, [reason, inputText, keyCode, keyCharacter]);
	this._targetInput = targetInput;
}

ITkey.Web.UI.NumericInputManagerErrorEventArgs.prototype = 
{
	get_targetInput : function ()
	{
		return this._targetInput;
	}
}

ITkey.Web.UI.NumericInputManagerErrorEventArgs.registerClass('ITkey.Web.UI.NumericInputManagerErrorEventArgs', ITkey.Web.UI.NumericInputErrorEventArgs);







if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();