[richfaces-svn-commits] JBoss Rich Faces SVN: r13630 - in trunk/test-applications/seamApp/web/src/main/webapp: TreeSwing and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Apr 17 07:54:39 EDT 2009


Author: adubovsky
Date: 2009-04-17 07:54:39 -0400 (Fri, 17 Apr 2009)
New Revision: 13630

Added:
   trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/
   trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwing.xhtml
   trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwingProperty.xhtml
Log:
+ TreeSwing pages

Added: trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwing.xhtml
===================================================================
--- trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwing.xhtml	                        (rev 0)
+++ trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwing.xhtml	2009-04-17 11:54:39 UTC (rev 13630)
@@ -0,0 +1,30 @@
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:rich="http://richfaces.org/rich" id="treeSwingSubviewID">
+
+	<h3>Click tree node to delete it. Only leaf node could be deleted.</h3>
+	<rich:tree id="tree" switchType="#{treeSwing.switchType}"
+		value="#{treeSwing.top}" var="data"
+		showConnectingLines="#{treeSwing.showConnectingLines}"
+		nodeSelectListener="#{treeSwing.selectionListener}"
+		rendered="#{treeSwing.rendered}" binding="#{treeSwing.tree}"
+		ajaxSubmitSelection="true"
+		onbeforedomupdate="#{event.onbeforedomupdate}"
+		onclick="#{event.onclick}" oncollapse="#{event.oncollapse}"
+		oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
+		ondragend="#{event.ondragend}" ondragenter="#{event.ondragenter}"
+		ondragexit="#{event.ondragexit}" ondragstart="#{event.ondragstart}"
+		ondrop="#{event.ondrop}" ondropend="#{event.ondropend}"
+		ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+		onexpand="#{event.onexpand}" onkeydown="#{event.onkeydown}"
+		onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+		onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
+		onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
+		onmouseup="#{event.onmouseup}" rowKeyVar="row"
+		onselected="return confirm('Do you want to delete the row you select?');"
+		oncontextmenu="#{event.oncontextmenu}"
+		disableKeyboardNavigation="#{treeSwing.disableKeyboardNavigation}">
+	</rich:tree>
+</f:subview>
\ No newline at end of file

Added: trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwingProperty.xhtml
===================================================================
--- trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwingProperty.xhtml	                        (rev 0)
+++ trunk/test-applications/seamApp/web/src/main/webapp/TreeSwing/TreeSwingProperty.xhtml	2009-04-17 11:54:39 UTC (rev 13630)
@@ -0,0 +1,39 @@
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:rich="http://richfaces.org/rich" id="treeSwingPropertySubviewID">
+
+	<h:commandButton id="focusID" action="#{treeSwing.add}"
+		value="add test" />
+	<h:panelGrid columns="2">
+		<f:facet name="header">
+			<h:outputText value="Tree Properties" />
+		</f:facet>
+
+		<h:outputText value="Change tree switchType:" />
+		<h:selectOneRadio value="#{treeSwing.switchType}" onclick="submit();">
+			<f:selectItem itemLabel="client" itemValue="client" />
+			<f:selectItem itemLabel="server" itemValue="server" />
+			<f:selectItem itemLabel="ajax" itemValue="ajax" />
+		</h:selectOneRadio>
+
+		<h:outputText value="rendered:" />
+		<h:selectBooleanCheckbox value="#{treeSwing.rendered}"
+			onchange="submit();" />
+
+		<h:outputText value="disableKeyboardNavigation:" />
+		<h:selectBooleanCheckbox
+			value="#{treeSwing.disableKeyboardNavigation}" onchange="submit();" />
+
+		<h:outputText value="showConnectingLines:" />
+		<h:selectBooleanCheckbox value="#{treeSwing.showConnectingLines}"
+			onchange="submit();" />
+
+		<h:outputText value="use custom icons:" />
+		<h:selectBooleanCheckbox value="#{treeSwing.useCustomIcons}">
+			<a4j:support action="#{treeSwing.addCustomIcons}" event="onchange"
+				reRender="tree"></a4j:support>
+		</h:selectBooleanCheckbox>
+	</h:panelGrid>
+</f:subview>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list