You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/10/31 21:40:36 UTC
svn commit: r590845 - in /incubator/xap/trunk/codebase/src/xap/bridges/dojo:
RowBridge.js TableBridge.js
Author: jmargaris
Date: Wed Oct 31 14:40:35 2007
New Revision: 590845
URL: http://svn.apache.org/viewvc?rev=590845&view=rev
Log:
From Michael Mikhaylov: Row visible attribute fix, faster table rendering changes.
Modified:
incubator/xap/trunk/codebase/src/xap/bridges/dojo/RowBridge.js
incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/RowBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/RowBridge.js?rev=590845&r1=590844&r2=590845&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/RowBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/RowBridge.js Wed Oct 31 14:40:35 2007
@@ -51,12 +51,16 @@
this.setPeer(new xap.widgets.dojo.TableRow());
}
+xap.bridges.dojo.RowBridge.prototype.getRootDomNode = function() {
+ var peer = this.getPeer();
+ return peer ? peer.domNode : null;
+}
/**
* dynamic attributes
*/
xap.bridges.dojo.RowBridge.prototype.getNewAllowedAttributes = function(){
- return ["selected", "expanded"];
+ return ["selected", "expanded", "visible"];
}
xap.bridges.dojo.RowBridge.prototype.setSelectedAttribute = function( value ){
@@ -65,6 +69,11 @@
xap.bridges.dojo.RowBridge.prototype.setExpandedAttribute = function( value ){
this.getPeer().setExpanded(value=="true");
+}
+
+
+xap.bridges.dojo.RowBridge.prototype.setVisibleAttribute = function( value ){
+ this.getPeer().setVisible(value=="true");
}
Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js?rev=590845&r1=590844&r2=590845&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js Wed Oct 31 14:40:35 2007
@@ -61,18 +61,23 @@
} finally {
peer.endChildrenChanges(false);
}
+ dojo.lang.setTimeout(peer, peer._resizeTable, 0);
}
xap.bridges.dojo.TableBridge.prototype.init = function() {
+
xap.bridges.dojo.DojoWidgetBridge.prototype.init.call(this);
+
+
+
dojo.event.connect(this.getPeer(), "onActivateRow",this,"onActivateRow");
dojo.event.connect(this.getPeer(), "onSelectRow",this,"onSelectRow");
dojo.event.connect(this.getPeer(), "onDeselectRow",this,"onDeselectRow");
dojo.event.connect(this.getPeer(), "onExpandRow",this,"onExpandRow");
this._localCssRules = {};
- this.getPeer()._rebuildTableLater();
+
};
xap.bridges.dojo.TableBridge.prototype.getPeerString = function(){