incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r506724 - /incubator/xap/trunk/samples/WebContent/examples/widgets/index.html
Date Mon, 12 Feb 2007 22:42:48 GMT
Author: mturyn
Date: Mon Feb 12 14:42:47 2007
New Revision: 506724

URL: http://svn.apache.org/viewvc?view=rev&rev=506724
Log:
Minor changes to make it easier to debug widgets---now loads widget pages using a function
which in turn turns debugging on or off, depending on the state of a checkbox at the bottom
of the page.

Modified:
    incubator/xap/trunk/samples/WebContent/examples/widgets/index.html

Modified: incubator/xap/trunk/samples/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/index.html?view=diff&rev=506724&r1=506723&r2=506724
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/index.html Mon Feb 12 14:42:47
2007
@@ -19,48 +19,67 @@
 
 <body>
 
+<script language="JavaScript">
+	loadXalFile = function(str,args){
+		var newLoc = "widget_loader.html?xalFile="+str+".xal" ;
+		for( var ii=0; args && ii< args.length; ++ii){
+			newLoc += "&"+escape(args[ii]) ;
+		}
+		var debugP = document.getElementById("debugP") ;
+		if(debugP && debugP.checked){
+			newLoc += "&debug=all" ;
+		}
+		location.href = newLoc ;
+	}
+	
+	
+	
+</script>
+
+
 <h2>Component Tests</h2>
 Note - these load slow since there is a lot of testing code along with the widget<br/>
+
 <ul>
-<li><a href="widget_loader.html?xalFile=button.xal">&lt;button&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=label.xal">&lt;label&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=link.xal">&lt;link&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=checkBox.xal">&lt;checkBox&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=radioButton.xal">&lt;radioButton&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=combobox.xal">&lt;comboBox&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=editableCombobox.xal">&lt;editableComboBox&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=listbox.xal">&lt;listbox&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=textField.xal">&lt;textField&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=textArea.xal">&lt;textArea&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=passwordField.xal">&lt;passwordField&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=htmlView.xal">&lt;htmlView&gt;/&lt;textView&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=tabPane.xal">&lt;tabPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=horizontalSplitPane.xal">&lt;horizontalSplitPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=verticalSplitPane.xal">&lt;verticalSplitPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=freePane.xal">&lt;freePane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=verticalBoxPane.xal">&lt;verticalBoxPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=horizontalBoxPane.xal">&lt;horizontalBoxPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=borderPane.xal">&lt;borderPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=table.xal">&lt;table&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=row.xal">&lt;row&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=cell.xal">&lt;cell&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=tree.xal">&lt;tree&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=treeTable.xal">&lt;treeTable&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=menu.xal">&lt;menu&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=popupMenu.xal">&lt;popupMenu&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=tooltip.xal">&lt;tooltip&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=window.xal">&lt;window&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=horizontalFlowPane.xal">&lt;horizontalFlowPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=scrollPane.xal">&lt;scrollPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=desktopPane.xal">&lt;desktopPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=verticalToolBar.xal">&lt;verticalToolBar&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=horizontalToolBar.xal">&lt;horizontalToolBar&gt;</a></li>
+<li><a href="javascript:loadXalFile('button')">&lt;button&gt;</a></li>
+<li><a href="javascript:loadXalFile('label')">&lt;label&gt;</a></li>
+<li><a href="javascript:loadXalFile('link')">&lt;link&gt;</a></li>
+<li><a href="javascript:loadXalFile('checkBox')">&lt;checkBox&gt;</a></li>
+<li><a href="javascript:loadXalFile('radioButton')">&lt;radioButton&gt;</a></li>
+<li><a href="javascript:loadXalFile('combobox')">&lt;comboBox&gt;</a></li>
+<li><a href="javascript:loadXalFile('editableCombobox')">&lt;editableComboBox&gt;</a></li>
+<li><a href="javascript:loadXalFile('listbox')">&lt;listbox&gt;</a></li>
+<li><a href="javascript:loadXalFile('textField')">&lt;textField&gt;</a></li>
+<li><a href="javascript:loadXalFile('textArea')">&lt;textArea&gt;</a></li>
+<li><a href="javascript:loadXalFile('passwordField')">&lt;passwordField&gt;</a></li>
+<li><a href="javascript:loadXalFile('htmlView')">&lt;htmlView&gt;/&lt;textView&gt;</a></li>
+<li><a href="javascript:loadXalFile('tabPane')">&lt;tabPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('horizontalSplitPane')">&lt;horizontalSplitPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('verticalSplitPane')">&lt;verticalSplitPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('freePane')">&lt;freePane&gt;</a></li>
+<li><a href="javascript:loadXalFile('verticalBoxPane')">&lt;verticalBoxPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('horizontalBoxPane')">&lt;horizontalBoxPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('borderPane')">&lt;borderPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('table')">&lt;table&gt;</a></li>
+<li><a href="javascript:loadXalFile('row')">&lt;row&gt;</a></li>
+<li><a href="javascript:loadXalFile('cell')">&lt;cell&gt;</a></li>
+<li><a href="javascript:loadXalFile('tree')">&lt;tree&gt;</a></li>
+<li><a href="javascript:loadXalFile('treeTable')">&lt;treeTable&gt;</a></li>
+<li><a href="javascript:loadXalFile('menu')">&lt;menu&gt;</a></li>
+<li><a href="javascript:loadXalFile('popupMenu')">&lt;popupMenu&gt;</a></li>
+<li><a href="javascript:loadXalFile('tooltip')">&lt;tooltip&gt;</a></li>
+<li><a href="javascript:loadXalFile('window')">&lt;window&gt;</a></li>
+<li><a href="javascript:loadXalFile('horizontalFlowPane')">&lt;horizontalFlowPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('scrollPane')">&lt;scrollPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('desktopPane')">&lt;desktopPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('verticalToolBar')">&lt;verticalToolBar&gt;</a></li>
+<li><a href="javascript:loadXalFile('horizontalToolBar')">&lt;horizontalToolBar&gt;</a></li>
 </ul>
 
 <h2>Table</h2>
 <ul>
