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/DefaultDataRowRenderer.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/DefaultDataRowRenderer.js')
-rw-r--r-- | webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/DefaultDataRowRenderer.js | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/DefaultDataRowRenderer.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/DefaultDataRowRenderer.js deleted file mode 100644 index 8fd2198cd4..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/table/DefaultDataRowRenderer.js +++ /dev/null @@ -1,106 +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) - -************************************************************************ */ - -/** - * The default data row renderer. - */ -qx.OO.defineClass("qx.ui.table.DefaultDataRowRenderer", qx.ui.table.DataRowRenderer, -function() { - qx.ui.table.DataRowRenderer.call(this); -}); - - -/** Whether the focused row should be highlighted. */ -qx.OO.addProperty({ name:"highlightFocusRow", type:"boolean", allowNull:false, defaultValue:true}); - -/** - * Whether the focused row and the selection should be grayed out when the table - * hasn't the focus. - */ -qx.OO.addProperty({ name:"visualizeFocusedState", type:"boolean", allowNull:false, defaultValue:true}); - - -// overridden -qx.Proto.updateDataRowElement = function(rowInfo, rowElem) { - var clazz = qx.ui.table.DefaultDataRowRenderer; - - if (rowInfo.focusedRow && this.getHighlightFocusRow()) { - if (rowInfo.table.getFocused() || !this.getVisualizeFocusedState()) { - rowElem.style.backgroundColor = rowInfo.selected ? clazz.BGCOL_FOCUSED_SELECTED : clazz.BGCOL_FOCUSED; - } else { - rowElem.style.backgroundColor = rowInfo.selected ? clazz.BGCOL_FOCUSED_SELECTED_BLUR : clazz.BGCOL_FOCUSED_BLUR; - } - } else { - if (rowInfo.selected) { - if (rowInfo.table.getFocused() || !this.getVisualizeFocusedState()) { - rowElem.style.backgroundColor = clazz.BGCOL_SELECTED; - } else { - rowElem.style.backgroundColor = clazz.BGCOL_SELECTED_BLUR; - } - } else { - rowElem.style.backgroundColor = (rowInfo.row % 2 == 0) ? clazz.BGCOL_EVEN : clazz.BGCOL_ODD; - } - } - rowElem.style.color = rowInfo.selected ? clazz.COL_SELECTED : clazz.COL_NORMAL; -} - - -qx.Proto._createRowStyle_array_join = function(rowInfo, htmlArr) { - var clazz = qx.ui.table.DefaultDataRowRenderer; - - htmlArr.push(clazz.ARRAY_JOIN_BG_COLOR); - if (rowInfo.focusedRow && this.getHighlightFocusRow()) { - if (rowInfo.table.getFocused() || !this.getVisualizeFocusedState()) { - htmlArr.push(rowInfo.selected ? clazz.BGCOL_FOCUSED_SELECTED : clazz.BGCOL_FOCUSED); - } else { - htmlArr.push(rowInfo.selected ? clazz.BGCOL_FOCUSED_SELECTED_BLUR : clazz.BGCOL_FOCUSED_BLUR); - } - } else { - if (rowInfo.selected) { - if (rowInfo.table.getFocused() || !this.getVisualizeFocusedState()) { - htmlArr.push(clazz.BGCOL_SELECTED); - } else { - htmlArr.push(clazz.BGCOL_SELECTED_BLUR); - } - } else { - htmlArr.push((rowInfo.row % 2 == 0) ? clazz.BGCOL_EVEN : clazz.BGCOL_ODD); - } - } - htmlArr.push(clazz.ARRAY_JOIN_COLOR); - htmlArr.push(rowInfo.selected ? clazz.COL_SELECTED : clazz.COL); -} - - -qx.Class.BGCOL_FOCUSED_SELECTED = "#5a8ad3"; -qx.Class.BGCOL_FOCUSED_SELECTED_BLUR = "#b3bac6"; -qx.Class.BGCOL_FOCUSED = "#ddeeff"; -qx.Class.BGCOL_FOCUSED_BLUR = "#dae0e7"; -qx.Class.BGCOL_SELECTED = "#335ea8"; -qx.Class.BGCOL_SELECTED_BLUR = "#989ea8"; -qx.Class.BGCOL_EVEN = "#faf8f3"; -qx.Class.BGCOL_ODD = "white"; -qx.Class.COL_SELECTED = "white"; -qx.Class.COL_NORMAL = "black"; - -qx.Class.ARRAY_JOIN_BG_COLOR = ";background-color:"; -qx.Class.ARRAY_JOIN_COLOR = ';color:'; |