Thursday, January 5, 2012

Re: Appearance Pattern - ok, is there a better explanation, a tutorial, a step-by-step?

Hey, that's what static typing is for:
  • if you're implementing an interface, you know which methods you have to implement, and it won't compile without them.
  • if you're writing your own interface, you're necessarily also writing the code that calls the methods, so you're responsible for defining the methods, their name, their parameters, etc.
If you want a concrete example, have a look at http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/widget/client/TextButton.java the only existing Cell-backed widget for now.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lpBq0b4AYAUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment