<?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>Blog de GreenIvory &#187; confirmation</title>
	<atom:link href="http://blog.greenivory.fr/tag/confirmation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.greenivory.fr</link>
	<description>Développement agile sur technologies web 2.0</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Boîte de confirmation avec GXT</title>
		<link>http://blog.greenivory.fr/2009/04/07/boite-de-confirmation-avec-gxt/</link>
		<comments>http://blog.greenivory.fr/2009/04/07/boite-de-confirmation-avec-gxt/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 17:06:18 +0000</pubDate>
		<dc:creator>Frédéric</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[confirmation]]></category>
		<category><![CDATA[GXT]]></category>
		<category><![CDATA[MessageBox]]></category>

		<guid isPermaLink="false">http://blog.greenivory.fr/?p=240</guid>
		<description><![CDATA[À chaque fois que j&#8217;en ai besoin, c&#8217;est pareil : je ne me souviens jamais de la manière de tester la &#171;&#160;valeur de retour&#160;&#187; de MessageBox.confirm(). Alors en l&#8217;écrivant ici, peut-être que je finirai par m&#8217;en souvenir&#8230; Listener&#60;WindowEvent&#62; handler = new Listener&#60;WindowEvent&#62;&#40;&#41; &#123; public void handleEvent&#40;WindowEvent be&#41; &#123; Dialog dialog = &#40;Dialog&#41; be.component; Button btn [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:100px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.greenivory.fr%2F2009%2F04%2F07%2Fboite-de-confirmation-avec-gxt%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_google1" style="width:90px;">
					<g:plusone size="medium" href="http://blog.greenivory.fr/2009/04/07/boite-de-confirmation-avec-gxt/" ></g:plusone>
				</div><div class="really_simple_share_twitter" style="width:110px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Boîte de confirmation avec GXT" data-url="http://blog.greenivory.fr/2009/04/07/boite-de-confirmation-avec-gxt/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>À chaque fois que j&#8217;en ai besoin, c&#8217;est pareil : je ne me souviens jamais de la manière de tester la &laquo;&nbsp;valeur de retour&nbsp;&raquo; de <code>MessageBox.confirm()</code>. Alors en l&#8217;écrivant ici, peut-être que je finirai par m&#8217;en souvenir&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Listener<span style="color: #339933;">&lt;</span>WindowEvent<span style="color: #339933;">&gt;</span> handler <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Listener<span style="color: #339933;">&lt;</span>WindowEvent<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> handleEvent<span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowEvent</span> be<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003399;">Dialog</span> dialog <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Dialog</span><span style="color: #009900;">&#41;</span> be.<span style="color: #006633;">component</span><span style="color: #339933;">;</span>
        <span style="color: #003399;">Button</span> btn <span style="color: #339933;">=</span> dialog.<span style="color: #006633;">getButtonPressed</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>btn.<span style="color: #006633;">getItemId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Dialog</span>.<span style="color: #006633;">YES</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">// L'utilisateur a confirmé !</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
MessageBox.<span style="color: #006633;">confirm</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">&quot;Confirmation&quot;</span>, <span style="color: #0000ff;">&quot;Souhaitez-vous réellement... ?&quot;</span>, handler
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.greenivory.fr/2009/04/07/boite-de-confirmation-avec-gxt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

