X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-src%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2FStatusCellRenderer.js;fp=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-src%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2FStatusCellRenderer.js;h=0000000000000000000000000000000000000000;hb=c58a78133506154b20a357921ea48f710f06e1bc;hp=f578d0a6e99cd958824abd59629589bf2de2a720;hpb=22fff321038b028d5bf5c844838e57379c1d5972;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/slc/ria/StatusCellRenderer.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/slc/ria/StatusCellRenderer.js deleted file mode 100644 index f578d0a6e..000000000 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/slc/ria/StatusCellRenderer.js +++ /dev/null @@ -1,63 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2007 OpenHex SPRL, http://www.openhex.org - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Dirk Wellmann (dw(at)piponline.net) - -************************************************************************ */ - -/** - * This Cellrender is for test status use. It create green or red background - * cells depending on the status value (PASSED or FAILED). - */ -qx.Class.define("org.argeo.slc.ria.StatusCellRenderer", -{ - extend : qx.ui.table.cellrenderer.Html, - - construct : function(){ - this.base(arguments); - var style = - [ - ".slc-status-passed{background-color:#8fc98f;color:#008300;border-bottom:1px solid #cccccc;text-align:center;filter:alpha(opacity=80);opacity: 0.8;-moz-opacity:0.8;}", - ".slc-status-failed{background-color:#cb8f8f;color:#830000;border-bottom:1px solid #cccccc;text-align:center;filter:alpha(opacity=80);opacity: 0.8;-moz-opacity:0.8;}" - ]; - // Include stylesheet - qx.bom.Stylesheet.createElement(style.join("")); - }, - - /* - ***************************************************************************** - MEMBERS - ***************************************************************************** - */ - - members : - { - // overridden - _getContentHtml : function(cellInfo) { - return (cellInfo.value || ""); - }, - - // overridden - _getCellClass : function(cellInfo) { - if(cellInfo.value == "PASSED"){ - return "qooxdoo-table-cell slc-status-passed"; - }else if(cellInfo.value == "FAILED"){ - return "qooxdoo-table-cell slc-status-failed"; - }else{ - return "qooxdoo-table-cell"; - } - } - } -});