<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Javafact</title>
	<atom:link href="http://javafact.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://javafact.com</link>
	<description>a java development reference by Octavio Berlanga</description>
	<lastBuildDate>Mon, 08 Aug 2011 21:00:23 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Converter by Checking Data Binding&#8217;s value in SWT/Jface - Programmers Goodies</title>
		<link>http://javafact.com/jface/databinding/converter/#comment-348</link>
		<dc:creator>Checking Data Binding&#8217;s value in SWT/Jface - Programmers Goodies</dc:creator>
		<pubDate>Mon, 08 Aug 2011 21:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://eclipse.javafact.com/?page_id=81#comment-348</guid>
		<description>[...] You can do conversion between types with Converters. Take a look at this example. [...]</description>
		<content:encoded><![CDATA[<p>[...] You can do conversion between types with Converters. Take a look at this example. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Working with JFace TableViewer by bodjango</title>
		<link>http://javafact.com/2010/07/26/working-with-jface-tableviewer/#comment-338</link>
		<dc:creator>bodjango</dc:creator>
		<pubDate>Thu, 23 Jun 2011 17:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=452#comment-338</guid>
		<description>Thanks a lot for putting this up, I find resources for this to be quite scarce, especially the documentation for WindowBuilder.

Small question: Can the DataBinding stuff only be done with EMF? When I go to the Bindings tab I can find my TableViewer but not the model I created.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for putting this up, I find resources for this to be quite scarce, especially the documentation for WindowBuilder.</p>
<p>Small question: Can the DataBinding stuff only be done with EMF? When I go to the Bindings tab I can find my TableViewer but not the model I created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing a Database Connection Pool from a Session EJB in JBoss AS by Accessing a Database Connection Pool from a Session EJB in JBoss AS</title>
		<link>http://javafact.com/2011/02/15/accessing-a-database-connection-pool-from-a-session-ejb-in-jboss-as/#comment-337</link>
		<dc:creator>Accessing a Database Connection Pool from a Session EJB in JBoss AS</dc:creator>
		<pubDate>Wed, 16 Feb 2011 04:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=653#comment-337</guid>
		<description>[...] you are not making any changes to the table, using an entity bean may seem like overkill. In... [full post]    Octavio Berlanga     Javafact   aboutejbexamplejboss            0        0        0        0     [...]</description>
		<content:encoded><![CDATA[<p>[...] you are not making any changes to the table, using an entity bean may seem like overkill. In&#8230; [full post]    Octavio Berlanga     Javafact   aboutejbexamplejboss            0        0        0        0     [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Example: TableViewer with a ContentProvider and a LabelProvider by Octavio Berlanga</title>
		<link>http://javafact.com/2010/08/01/example-tableviewer-with-a-contentprovider-and-a-labelprovider/#comment-329</link>
		<dc:creator>Octavio Berlanga</dc:creator>
		<pubDate>Thu, 13 Jan 2011 02:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=530#comment-329</guid>
		<description>There is nothing special about the Person and Workgroup classes.
Person is a POJO with getters and setters for first (name), last (name), title, and email.
Workgroup is another POJO that encapsulates a Set containing objects of type Person using instance variable memberSet.

So, to load the table viewer I pass a workgroup as the input object as in: tableviewer.setInput(workgroup).
You don&#039;t see this happening anywhere in the code, but eventually eclipse passes the workgroup to the ContentProvider getElements method that you mention.  I know the input element is a Workgroup, so in the getElements method I cast inputElement to Workgroup.  I then use the workgroup&#039;s memberSet to derive the array of objects that the method must return:
&lt;code&gt;
		public Object[] getElements(Object inputElement) {
			Workgroup w = (Workgroup) inputElement;
			return w.getMemberSet().toArray();
		}
&lt;/code&gt;

I hope this clarifies.  
Octavio</description>
		<content:encoded><![CDATA[<p>There is nothing special about the Person and Workgroup classes.<br />
Person is a POJO with getters and setters for first (name), last (name), title, and email.<br />
Workgroup is another POJO that encapsulates a Set containing objects of type Person using instance variable memberSet.</p>
<p>So, to load the table viewer I pass a workgroup as the input object as in: tableviewer.setInput(workgroup).<br />
You don&#8217;t see this happening anywhere in the code, but eventually eclipse passes the workgroup to the ContentProvider getElements method that you mention.  I know the input element is a Workgroup, so in the getElements method I cast inputElement to Workgroup.  I then use the workgroup&#8217;s memberSet to derive the array of objects that the method must return:<br />
<code><br />
		public Object[] getElements(Object inputElement) {<br />
			Workgroup w = (Workgroup) inputElement;<br />
			return w.getMemberSet().toArray();<br />
		}<br />
</code></p>
<p>I hope this clarifies.<br />
Octavio</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Example: TableViewer with a ContentProvider and a LabelProvider by NienkeW87</title>
		<link>http://javafact.com/2010/08/01/example-tableviewer-with-a-contentprovider-and-a-labelprovider/#comment-327</link>
		<dc:creator>NienkeW87</dc:creator>
		<pubDate>Wed, 05 Jan 2011 10:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=530#comment-327</guid>
		<description>Hi Octavio Berlanga,

You made a nice example, which is probably very usefull for me.
I was just wondering, is it somehow possible to see what code is in the classes:
com.oxbsystems.study.domain.workgroup.Person and
com.oxbsystems.study.domain.workgroup.Workgroup ?

Because I still do not really understand how you can return the Workgroup in the ContentProvider.getElements(Object InputElement)

Would be great if you can provide it to me.

Kind regards,
Nienke W.</description>
		<content:encoded><![CDATA[<p>Hi Octavio Berlanga,</p>
<p>You made a nice example, which is probably very usefull for me.<br />
I was just wondering, is it somehow possible to see what code is in the classes:<br />
com.oxbsystems.study.domain.workgroup.Person and<br />
com.oxbsystems.study.domain.workgroup.Workgroup ?</p>
<p>Because I still do not really understand how you can return the Workgroup in the ContentProvider.getElements(Object InputElement)</p>
<p>Would be great if you can provide it to me.</p>
<p>Kind regards,<br />
Nienke W.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Example: TableViewer with a ContentProvider and a LabelProvider by Octavio Berlanga</title>
		<link>http://javafact.com/2010/08/01/example-tableviewer-with-a-contentprovider-and-a-labelprovider/#comment-318</link>
		<dc:creator>Octavio Berlanga</dc:creator>
		<pubDate>Fri, 26 Nov 2010 00:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=530#comment-318</guid>
		<description>The last argument of the ColumnWeightData constructor determines whether the user will be able to resize the column:
layout.setColumnData(&lt;strong&gt;tblclmnFirst&lt;/strong&gt;, new ColumnWeightData(2, ColumnWeightData.MINIMUM_WIDTH, true));

As you point out, all other columns will be resized automatically.  The example uses only ColumnWeightData, but there are situations in which it makes sense to also use ColumnPixelData for some columns (not all).  Perhaps you will get a behavior that is closer to what you expect by using the following code for the first column:
layout.setColumnData(&lt;strong&gt;tblclmnFirst&lt;/strong&gt;, new ColumnPixelData(150, true, true));

This will set the first column to 150 pixels and the column will not resize if other columns get resized.  However, if the first column gets resized, the other columns will get resized as well.

</description>
		<content:encoded><![CDATA[<p>The last argument of the ColumnWeightData constructor determines whether the user will be able to resize the column:<br />
layout.setColumnData(<strong>tblclmnFirst</strong>, new ColumnWeightData(2, ColumnWeightData.MINIMUM_WIDTH, true));</p>
<p>As you point out, all other columns will be resized automatically.  The example uses only ColumnWeightData, but there are situations in which it makes sense to also use ColumnPixelData for some columns (not all).  Perhaps you will get a behavior that is closer to what you expect by using the following code for the first column:<br />
layout.setColumnData(<strong>tblclmnFirst</strong>, new ColumnPixelData(150, true, true));</p>
<p>This will set the first column to 150 pixels and the column will not resize if other columns get resized.  However, if the first column gets resized, the other columns will get resized as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Example: TableViewer with a ContentProvider and a LabelProvider by geting</title>
		<link>http://javafact.com/2010/08/01/example-tableviewer-with-a-contentprovider-and-a-labelprovider/#comment-315</link>
		<dc:creator>geting</dc:creator>
		<pubDate>Mon, 15 Nov 2010 06:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=530#comment-315</guid>
		<description>Hi Octavio Berlanga, 
   Could the table column be re-sized by user? I mean when i create the  table as the way you posted, the table shows exactly as the picture showing. But when i re-size the table column in the UI, the side columns will re-size automatically, which will cause the disappear of side column. 
   I would be very appreciate if you could help me to figure it out. 
   Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Octavio Berlanga,<br />
   Could the table column be re-sized by user? I mean when i create the  table as the way you posted, the table shows exactly as the picture showing. But when i re-size the table column in the UI, the side columns will re-size automatically, which will cause the disappear of side column.<br />
   I would be very appreciate if you could help me to figure it out.<br />
   Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sample Business Document Created with the iText Library by xcool101Man</title>
		<link>http://javafact.com/2010/09/25/sample-business-document-created-with-the-itext-library/#comment-306</link>
		<dc:creator>xcool101Man</dc:creator>
		<pubDate>Sun, 26 Sep 2010 08:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=615#comment-306</guid>
		<description>This is an amazing post 
Itext is the best PDF library and it supports many languages
&lt;a href=&quot;http://www.thejavacode.com&quot; rel=&quot;nofollow&quot;&gt;Java Programming Tutorials&lt;/a&gt;
&lt;a href=&quot;http://www.thejavacode.com/itext-embeded-font-problem-t9792.html&quot; rel=&quot;nofollow&quot;&gt;IText Examples&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This is an amazing post<br />
Itext is the best PDF library and it supports many languages<br />
<a href="http://www.thejavacode.com" rel="nofollow">Java Programming Tutorials</a><br />
<a href="http://www.thejavacode.com/itext-embeded-font-problem-t9792.html" rel="nofollow">IText Examples</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Enumerations by Java: usar enumeración en un switch &#124; ilikeblues</title>
		<link>http://javafact.com/2010/07/12/java-enumerations/#comment-40</link>
		<dc:creator>Java: usar enumeración en un switch &#124; ilikeblues</dc:creator>
		<pubDate>Fri, 23 Jul 2010 06:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=442#comment-40</guid>
		<description>[...] &#124; http://javafact.com  [...]</description>
		<content:encoded><![CDATA[<p>[...] | <a href="http://javafact.com" rel="nofollow">http://javafact.com</a>  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Enumerations by Octavio Berlanga</title>
		<link>http://javafact.com/2010/07/12/java-enumerations/#comment-37</link>
		<dc:creator>Octavio Berlanga</dc:creator>
		<pubDate>Wed, 21 Jul 2010 01:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://javafact.com/?p=442#comment-37</guid>
		<description>I should have mentioned how to use enumerations in switch statements.  I&#039;ll add a short explanation about how to do that and I hope I interpreted your comment correctly.
Let me know...
Octavio</description>
		<content:encoded><![CDATA[<p>I should have mentioned how to use enumerations in switch statements.  I&#8217;ll add a short explanation about how to do that and I hope I interpreted your comment correctly.<br />
Let me know&#8230;<br />
Octavio</p>
]]></content:encoded>
	</item>
</channel>
</rss>