-<li><a href="widget_loader.html?xalFile=widget_examples/tableSorting.xal">sorting</a></li>
-<li><a href="widget_loader.html?xalFile=widget_examples/rowCycling.xal">constant
row addition/removal</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/tableSorting')">sorting</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/rowCycling')">constant row
addition/removal</a></li>
 </ul>
 
 
@@ -68,9 +87,9 @@
 
 <h2>GridPane</h2>
 <ul>
-<li><a href="widget_loader.html?xalFile=gridPane.xal">&lt;gridPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=gridPane2.xal">&lt;gridPane2&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=gridPane3.xal">&lt;gridPane3&gt;</a></li>
+<li><a href="javascript:loadXalFile('gridPane')">&lt;gridPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('gridPane2')">&lt;gridPane2&gt;</a></li>
+<li><a href="javascript:loadXalFile('gridPane3')">&lt;gridPane3&gt;</a></li>
 </ul>
 
 
@@ -78,14 +97,23 @@
 <br>
 <h2>Examples</h2>
 <ul>
-<li><a href="widget_loader.html?xalFile=widget_examples/splitPaneExample.xal">&lt;splitPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=widget_examples/tabPaneExample.xal">&lt;splitPane&gt;</a></li>
-<li><a href="widget_loader.html?xalFile=widget_examples/verticalPanelExample.xal">&lt;verticalPanel&gt;</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/splitPaneExample')">&lt;splitPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/tabPaneExample')">&lt;splitPane&gt;</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/verticalPanelExample')">&lt;verticalPanel&gt;</a></li>
 </ul>
 
 <br>
 <h2>Complex Examples</h2>
 <ul>
-<li><a href="widget_loader.html?xalFile=widget_examples/complexExample.xal">&lt;Complex
example 1&gt;</a></li>
+<li><a href="javascript:loadXalFile('widget_examples/complexExample')">&lt;Complex
example 1&gt;</a></li>
 </ul>
+
+
+	<br/>
+	<br/>
+	<span style='opacity:0.6'>
+		Debugger-friendly loading (<input type='checkbox' id='debugP' value='true'></input>)
+		will slow things down even more.
+	</span>
+
 </body>



Mime
View raw message