Chapter 17. Deferred binding

 

This chapter covers
  • Understanding deferred binding and its properties
  • Managing code differences with deferred binding
  • Determining property values with a property provider

 

What do you do when you want to provide different code implementations depending on a particular condition?

For example, you need to access the browser DOM, and you know that Internet Explorer needs different code than the other browsers (like our computed-style example in the JSNI chapter). Or you’re implementing internationalization and have different text for different locales. Or you want logging in one situation but not in another—the list can go on and on.

You could send all possible combinations of implementations to the ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.