Author: vkorluzhenko
Date: 2007-06-06 10:35:32 -0400 (Wed, 06 Jun 2007)
New Revision: 1046
Modified:
trunk/docs/userguide/en/included/paint2D.xml
Log:
Modified: trunk/docs/userguide/en/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/included/paint2D.xml 2007-06-06 14:19:17 UTC (rev 1045)
+++ trunk/docs/userguide/en/included/paint2D.xml 2007-06-06 14:35:32 UTC (rev 1046)
@@ -96,25 +96,31 @@
role="italic"><property>"data"</property></emphasis>
attributes.</para>
<para>Example:</para>
<programlisting role="JAVA"><![CDATA[paintBean.java:
- public void paint(Graphics2D g2, Object obj) {
+
+ public void paint(Graphics2D g2, Object obj) {
// code that gets data from the data Bean (PaintData)
- PaintData data = (PaintData) obj;
- //...
- g2.drawRect(0, 0, data.Width, data.Height);
- // a code drawing a rectangle
- //...
- // 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:
- ...
- <rich:paint2D paint="#{paint2D.paint}"
data="#{paint2DModel.data}"/>
- ... ]]></programlisting>
+ 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:
+...
+ <rich:paint2D paint="#{paint2D.paint}"
data="#{paint2DModel.data}"/>
+...
+]]></programlisting>
</section>
<section>
Show replies by date