On many occasions, I've wanted to adjust the behavior of a GWT class, but 
have found that I can't, because they tend not to be written with 
extensibility in mind.


   1. Many internal utility methods are private
   2. Many inner classes are private, or maybe package access
   

For example, I wanted to make just a few tweaks in StyleInjector. But, any 
helper logic that I might want to use from the base, such as private native 
StyleElement createElement() or private StyleElement 
createNewStyleSheet(String contents), are, um, PRIVATE.

So I basically have to copy the entire code for the class in my extension.

Similarly, when I wanted to create a "nullable" EditTextCell, I couldn't 
just extend that class, since the actual data for the cell in is static 
class ViewData, which I can't get to, because I'm in a different package. 
So, I had to copy the entire class in order to change just a few lines.
'
Why is there so much avoidance of "protected"?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to