File: /home/padewitte/projets/webcomponents/myscript-js/src/input/generic/components/abstractComponent.js
'use strict';
(function (scope) {
/**
* Represent an abstract input component
*
* @class AbstractComponent
* @constructor
*/
function AbstractComponent() {
}
/**
* Get the type of the input component
*
* @method getType
* @returns {String}
*/
AbstractComponent.prototype.getType = function () {
return this.type;
};
/**
* Set the type of the input component
*
* @method setType
* @param {String} type
*/
AbstractComponent.prototype.setType = function (type) {
this.type = type;
};
/**
* Get input component bounding-box
*
* @method getBoundingBox
* @returns {Rectangle}
*/
AbstractComponent.prototype.getBoundingBox = function () {
throw new Error('not implemented');
};
/**
* Set input component bounding-box
*
* @method setBoundingBox
* @param {Rectangle} boundingBox
*/
AbstractComponent.prototype.setBoundingBox = function (boundingBox) { // jshint ignore:line
throw new Error('not implemented');
};
// Export
scope.AbstractComponent = AbstractComponent;
})(MyScript);