<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-349001189957411697</id><updated>2011-12-23T07:37:57.326-08:00</updated><category term='contest'/><category term='tutorials'/><category term='learning'/><category term='RIA'/><category term='triggers'/><category term='Toru'/><category term='binding'/><category term='JavaFX'/><title type='text'>Coding Cognitions</title><subtitle type='html'>Coding Cognitions
&lt;br&gt;  thoughts on binary expression</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codingcognitions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codingcognitions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>John Bohlmann</name><uri>http://www.blogger.com/profile/10695787653161014351</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-349001189957411697.post-8409695574870945987</id><published>2009-05-16T22:35:00.000-07:00</published><updated>2009-06-17T23:24:20.048-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaFX'/><category scheme='http://www.blogger.com/atom/ns#' term='Toru'/><category scheme='http://www.blogger.com/atom/ns#' term='contest'/><title type='text'>JavaFX Coding Challenge</title><content type='html'>I recently attended a MySQL tech talk at Purdue hosted by Sun, and the speaker announced a Sun &lt;a href="http://javafx.com/challenge/"&gt;contest&lt;/a&gt; for developing JavaFX applications. It has prizes up to $25k,  including exclusive prizes for students, which is great for our student team. Thus, we are going to be competing in the &lt;a href="http://javafx.com/challenge/"&gt;JavaFX Coding Challenge&lt;/a&gt; with our project! We've also officially named the project Toru, which means "to take" or "to harvest" (knowledge) in Japanese, and is symbolic of the project's purpose.&lt;br /&gt;&lt;br /&gt;Toru is a community-centric information service, similar to Yahoo! Answers or ChaCha, with distinctive improvements in mobility (via JavaFX) and community features (such as competitions and more score-based answering). We are aiming for it to be an application which is more open and accessible than ChaCha but with more answer reliability than Yahoo! Answers. Initially we're deploying for use home computers, but soon after we'll add support for mobile devices and even new TVs with web access technology. Toru is going to have a "question lobby" for users who are interesting in answering questions, and this will strengthen the answers provided to be more like ChaCha's. We'd also like to add some cool competitive features such as periodic "sprint" contests with bonus points for answering questions, and possibly prizes!&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://javafx.com/challenge/"&gt;Coding Challenge&lt;/a&gt; looks to be a great opportunity to demo Toru and gain a lot of nice experience with JavaFX! The submission deadline is May 29th, so we'll need to go through a crash course in JavaFX specifics. ;) In addition to the great prizes, the contest would be sure to generate a bunch of publicity for your application. We're looking forward to competing!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/349001189957411697-8409695574870945987?l=codingcognitions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingcognitions.blogspot.com/feeds/8409695574870945987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/javafx-coding-challenge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/8409695574870945987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/8409695574870945987'/><link rel='alternate' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/javafx-coding-challenge.html' title='JavaFX Coding Challenge'/><author><name>John Bohlmann</name><uri>http://www.blogger.com/profile/10695787653161014351</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-349001189957411697.post-1306614090769742672</id><published>2009-05-14T20:42:00.000-07:00</published><updated>2009-06-17T23:22:50.946-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='binding'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaFX'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='triggers'/><title type='text'>Data Binding In JavaFX</title><content type='html'>Data binding is one of the most important JavaFX features you should learn when creating web applications. It's also one of the easiest to get confused about. In this post, I will cover tips on using the &lt;span style="font-weight: bold;"&gt;bind &lt;/span&gt;keyword, and mention a few ways we're using data binding in our project.&lt;br /&gt;&lt;br /&gt;Basically, &lt;span style="font-weight: bold;"&gt;bind&lt;/span&gt; is a mechanism for ensuring a variable is always up-to-date when rendered or used by your functions. For example, if we had a Text component which we wanted to update with new messages from a global data service, we can declare the content property to be bound to the service as follows:&lt;br /&gt;&lt;blockquote&gt;var boundText: Text = Text{&lt;br /&gt;x: 10&lt;br /&gt;y: 10&lt;br /&gt;content: bind asyncService.currentText&lt;br /&gt;}&lt;/blockquote&gt;Note that a bind must be declared at compile time, and once a variable is bound to something, you cannot access it directly.&lt;br /&gt;&lt;br /&gt;Another useful feature is the &lt;span style="font-weight: bold;"&gt;on replace&lt;/span&gt; keyword, which lets you define a function delegate to be executed whenever a certain variable is changed.&lt;br /&gt;&lt;blockquote&gt;public var replaceText: String = "Hello world!" on replace oldText{&lt;br /&gt;println("Text has been replaced");&lt;br /&gt;};&lt;/blockquote&gt;I prefer to use &lt;span style="font-weight: bold;"&gt;on replace&lt;/span&gt; as opposed to &lt;span style="font-weight: bold;"&gt;bind&lt;/span&gt; when I can, as it seems to run a bit faster for our project. This is likely because it only edits the variable with an &lt;span style="font-weight: bold;"&gt;on replace&lt;/span&gt;, whereas with a bound variable, every time the data source is updated a new objects is created and reassigned to the variable. And although you can &lt;span style="font-weight: bold;"&gt;bind &lt;/span&gt;to expressions, &lt;span style="font-weight: bold;"&gt;on replace&lt;/span&gt; allows a full-blown function call.&lt;br /&gt;&lt;br /&gt;Both &lt;span style="font-weight: bold;"&gt;bind &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;on replace&lt;/span&gt; are extremely useful and essential tools when developing in JavaFX. In our project, we use them primarily for tieing the GUI to our data, and for supporting callbacks from our business logic code to the GUI. To learn more about them, you can go to the &lt;a href="http://javafx.com/"&gt;official website&lt;/a&gt; for &lt;a href="http://java.sun.com/javafx/1/tutorials/core/dataBinding/"&gt;tutorials&lt;/a&gt; on these and other JavaFX features. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/349001189957411697-1306614090769742672?l=codingcognitions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingcognitions.blogspot.com/feeds/1306614090769742672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/data-binding-in-javafx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/1306614090769742672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/1306614090769742672'/><link rel='alternate' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/data-binding-in-javafx.html' title='Data Binding In JavaFX'/><author><name>John Bohlmann</name><uri>http://www.blogger.com/profile/10695787653161014351</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-349001189957411697.post-6353329781568525082</id><published>2009-05-11T21:29:00.000-07:00</published><updated>2009-06-17T23:22:07.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaFX'/><category scheme='http://www.blogger.com/atom/ns#' term='RIA'/><category scheme='http://www.blogger.com/atom/ns#' term='learning'/><title type='text'>A New Journey: JavaFX</title><content type='html'>Over the past month a friend and I have been working on a project using Sun's new cross-platform Rich Internet Application framework, &lt;a href="http://javafx.com/"&gt;JavaFX&lt;/a&gt;. So far it's been an interesting experience, involving both ups and downs, but overall very exciting and useful. In this blog I plan to chronicle notable points in our development process, and hopefully include lots of helpful information for those wanting to jump on this cutting-edge framework.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/349001189957411697-6353329781568525082?l=codingcognitions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingcognitions.blogspot.com/feeds/6353329781568525082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/new-journey-javafx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/6353329781568525082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/349001189957411697/posts/default/6353329781568525082'/><link rel='alternate' type='text/html' href='http://codingcognitions.blogspot.com/2009/06/new-journey-javafx.html' title='A New Journey: JavaFX'/><author><name>John Bohlmann</name><uri>http://www.blogger.com/profile/10695787653161014351</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
