[richfaces-svn-commits] JBoss Rich Faces SVN: r2245 - trunk/samples/tree-demo/src/main/webapp/pages.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Aug 14 08:40:55 EDT 2007


Author: pyaschenko
Date: 2007-08-14 08:40:55 -0400 (Tue, 14 Aug 2007)
New Revision: 2245

Modified:
   trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
Log:
icon size customization sample added to demo

Modified: trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tree-demo/src/main/webapp/pages/index.jsp	2007-08-14 11:28:51 UTC (rev 2244)
+++ trunk/samples/tree-demo/src/main/webapp/pages/index.jsp	2007-08-14 12:40:55 UTC (rev 2245)
@@ -25,6 +25,24 @@
 				white-space: normal;            
             }
         </style>
+
+		<style>
+		.treeIcon32 .dr-tree-h-ic-div {
+			margin-left : 15px;
+			padding-left : 17px;
+		}
+		
+		.treeIcon32 .dr-tree-h-ic {
+			width: 32px;
+			padding: 0px;
+		}
+		
+		.treeIcon32 .dr-tree-h-ic-img{
+			width : 32px;
+			height : 32px;
+		} 
+		</style>
+        
 	</head>
 	<body>
 		<f:view>
@@ -62,6 +80,12 @@
 					<f:selectItem itemLabel="true" itemValue="#{true}" />
 					<f:selectItem itemLabel="false" itemValue="#{false}" />
 			</h:selectOneRadio>
+			
+			<h:outputText value="Tree icon size:" />
+			<h:selectOneRadio value="#{bean.styleClass}" onclick="submit()">
+				<f:selectItem itemLabel="16x16 (default)" itemValue="" />
+				<f:selectItem itemLabel="32x32" itemValue="treeIcon32" />
+			</h:selectOneRadio>		
 
 			<h:outputText value="Drag is: #{bean.dragOn ? 'on' : 'off'}" />
 			<br />
@@ -88,7 +112,8 @@
 					iconExpanded="#{bean.iconExpanded}"
 					iconLeaf="#{bean.iconLeaf}"
 					icon="#{bean.icon}"
-                    dropListener="#{bean.processDrop}">
+                    dropListener="#{bean.processDrop}"
+                    styleClass="#{bean.styleClass}">
 
 					<f:facet name="icon">
 						<h:outputText value="icon" rendered="#{bean.renderFacets}"/>




More information about the richfaces-svn-commits mailing list