/** * Class Description * @namespace FIRSTCLASS.apps * @module Tasks * @requires * @optional * @title */ /** * Constructor definition * @class Tasks * @constructor * @param {Object} config (required) the configuration object * @param {HTMLElement} config.domElement (required) the DOM Element to load into * @param {FIRSTCLASS.util.DataSource} config.dataSource (required) the DataSource to bind to */ FIRSTCLASS.apps.Tasks = function(config) { this._domElement = config.domElement; this._dataSource = config.dataSource; FIRSTCLASS.session.setActiveApplication(this, "tasks"); this._yds = this._dataSource.getYAHOOUtilDataSource(); var columns = this._dataSource.getColumns(); var ycoldef = []; for (var j = 0; j < columns.length; j++) { ycoldef.push({"key":columns[j]}); } this._datatable = new YAHOO.widget.DataTable(this._domElement, ycoldef, this._yds); }; /** * Public static variables definitions */ /** * Property Comment, describe it here * * @property * @type * @default */ //FIRSTCLASS.apps.Tasks. = ; /** * Private member variables * * Private variables are identified by the convention of naming them with a leading underscore. * i.e. this._privateVariable */ /** * Variable Comment, describe it here * * @property _ * @type * @default */ FIRSTCLASS.apps.Tasks.prototype._dataSource = null; FIRSTCLASS.apps.Tasks.prototype._domElement = null; /** * Public member variables */ /** * Variable Comment, describe it here * * @property * @type * @default */ //FIRSTCLASS.apps.Tasks.prototype. = ; /** * Public Static Method Definitions */ /** * Method Comment, describe it here * * @Method Tasks. * @param {} paramname * @param ... * @return {} * @static */ //FIRSTCLASS.apps.Tasks. = function() { //}; /** * Public method definitions */ /** * Method Comment, describe it here * * @Method Tasks. * @param {} paramname * @param ... * @return {} */ //FIRSTCLASS.apps.Tasks.prototype. = function() { //}; YAHOO.register("fcTasks", FIRSTCLASS.apps.Tasks, {version: "0.0.1", build: "1"});