

//
// DEPENDENCY CHECKING:
//
if(typeof GLADIATOR_CORE_INCLUDED == 'undefined') alert('NOTA BENE: "gladiatorSVGFormButton.js" REQUIRES "gladiatorCore.js"!');
if(typeof GLADIATOR_SVG_BUTTON_INCLUDED =='undefined') alert('NOTA BENE: "gladiatorSVGFormButton.js" REQUIRES "gladiatorSVGButton.js"!');

var GLADIATOR_SVG_FORM_BUTTON_INCLUDED=true;


//////////////////////////////////////////
//
// gFormButton: Input button field
//
//////////////////////////////////////////
function gSVGFormButton(label,id,clickEventHandler,parentNode){
	
	var _parentComponent = new gFormComponent("",id,parentNode);
	var _thisComponent = _parentComponent.getNode();
	
	var _svgButton = new gSVGButton(label,id,62,2,128,20,7,clickEventHandler,_thisComponent);
	
	////////////////////////
	//
	// PUBLIC METHODS
	//
	////////////////////////
	
	//
	// getNode
	//
	this.getNode = function(){
		
		return _thisComponent;
		
	}
	
	//
	// enable
	//
	this.enable = function(){
		_svgButton.enable();
	}
	
	//
	// disable:
	//
	this.disable = function(){
		_svgButton.disable();
	}
	
	//
	// addEventMethod:
	//
	this.addEventMethod = function(eventMethod){
		
		_svgButton.addEventMethod(eventMethod);
		
	}
	
	//
	// changeLabel:
	//
	this.changeLabel = function(label){
		
		_svgButton.changeLabel(label);
		
	}
	
}

