diff options
author | Derrell Lipman <derrell@samba.org> | 2007-01-03 19:57:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:36:06 -0500 |
commit | 2e7c59c24470766e37309c7a8bfa4c7b81c57614 (patch) | |
tree | c44c89911868c52f25ca66bdefa68e13248db8e6 /webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js | |
parent | 57f5bf78fa9fc9d190c3cb25251e686a1488f790 (diff) | |
download | samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.gz samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.bz2 samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.zip |
r20515: Continued work on the Web Application Framework. Until we get all of the
functionality of the old scripts incorporated into the new framework, the old
scripts need to still be available. I've reverted to having the old scripts
be the default pages, and added an option to access the preview of the new
SWAT.
(This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4)
Diffstat (limited to 'webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js')
-rw-r--r-- | webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js deleted file mode 100644 index d3d7950bd5..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/AbstractDataCellRenderer.js +++ /dev/null @@ -1,127 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2006 by STZ-IDA, Germany, http://www.stz-ida.de - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Til Schneider (til132) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_table) - -************************************************************************ */ - -/** - * An abstract data cell renderer that does the basic coloring - * (borders, selected look, ...). - */ -qx.OO.defineClass("qx.ui.table.AbstractDataCellRenderer", qx.ui.table.DataCellRenderer, -function() { - qx.ui.table.DataCellRenderer.call(this); -}); - - -// overridden -qx.Proto.createDataCellHtml = function(cellInfo) { - var AbstractDataCellRenderer = qx.ui.table.AbstractDataCellRenderer; - return AbstractDataCellRenderer.MAIN_DIV_START + this._getCellStyle(cellInfo) - + AbstractDataCellRenderer.MAIN_DIV_START_END - + this._getContentHtml(cellInfo) + AbstractDataCellRenderer.MAIN_DIV_END; -} - - -// overridden -qx.Proto.updateDataCellElement = function(cellInfo, cellElement) { - cellElement.innerHTML = this._getContentHtml(cellInfo); -} - - -/** - * Returns the CSS styles that should be applied to the main div of this cell. - * - * @param cellInfo {Map} The information about the cell. - * See {@link #createDataCellHtml}. - * @return the CSS styles of the main div. - */ -qx.Proto._getCellStyle = function(cellInfo) { - return cellInfo.style + qx.ui.table.AbstractDataCellRenderer.MAIN_DIV_STYLE; -} - - -/** - * Returns the HTML that should be used inside the main div of this cell. - * - * @param cellInfo {Map} The information about the cell. - * See {@link #createDataCellHtml}. - * @return {string} the inner HTML of the main div. - */ -qx.Proto._getContentHtml = function(cellInfo) { - return cellInfo.value; -} - - -qx.Proto.createDataCellHtml_array_join = function(cellInfo, htmlArr) { - var AbstractDataCellRenderer = qx.ui.table.AbstractDataCellRenderer; - - if (qx.ui.table.TablePane.USE_TABLE) { - htmlArr.push(AbstractDataCellRenderer.TABLE_TD); - htmlArr.push(cellInfo.styleHeight); - htmlArr.push("px"); - } else { - htmlArr.push(AbstractDataCellRenderer.ARRAY_JOIN_MAIN_DIV_LEFT); - htmlArr.push(cellInfo.styleLeft); - htmlArr.push(AbstractDataCellRenderer.ARRAY_JOIN_MAIN_DIV_WIDTH); - htmlArr.push(cellInfo.styleWidth); - htmlArr.push(AbstractDataCellRenderer.ARRAY_JOIN_MAIN_DIV_HEIGHT); - htmlArr.push(cellInfo.styleHeight); - htmlArr.push("px"); - } - - this._createCellStyle_array_join(cellInfo, htmlArr); - - htmlArr.push(AbstractDataCellRenderer.ARRAY_JOIN_MAIN_DIV_START_END); - - this._createContentHtml_array_join(cellInfo, htmlArr); - - if (qx.ui.table.TablePane.USE_TABLE) { - htmlArr.push(AbstractDataCellRenderer.TABLE_TD_END); - } else { - htmlArr.push(AbstractDataCellRenderer.ARRAY_JOIN_MAIN_DIV_END); - } -} - - -qx.Proto._createCellStyle_array_join = function(cellInfo, htmlArr) { - htmlArr.push(qx.ui.table.AbstractDataCellRenderer.MAIN_DIV_STYLE); -} - - -qx.Proto._createContentHtml_array_join = function(cellInfo, htmlArr) { - htmlArr.push(cellInfo.value); -} - - -qx.Class.MAIN_DIV_START = '<div style="'; -qx.Class.MAIN_DIV_START_END = '">'; -qx.Class.MAIN_DIV_END = '</div>'; -qx.Class.MAIN_DIV_STYLE = ';overflow:hidden;white-space:nowrap;border-right:1px solid #eeeeee;border-bottom:1px solid #eeeeee;padding-left:2px;padding-right:2px;cursor:default' - + (qx.sys.Client.getInstance().isMshtml() ? '' : ';-moz-user-select:none;'); - -qx.Class.ARRAY_JOIN_MAIN_DIV_LEFT = '<div style="position:absolute;left:'; -qx.Class.ARRAY_JOIN_MAIN_DIV_WIDTH = 'px;top:0px;width:'; -qx.Class.ARRAY_JOIN_MAIN_DIV_HEIGHT = 'px;height:'; -qx.Class.ARRAY_JOIN_MAIN_DIV_START_END = '">'; -qx.Class.ARRAY_JOIN_MAIN_DIV_END = '</div>'; - -qx.Class.TABLE_TD = '<td style="height:'; -qx.Class.TABLE_TD_END = '</td>';
\ No newline at end of file |