My GWT 2.0.3 project uses UiBinder to create widgets and I wanted to
use a shared CssResource to make each widget have a common runtime CSS
class. I created my SharedStyle as follows:

@Shared
interface SharedStyle extends CssResource{
public String test();
}

Then each WidgetX uses the following template:
WidgetX.java:
public WidgetX...{
    public interface WidgetXStyle extends SharedStyle{
    }
...
}
WidgetX.ui.xml:
...
<ui:style type="WidgetX.WidgetXStyle">
.test{
...
}
...
</ui:style>

What ends up happening is that the style.test( ) for each different
Widget (eg WidgetA & WidgetB) class is not identical.  I hoped to use
this technique to allow a parent widget to treat each child widget the
same when processing a browser event but it is not working.  Any
guidance on what I'm doing wrong would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to