<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>You're a smart guy, figure it out! &#187; BlackBerry</title>
	<atom:link href="http://blog.grushin.com/category/blackberry/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.grushin.com</link>
	<description>Mike Grushin's thoughts on everything tech-related and more...</description>
	<lastBuildDate>Sat, 28 Jan 2012 04:03:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.grushin.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>You're a smart guy, figure it out! &#187; BlackBerry</title>
		<link>http://blog.grushin.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.grushin.com/osd.xml" title="You&#039;re a smart guy, figure it out!" />
	<atom:link rel='hub' href='http://blog.grushin.com/?pushpress=hub'/>
		<item>
		<title>BlackBerry JDE 4.2, ButtonField and disabling ContextMenu</title>
		<link>http://blog.grushin.com/2009/05/14/blackberry-jde-4-2-buttonfield-and-disabling-contextmenu/</link>
		<comments>http://blog.grushin.com/2009/05/14/blackberry-jde-4-2-buttonfield-and-disabling-contextmenu/#comments</comments>
		<pubDate>Fri, 15 May 2009 04:27:35 +0000</pubDate>
		<dc:creator>mikeg</dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[BlackBerry JDE]]></category>
		<category><![CDATA[blackberry jde 4.2]]></category>
		<category><![CDATA[buttonfield]]></category>
		<category><![CDATA[contextmenu]]></category>

		<guid isPermaLink="false">http://mikeg.wordpress.com/2009/05/14/blackberry-jde-4-2-buttonfield-and-disabling-contextmenu/</guid>
		<description><![CDATA[I&#8217;ve been playing around with BlackBerry JDE 4.2 for some time now and while using the simulator I would &#8220;click&#8221; on buttons using the Enter key. When I finally installed on the physical device I found that it is more intuitive to click on the button using the ball while moving around the screen. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.grushin.com&amp;blog=143911&amp;post=117&amp;subd=mikeg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with BlackBerry JDE 4.2 for some time now and while using the simulator I would &#8220;click&#8221; on buttons using the Enter key. When I finally installed on the physical device I found that it is more intuitive to click on the button using the ball while moving around the screen. The problem is that by default it brings up a context menu which produces undesirable result:
<p><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="219" alt="image" src="http://mikeg.files.wordpress.com/2009/05/image.png?w=322&#038;h=219" width="322" border="0">
<p>Looking at API and doing a few google searches led me to implementing a subclass where I was planning to override either getContextMenu() or makeContextMenu(), but for some reason those methods were not being called. A few more random searches and turns out that you can pass ButtonField.CONSUME_CLICK and that will eliminate the undesirable display of the context menu.
<p>Here is excerpt from API that fails to mention CONSUME_CLICK
<p>ButtonField<br />public ButtonField(String label,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long style)Constructs a new ButtonField instance with provided label and style. <br />Provided a label string to show, and a style, this method builds a button field using your style.
<p>Parameters:<br />label &#8211; Label string for the button.<br />style &#8211; Field style for the button: can be a combation of any generic field style, BARE, DrawStyle.ELLIPSIS, Field.FOCUSABLE and Field.NON_FOCUSABLE</p>
<br />Posted in BlackBerry, BlackBerry JDE Tagged: BlackBerry, BlackBerry JDE, blackberry jde 4.2, buttonfield, contextmenu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mikeg.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mikeg.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mikeg.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.grushin.com&amp;blog=143911&amp;post=117&amp;subd=mikeg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.grushin.com/2009/05/14/blackberry-jde-4-2-buttonfield-and-disabling-contextmenu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76d3f29717e172e215c4cd1a9fc89687?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikeg</media:title>
		</media:content>

		<media:content url="http://mikeg.files.wordpress.com/2009/05/image.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
