[richfaces-svn-commits] JBoss Rich Faces SVN: r5170 - trunk/docs/userguide/en/src/main/docbook/included.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 8 06:07:14 EST 2008


Author: artdaw
Date: 2008-01-08 06:07:14 -0500 (Tue, 08 Jan 2008)
New Revision: 5170

Modified:
   trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - Delete empty 'Example' section in Paint2D

Modified: trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml	2008-01-08 11:06:56 UTC (rev 5169)
+++ trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml	2008-01-08 11:07:14 UTC (rev 5170)
@@ -111,37 +111,35 @@
       </emphasis> and <emphasis>
         <property>&quot;data&quot;</property>
       </emphasis> attributes.</para>
-    <para><emphasis role="bold">Example:</emphasis>
-    </para>
 
     <para>
       <emphasis role="bold">Example:</emphasis>
     </para>
     <programlisting role="JAVA"><![CDATA[paintBean.java:
-
-    public void paint(Graphics2D g2, Object obj) {
-        // code that gets data from the data Bean (PaintData)
-        PaintData data = (PaintData) obj;
-        ...
-        // a code drawing a rectangle
-        g2.drawRect(0, 0, data.Width, data.Height);
-        ...      
-        // some more code placing graphical data into g2 stream below
-    }
-
+      
+      public void paint(Graphics2D g2, Object obj) {
+          // code that gets data from the data Bean (PaintData)
+          PaintData data = (PaintData) obj;
+          ...
+          // a code drawing a rectangle
+          g2.drawRect(0, 0, data.Width, data.Height);
+          ...
+          // some more code placing graphical data into g2 stream below
+     }
+     
 dataBean.java:
-
+    
     public class PaintData implements Serializable{
         private static final long serialVersionUID = 1L;
         Integer Width=100;
         Integer Height=50;
         ...
     }
-
-page.xhtml:
-...
+    
+    page.xhtml:
+    ...
     <rich:paint2D paint="#{paint2D.paint}" data="#{paint2DModel.data}"/>
-... 
+    ... 
 ]]></programlisting>
 
   </section>




More information about the richfaces-svn-commits mailing list