obids.Table=function(){};obids.Table.Viewer=function(a,c,b){obids.Table.Viewer.baseConstructor.call(this,a,c,b)};extend(obids.Table.Viewer,obips.Table.Viewer);obids.Table.Viewer.prototype.createColumnHeadingViewer=function(a,b){return new obids.Table.ColumnHeadingViewer(a,b)};obids.Table.Viewer.prototype.createController=function(){return new obids.Table.Controller(this)};obids.Table.Viewer.prototype.createRowViewer=function(a,b,c){return new obids.Table.RowViewer(this,a,b,c)};obids.Table.Viewer.prototype.createCellViewer=function(b,a){return new obids.Table.CellViewer(b,a)};obids.Table.Controller=function(a){obids.Table.Controller.baseConstructor.call(this,a)};extend(obids.Table.Controller,obips.Table.Controller);obids.Table.Controller.prototype._rowKeyDownHandler=function(a){if((a.target.nodeName=="INPUT")||(a.target.nodeName=="TD"&&a.target.style.cursor=="pointer")){return}if((a.target.className.indexOf("tableRowHeader")!=-1)&&(a.keyCode==32)){var b=obips.Table.Viewer.getRowViewerFromEvent(a);if(b){this.clickOnRowHandler(b,a)}obips.BrowserEventFramework.cancelBubble(a);a.returnValue=false;return}obids.Table.Controller.superClass._rowKeyDownHandler.call(this,a)};obids.Table.RowViewer=function(b,a,c,d){obids.Table.RowViewer.baseConstructor.call(this,b,a,c,d);if(!this.isPadding){this.rowHeader.tabIndex=0}};extend(obids.Table.RowViewer,obips.Table.RowViewer);obids.Table.CellViewer=function(b,a){obids.Table.CellViewer.baseConstructor.call(this,b,a);if(!b.isPadding){this.tableCell.tabIndex=-1}};extend(obids.Table.CellViewer,obips.Table.CellViewer);obids.Table.ColumnHeadingViewer=function(a,b){obids.Table.ColumnHeadingViewer.baseConstructor.call(this,a,b);if(this.columnModel.dataType==obips.Table.ColumnModel.DataType.IMAGE||this.columnModel.dataType==obips.Table.ColumnModel.DataType.CHECKBOX){this.headingCell.style.textAlign="center"}};extend(obids.Table.ColumnHeadingViewer,obips.Table.ColumnHeadingViewer);obids.Table.ColumnHeadingViewer.prototype.displayColumnHeading=function(){var d=document.createElement("div");var c=obids.Table.ColumnHeadingViewer.superClass.displayColumnHeading.call(this);if(this.columnModel.mandatory){var a=document.createElement("span");a.className="required";a.appendChild(document.createTextNode("* "));d.appendChild(a)}d.appendChild(c);if(this.columnModel.helpInfo){var b=document.createElement("img");b.src=obiaf.ActionsBase.getImageURL("uicomponents/infoTip.gif");b.alt="";b.style.marginLeft="2px";b.align="absmiddle";d.appendChild(b);obids.Utils.addInfoBubble(b,new obips.Callback(this,this.populateHelpInfo))}return d};obids.Table.ColumnHeadingViewer.prototype.populateHelpInfo=function(a){obids.Utils.displayInfo(a,this.columnModel.helpInfo)};