incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r465119 - in /incubator/xap/trunk/src/xap/widgets/dojo: BorderPanel.js FreePanel.js HorizontalPanel.js HtmlWrapper.js PasswordField.js ScrollPane.js TextArea.js TextField.js TreeTable.js VerticalPanel.js Window.js exampleTable.html
Date Wed, 18 Oct 2006 01:30:35 GMT
Author: jmargaris
Date: Tue Oct 17 18:30:33 2006
New Revision: 465119

URL: http://svn.apache.org/viewvc?view=rev&rev=465119
Log:
Missing copyright

Added:
    incubator/xap/trunk/src/xap/widgets/dojo/Window.js   (with props)
Removed:
    incubator/xap/trunk/src/xap/widgets/dojo/exampleTable.html
Modified:
    incubator/xap/trunk/src/xap/widgets/dojo/BorderPanel.js
    incubator/xap/trunk/src/xap/widgets/dojo/FreePanel.js
    incubator/xap/trunk/src/xap/widgets/dojo/HorizontalPanel.js
    incubator/xap/trunk/src/xap/widgets/dojo/HtmlWrapper.js
    incubator/xap/trunk/src/xap/widgets/dojo/PasswordField.js
    incubator/xap/trunk/src/xap/widgets/dojo/ScrollPane.js
    incubator/xap/trunk/src/xap/widgets/dojo/TextArea.js
    incubator/xap/trunk/src/xap/widgets/dojo/TextField.js
    incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js
    incubator/xap/trunk/src/xap/widgets/dojo/VerticalPanel.js

Modified: incubator/xap/trunk/src/xap/widgets/dojo/BorderPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/BorderPanel.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/BorderPanel.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/BorderPanel.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.VerticalPanel");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/FreePanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/FreePanel.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/FreePanel.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/FreePanel.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.FreePanel");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/HorizontalPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/HorizontalPanel.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/HorizontalPanel.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/HorizontalPanel.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.HorizontalPanel");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/HtmlWrapper.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/HtmlWrapper.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/HtmlWrapper.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/HtmlWrapper.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.HtmlWrapper");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/PasswordField.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/PasswordField.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/PasswordField.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/PasswordField.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.PasswordField");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/ScrollPane.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/ScrollPane.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/ScrollPane.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/ScrollPane.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.ScrollPane");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/TextArea.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/TextArea.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/TextArea.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/TextArea.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.TextArea");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/TextField.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/TextField.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/TextField.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/TextField.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 dojo.provide("xap.widgets.dojo.TextField");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.TreeTable");

Modified: incubator/xap/trunk/src/xap/widgets/dojo/VerticalPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/VerticalPanel.js?view=diff&rev=465119&r1=465118&r2=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/VerticalPanel.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/VerticalPanel.js Tue Oct 17 18:30:33 2006
@@ -1,4 +1,21 @@
-//IMPORTANT move this to some shared area
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
 dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
 
 Xap.provide("xap.widgets.dojo.VerticalPanel");

Added: incubator/xap/trunk/src/xap/widgets/dojo/Window.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/Window.js?view=auto&rev=465119
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/Window.js (added)
+++ incubator/xap/trunk/src/xap/widgets/dojo/Window.js Tue Oct 17 18:30:33 2006
@@ -0,0 +1,126 @@
+/*
+ * 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.
+ *
+ */
+ 
+ //IMPORTANT move this to some shared area
+dojo.widget.manager.registerWidgetPackage("xap.widgets.dojo");
+
+Xap.provide("xap.widgets.dojo.Window");
+
+Xap.require('xap.util.Event');
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.FloatingPane");
+dojo.require("dojo.dom");
+dojo.require("dojo.html");
+dojo.require("dojo.style");
+dojo.require("dojo.event");
+
+dojo.widget.tags.addParseTreeHandler("dojo:Window");
+
+/**
+ * A subclass of floating pane that changes some things around
+ * including differnet minimize behavior and more events.
+ */
+xap.widgets.dojo.Window = function(){
+	dojo.widget.html.FloatingPane.call(this);
+}
+
+dojo.inherits(xap.widgets.dojo.Window,dojo.widget.html.FloatingPane);
+
+dojo.lang.extend(xap.widgets.dojo.Window, {
+	widgetType: "Window",
+	
+	minimizeWindow:function(evt) {
+		
+		if (xap.util.Event.getPreventDefault(evt)){
+			return;
+		}
+		
+		this.previous={
+			width: dojo.style.getOuterWidth(this.domNode) || this.width,
+			height: dojo.style.getOuterHeight(this.domNode) || this.height,
+			left: this.domNode.style.left,
+			top: this.domNode.style.top,
+			bottom: this.domNode.style.bottom,
+			right: this.domNode.style.right
+		};
+		
+		this.resizeTo(this.previous.width, 
+			dojo.style.getOuterHeight(this.titleBar) + dojo.style.getOuterHeight(this.resizeBar));
+		this.minimizeAction.style.display="none";
+		this.restoreAction.style.display="";
+		this.windowState="minimized";
+	},
+	
+	restoreWindow:function(evt){
+		if (xap.util.Event.getPreventDefault(evt)){
+			return;
+		}
+		xap.widgets.dojo.Window.superclass.restoreWindow.call(this,evt);
+		this.minimizeAction.style.display=this.displayMinimizeAction ? "" : "none";
+	},
+	
+	maximizeWindow:function(evt){
+		if (xap.util.Event.getPreventDefault(evt)){
+			return;
+		}
+		
+		xap.widgets.dojo.Window.superclass.maximizeWindow.call(this,evt);
+	},
+	
+	closeWindow:function(evt){
+		if (xap.util.Event.getPreventDefault(evt)){
+			return;
+		}
+		
+		xap.widgets.dojo.Window.superclass.closeWindow.call(this,evt);
+	}
+});
+
+
+dojo.require("dojo.html.shadow");
+dojo.require("dojo.lang");
+dojo.require("dojo.uri");
+
+//IMPORTANT dojo workaround for dropshadow drawing on 3 sides of object
+dojo.html.shadow.prototype.init = function(node){
+	this.node=node;
+
+	// make all the pieces of the shadow, and position/size them as much
+	// as possible (but a lot of the coordinates are set in sizeShadow
+	this.pieces={};
+	var x1 = -1 * this.shadowThickness;
+	var y0 = this.shadowOffset;
+	var y1 = this.shadowOffset + this.shadowThickness;
+	this._makePiece("tr", "top", y0, "left", 0);
+	this._makePiece("r", "top", y1, "left", 0, "scale");
+	this._makePiece("b", "top", 0, "left", -x1, "crop");
+	this._makePiece("br", "top", 0, "left", 0);
+}
+
+
+dojo.html.shadow.prototype.size = function(width, height){
+	var sideHeight = height - (this.shadowOffset+this.shadowThickness+1);
+	with(this.pieces){
+		r.style.height = sideHeight+"px";
+		b.style.width = (width-1-this.shadowThickness)+"px";
+		b.style.top = (height-1)+"px";
+		br.style.top = (height-1)+"px";
+		tr.style.left = (width-1)+"px";
+		r.style.left = (width-1)+"px";
+		br.style.left = (width-1)+"px";
+	}
+}
\ No newline at end of file

Propchange: incubator/xap/trunk/src/xap/widgets/dojo/Window.js
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message