<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Penguinspeak &#187; Item Renderers</title>
	<atom:link href="http://macmartine.com/blog/category/item-renderers/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Wed, 09 Dec 2009 23:30:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Extending TreeItemRenderer in Flex 2 Beta 2</title>
		<link>http://macmartine.com/blog/2006/04/extending_treeitemrenderer_to.html</link>
		<comments>http://macmartine.com/blog/2006/04/extending_treeitemrenderer_to.html#comments</comments>
		<pubDate>Wed, 05 Apr 2006 03:52:13 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[Item Renderers]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=12</guid>
		<description><![CDATA[Extending TreeItemRenderer to replace default icons with icons unique to each branch/leaf [The following was created as of Flex 2, Beta 2] Here&#8217;a a simple example of how to extend TreeItemRenderer to modify the tree items. In this example we apply a different style for branch nodes and leaf nodes. We also remove the default [...]]]></description>
			<content:encoded><![CDATA[<p>Extending TreeItemRenderer to replace default icons with icons unique to each branch/leaf<br />
<br/><br/><br />
[The following was created as of Flex 2, Beta 2]<br />
<br/><br/><br />
Here&#8217;a a simple example of how to extend TreeItemRenderer to modify the tree items. In this example we apply a different style for branch nodes and leaf nodes. We also remove the default icons and place an image in it&#8217;s place.<br />
<br/><br/><br />
For my purposes, I want to have a different image in each tree item at runtime, and this is the solution I came up with. This example just places a &#8216;branch&#8217; image for branches, and a &#8216;leaf&#8217; image for leaf items, but it can be easily modified to do what I just described.<br />
<br/><br/><br />
<center><br />
<img src="http://www.macmartine.com/blog/images/customTreeRendererScreenSho.jpg" /><br />
</center><br />
<br/><br/><br />
CustomTreeItemRenderer.mxml<br />
<br/><br/><br />
<a href="http://macmartine.com/blog/flexsource/2.0/beta2/2006_04_04/" target="_blank">View the source here</a><br />
<br/><br/><br />
Many thanks to Joan Tan for getting me started on this!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Extending+TreeItemRenderer+in+Flex+2+Beta+2+http://bit.ly/3K3GE6" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2006/04/extending_treeitemrenderer_to.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Binding custom objects to Tilelist with itemRenderer</title>
		<link>http://macmartine.com/blog/2006/03/binding_custom_objects_to_tile.html</link>
		<comments>http://macmartine.com/blog/2006/03/binding_custom_objects_to_tile.html#comments</comments>
		<pubDate>Thu, 16 Mar 2006 18:54:32 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[Item Renderers]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=9</guid>
		<description><![CDATA[[The following was created as of Flex 2, Beta 2] It&#8217;s not uncommon to want to bind a class to one of the List based components (i.e. List, TileList, DataGrid, etc). But if you&#8217;re using an itemRenderer you may run into an issue where the itemRenderers do not get unique id&#8217;s. When this happens, focus [...]]]></description>
			<content:encoded><![CDATA[<p>[The following was created as of Flex 2, Beta 2]<br />
<br/><br/><br />
It&#8217;s not uncommon to want to bind a class to one of the List based components (i.e. List, TileList, DataGrid, etc).<br />
But if you&#8217;re using an itemRenderer you may run into an issue where the itemRenderers do not get unique id&#8217;s.<br />
When this happens, focus and selection cannot function properly. Usually, just one of the items in the list will get highlighted no matter which item your cursor is over.<br />
<br/><br/><br />
So the way to get around this, is to simply have your class implement IUID which will automatically assign a unique id to each item renderer.<br />
<br/><br/><br />
Here&#8217;s a sample:<br />
<br/><br/><br />
<a href="http://www.macmartine.com/blog/flexsource/2.0/beta2/2006_03_16/" target=_blank" />View the source here</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Binding+custom+objects+to+Tilelist+with+itemRenderer+http://bit.ly/1BZXCm" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2006/03/binding_custom_objects_to_tile.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
