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.
UiBinder resources: Part 2
- [Instructor] So at this point we have created a client bundle with four resources, and part of the process was to create this new external type that will reference each of the style rules in our external.css file. Now that we have a client bundle how do we use it? To include our client bundle into our UiBinder we use the UI with element, and this is how you do it. UI:with, we'll use the field attribute to reference this UI element, we'll call it res for short. The second attribute we need or that is required is the type. The type will be a reference to the new client bundle that we created called resources. As you can see resources resides in our com.lynda.gwt.myfirstapp.client location, so I need to type that fully qualified name here in the type. So at this point we have a handle to that client bundle called resources with the name res. Now you may have caught this already, but since we are bundling the external style sheet with our resources client bundle we don't have to…
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.