concept type in category gwt

This is an excerpt from Manning's book GWT in Action.
As you saw at the start of this section, widgets are the components that are used to interact with the user: buttons, labels, and so on. GWT has widgets that represent standard HTML/DOM objects such as images and buttons, and widgets that represent more abstract concepts, such as trees or menu bars. There’s even a set of data-presentation widgets, discussed in chapter 10, that give an efficient view of large data sets. Luckily we don’t need to differentiate between the types; they’re all widgets and they’re created and used in exactly the same way.
We’d particularly recommend running the GWT Showcase of Features that comes with the GWT download (or can be accessed online[2]) to get a good view of the types of widgets that GWT provides—see figure 3.2 for an example. You can also find third-party libraries that provide even more widgets or fancier versions of the standard ones; let’s not worry about those for now because we want to concentrate on widgets in general.
So, when compiling the MyMessages interface, the compiler will go through the path
. That is to say, the LocalizableGenerator will take the MyMessages interface, and because we’re compiling for Swedish locale in this iteration, it will find the MyMessages_sv.properties file and/or other files in the internationalization hierarchy (see chapter 13) in order to find the necessary strings to be returned in the generated class methods. If the type is not assignable, then the compilation goes through the path
; that is, the original type is used with no alterations.
You can access all aspects of source code through this approach, the objects of which you can find in the typeinfo package. Rather than spending a lot more pages of this book going through them, we’ll point you to figure 18.9, which shows these classes and how they relate. The figure might look a little intimidating. It shows all of the types you can use to introspect over one of your application types. For example, JArrayType is a subclass of JClassType, which itself is a subclass of JType.
. That is to say, the LocalizableGenerator will take the MyMessages interface, and because we’re compiling for Swedish locale in this iteration, it will find the MyMessages_sv.properties file and/or other files in the internationalization hierarchy (see
; that is, the original type is used with no alterations.