<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: GWT DisclosurePanel open/close without header</title>
	<atom:link href="http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gwt-disclosurepanel-openclose-without-header</link>
	<description>Summa Blog</description>
	<lastBuildDate>Thu, 17 May 2012 15:31:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Javier Ochoa</title>
		<link>http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/comment-page-1/#comment-3530</link>
		<dc:creator>Javier Ochoa</dc:creator>
		<pubDate>Tue, 04 Oct 2011 18:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1938#comment-3530</guid>
		<description>looks pretty similar, but you might be right. Flo&#039;s code is actually removing the generated header from its parent when doing the newHeader.add(defaultHeader) and can maintain the defined behavior.</description>
		<content:encoded><![CDATA[<p>looks pretty similar, but you might be right. Flo&#8217;s code is actually removing the generated header from its parent when doing the newHeader.add(defaultHeader) and can maintain the defined behavior.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/comment-page-1/#comment-3527</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 03 Oct 2011 20:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1938#comment-3527</guid>
		<description>I think Its a subtle but important difference.  Flo&#039;s example is using a decorator design pattern approach to solving the problem.  With Flo&#039;s code you get to keep having the functionality of the orginal behaviour of a disclosure panel&#039;s default header with your own customizations decorated around it .. (ie the open and close images (the arrows) and styling of the original widget are maintained.)  If Google changes the default header - Flo&#039;s decorated code will get the changes as well.</description>
		<content:encoded><![CDATA[<p>I think Its a subtle but important difference.  Flo&#8217;s example is using a decorator design pattern approach to solving the problem.  With Flo&#8217;s code you get to keep having the functionality of the orginal behaviour of a disclosure panel&#8217;s default header with your own customizations decorated around it .. (ie the open and close images (the arrows) and styling of the original widget are maintained.)  If Google changes the default header &#8211; Flo&#8217;s decorated code will get the changes as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier Ochoa</title>
		<link>http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/comment-page-1/#comment-3129</link>
		<dc:creator>Javier Ochoa</dc:creator>
		<pubDate>Fri, 01 Apr 2011 15:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1938#comment-3129</guid>
		<description>How is this different from your code? I don&#039;t see the advantage of getting the header widget as opposed of defining a Label with that text.

DisclosurePanel disclosurePanel = new DisclosurePanel();
HorizontalPanel newHeader = new HorizontalPanel();
newHeader.add(new Label(&quot;Define your header text here&quot;);
Widget whatever = new Button(&quot;Whatever&quot;);
newHeader.add(whatever);
disclosurePanel.setHeader(newHeader);

Is the click working different?</description>
		<content:encoded><![CDATA[<p>How is this different from your code? I don&#8217;t see the advantage of getting the header widget as opposed of defining a Label with that text.</p>
<p>DisclosurePanel disclosurePanel = new DisclosurePanel();<br />
HorizontalPanel newHeader = new HorizontalPanel();<br />
newHeader.add(new Label(&#8220;Define your header text here&#8221;);<br />
Widget whatever = new Button(&#8220;Whatever&#8221;);<br />
newHeader.add(whatever);<br />
disclosurePanel.setHeader(newHeader);</p>
<p>Is the click working different?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flo</title>
		<link>http://www.summa-tech.com/blog/2010/04/19/gwt-disclosurepanel-openclose-without-header/comment-page-1/#comment-3107</link>
		<dc:creator>Flo</dc:creator>
		<pubDate>Wed, 30 Mar 2011 14:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=1938#comment-3107</guid>
		<description>If you stumbled across this like me, trying to customize the header of a DisclosurePanel without losing its look and feel, here&#039;s a start. Unfortunately, the DisclosurePanel&#039;s default header is created by an inner class which cannot be edited easily. You can wrap it, though:

DisclosurePanel disclosurePanel = new DisclosurePanel(&quot;Define your header text here&quot;);
Widget defaultHeader = disclosurePanel.getHeader();
HorizontalPanel newHeader = new HorizontalPanel();
newHeader.add(defaultHeader);
Widget whatever = new Button(&quot;Whatever&quot;);
newHeader.add(whatever);
disclosurePanel.setHeader(newHeader);</description>
		<content:encoded><![CDATA[<p>If you stumbled across this like me, trying to customize the header of a DisclosurePanel without losing its look and feel, here&#8217;s a start. Unfortunately, the DisclosurePanel&#8217;s default header is created by an inner class which cannot be edited easily. You can wrap it, though:</p>
<p>DisclosurePanel disclosurePanel = new DisclosurePanel(&#8220;Define your header text here&#8221;);<br />
Widget defaultHeader = disclosurePanel.getHeader();<br />
HorizontalPanel newHeader = new HorizontalPanel();<br />
newHeader.add(defaultHeader);<br />
Widget whatever = new Button(&#8220;Whatever&#8221;);<br />
newHeader.add(whatever);<br />
disclosurePanel.setHeader(newHeader);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

