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 2006/08/29 22:17:30 UTC
svn commit: r438258 - in /incubator/xap/trunk/src/xap/bridges/dojo:
BoxPanelBridge.js DojoWidgetBridge.js FreePanelBridge.js
Author: jmargaris
Date: Tue Aug 29 15:17:29 2006
New Revision: 438258
URL: http://svn.apache.org/viewvc?rev=438258&view=rev
Log:
added freepanel, got rid of non-working boxPanel
Added:
incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js (with props)
Removed:
incubator/xap/trunk/src/xap/bridges/dojo/BoxPanelBridge.js
Modified:
incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
Modified: incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js?rev=438258&r1=438257&r2=438258&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Tue Aug 29 15:17:29 2006
@@ -62,7 +62,7 @@
* XAL properties to their Dojo equivalents
*/
xap.bridges.dojo.DojoWidgetBridge.prototype.getXalToToolkitMapper = function(){
- return {id:"widgetId",x:"left",y:"top",layoutAlign:"layoutAlign"} ;
+ return {id:"widgetId"} ;
}
Added: incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js?rev=438258&view=auto
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js (added)
+++ incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js Tue Aug 29 15:17:29 2006
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+ /**
+ * @fileoverview
+ *
+ * A bridge class that controls a dojo TabContainer peer.
+ */
+
+Xap.provide("xap.bridges.dojo.FreePanelBridge");
+
+Xap.require("xap.bridges.dojo.DojoWidgetBridge");
+Xap.require("xap.components.dojo.FreePanel");
+
+
+
+ /**
+ * @fileoverview
+ *
+ * A bridge class with dojo toolkit box panel peer.
+ */
+
+xap.bridges.dojo.FreePanelBridge= function() {
+ xap.bridges.dojo.DojoWidgetBridge.call(this);
+}
+
+
+Xap.setupClassAsSubclassOf(
+ "xap.bridges.dojo.FreePanelBridge",
+ "xap.bridges.dojo.DojoWidgetBridge"
+);
+
+
+
+xap.bridges.dojo.FreePanelBridge.prototype.getPeerString = function(){
+ return "FreePanel" ;
+}
+
+
+/** XML attribute set method for "width" */
+xap.bridges.dojo.FreePanelBridge.prototype.setWidthAttribute = function(value){
+ this.getRootDomNode().style.width = value ;
+ this.getPeer().onResized();
+}
+
+/** XML attribute set method for "height" */
+xap.bridges.dojo.FreePanelBridge.prototype.setHeightAttribute = function(value){
+ this.getRootDomNode().style.height = value ;
+ this.getPeer().onResized();
+}
+
+
+
+
+/**
+ *
+ *
+ * Attribute definitions
+ *
+ */
+
+
+/**
+ * No new dynamic attributes
+ */
+xap.bridges.dojo.FreePanelBridge.prototype.getNewAllowedAttributes = function(){
+ return [];
+}
+
+
Propchange: incubator/xap/trunk/src/xap/bridges/dojo/FreePanelBridge.js
------------------------------------------------------------------------------
svn:eol-style = native