From the course: Learning GWT
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Connect all the pieces
- [Instructor] The last piece of the puzzle is to add our UiBinder widget to the root panel. But the good news is this couldn't be simpler. Like I said, our UiBinder extends Composite, which is a type of widget that makes its content behave like a native widget. Therefor, to add the UiBinder to our application in our entry point method, we first create a new widget. Let's open up the entry point class And in ModuleLoad, we'll create a new MyUiBinder widget. We'll call it mub. And then include that widget in the root panel, like we've done with the other widgets. I don't have a specific ID or element to attach it to, so I'm just going to use the get method and say add mub. Let's save our work. And since this application is already running in development mode, let's just go to the browser and hit refresh. And there it is. Here is the button; it's got the text of Kyle coming from the name.txt file. If we inspect this button, we should see a couple styles applied to it. One from our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.