Hi,
 
I'm trying to build a message editor that uses Schema's and XML to drive the 
UI. The message editor can use all the Schema validation facets 
automatically, so if there is a Schema the editor can render it fast and 
even enforce compliance to the schema. The editor takes XML as input and 
produces XML as output.
 
This editor will be used in the financial world where there are many complex 
schema based message standards, the use of these standards can also be 
different between different institutions, so they really need to be able to 
decide what is put on the screen and what not - yet they do not have nor 
want to have GWT savy developers.
 
 I know that the GWT team does not think this is an important use-case and 
that compiled UIs are always faster. But since we don't know the message 
types the user will be editing we can not compile it and even if we could, 
the shear ammount of variations in use would make compilation just not a 
viable solution. (Yes it also needs to support i18n).
 
I implemented the editor based on SafeHTML and I am wrapping widgets at the 
moment the mouse moves over them or they get focus. These techniques 
combined makes rendering of the editor very quick (100-200ms for very 
complex schema's with hundreds of fields on the screen).
 
But I ran into a small issue.
 
I can not directly use the wrap( Element ) methods of the different Widgets. 
The main reason is because of the RootPanel.*detachOnWindowClose*(widget)  
call inside the wrap methods throws an exception.
This method call is not needed since the editor itself is a widget that will 
be detached as normal widgets are.
 
I am using the Widget( Element element ) constructors instead by 
subclassing... I was assuming that this is allowed since these methods are 
allowed.
 
This works for most widgets, except for the Image widget.
 
The Image Widget constructor does not initialize the state to a reasonable 
default, the wrap method sets it to Unclipped. Unfortunately I can not do 
the same in my wrap method since the method to change the state is private 
(as is the ClippedState class).
 
Can this be changed in the next version of GWT ? or is there an alternative 
(besides reimplementing the Image widget) ? The protected method is totally 
useless as it is implemented right now since in a subclass you can never 
initialize the state correctly.
 
David

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to