Working with UiBinder has a number of additional benefits than those already discussed. The UiHandler at-rule simplifies and accelerates the ability to listening and reacting to action events. To demonstrate this point Kyle shows you have you may typicall
- [Instructor] Another cool feature of ui binder is…the ui handler at rule.…We skipped over this section in the code previously…and we will address it very soon…but for now let's comment out these four lines…by selecting them and using the keyboard shortcut…of command forward slash.…I will now demonstrate how to do this in the standard way…just to give us a real appreciation…of how much easier using ui binder is.…First of all, if we wanted to listen to the button…we would need to add a click handler to the button…in the constructor.…
So let's do that.…So to add a click handler, I'll say button.addclickhandler…and then create a new handler right inside the parameter.…Use control space to have Eclipse…auto generate some suggestions.…I'll use the first one.…And Eclipse will automatically create…the required on click method…as part of the click handler class.…So in this on click method,…we can have the application do something…when the button is clicked.…
Let's simply create an alert for this button…with a string of hello and a semi colon…
In this course, learn how to build high-performance, browser-based apps using GWT. Kyle Gower-Winter introduces you to GWT, explaining the benefits of using this toolkit to build dynamic web pages. To help you practice what you learn, he shows how to build a simple foreign exchange rate application. Plus, Kyle covers managing AJAX events on the client, handling UI action events, debugging code, and more.
- Creating and running a GWT application
- Working with GWT widgets and UiBinder
- Manage AJAX events on the client
- Using a GWT RequestBuilder object
- Debugging in the browser
- Setting breakpoints and inspecting variables
- Running locally in production mode
Skill Level Intermediate
Building Web Applications with Ajaxwith Sasha Vodnik1h 31m Intermediate
Java: Build Automation with Mavenwith Peggy Fisher1h 24m Intermediate
1. Create and Run a GWT Application
2. GWT Widgets and UiBinder
3. Manage AJAX Events on the Client
4. Debugging in the Browser
5. Run Locally in Production Mode
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.