[qooxdoo-commit] SF.net SVN: qooxdoo:[17505] trunk/qooxdoo/framework/source/class/qx/ui/ virtual/co
Brought to you by:
ecker,
martinwittemann
From: <fj...@us...> - 2009-01-30 18:27:16
|
Revision: 17505 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=17505&view=rev Author: fjakobs Date: 2009-01-30 18:27:08 +0000 (Fri, 30 Jan 2009) Log Message: ----------- [BUG #1845 NEW]: Create infrastructure for virtual widgets http://bugzilla.qooxdoo.org/show_bug.cgi?id=1845 add scroll events to the pane Modified Paths: -------------- trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Pane.js trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Scroller.js Modified: trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Pane.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Pane.js 2009-01-30 18:15:53 UTC (rev 17504) +++ trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Pane.js 2009-01-30 18:27:08 UTC (rev 17505) @@ -59,20 +59,15 @@ events : { /** Fired on resize of either the container or the (virtual) content. */ - "update" : "qx.event.type.Event", + update : "qx.event.type.Event", + + scrollX : "qx.event.type.Data", - /** Dispatched when a data cell has been clicked. */ - "cellClick" : "qx.ui.table.pane.CellEvent", - - /** Dispatched when a data cell has been clicked. */ - "cellDblclick" : "qx.ui.table.pane.CellEvent", - - /** Dispatched when the context menu is needed in a data cell */ - "cellContextmenu" : "qx.ui.table.pane.CellEvent" + scrollY : "qx.event.type.Data" }, - /* + /* ***************************************************************************** PROPERTIES ***************************************************************************** @@ -210,9 +205,11 @@ } if (this.__scrollTop !== value) - { + { + var old = this.__scrollTop; this.__scrollTop = value; this.updateScrollPosition(); + this.fireDataEvent("scrollY", value, old); } }, @@ -243,9 +240,12 @@ } if (value !== this.__scrollLeft) - { + { + var old = this.__scrollLeft; this.__scrollLeft = value; this.updateScrollPosition(); + + this.fireDataEvent("scrollX", value, old); } }, Modified: trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Scroller.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Scroller.js 2009-01-30 18:15:53 UTC (rev 17504) +++ trunk/qooxdoo/framework/source/class/qx/ui/virtual/core/Scroller.js 2009-01-30 18:27:08 UTC (rev 17505) @@ -37,7 +37,10 @@ this.base(arguments); this.pane = new qx.ui.virtual.core.Pane(rowCount, columnCount, cellHeight, cellWidth); - this.pane.addListener("update", this._computeScrollbars, this); + this.pane.addListener("update", this._computeScrollbars, this); + this.pane.addListener("scrollX", this._onScrollPaneX, this); + this.pane.addListener("scrollY", this._onScrollPaneY, this); + this._add(this.pane, {row: 0, column: 0}); }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |