Here's my example... say you want to customize MenuBar from GWT.

You have to declare in your CssResource file some styles.
@ClassName("mesy-MainMenu")
String mesyMainMenu();

@ClassName("mesy-Separator")
String mesySeparator();

Those are my two style, you don't need anything else, since everything will
use the base name mesy-MainMenu when I'll be done.

Then here's my styles in my style.css
.mesy-MainMenu {
color: #424242;
font-size: 13px;
cursor: pointer;
}

@external gwt-MenuItem;
.mesy-MainMenu .gwt-MenuItem {
color: #424242;
font-size: 13px;
vertical-align: bottom;
}

@external gwt-MenuItem-selected;
.mesy-MainMenu .gwt-MenuItem-selected {
   color: #682203;
}

.mesy-Separator {
vertical-align: bottom;
width: 5px;
text-align: center;
cursor: default;
}

Note the @External use.

Then when I declare my MenuBar inside UiBinder:
<g:MenuBar ui:field="menu" stylePrimaryName="{res.style.mesyMainMenu}">

And voilĂ  ! Simple and easy. And know this... in my Mesy.gwt.xml default
style are activated.
<inherits name="com.google.gwt.user.theme.standard.Standard" />

Cheers,
On Thu, Aug 26, 2010 at 9:06 AM, chrisr <chris.robert.rowl...@gmail.com>wrote:

>
> > > When we report bugs on other opensource projects (like struts in the
> > > past or eclipse and many others) the new bug reports are quickly
> > > detected and you get some basic feedback... right now the issue
> > > tracker seems like you guys are using the SUN bug database.
>
> On a note loosely related to lack of feedback, how long do you
> generally have to wait before your discussion topics get posted to the
> board?  I have submitted a few questions recently and I haven't seen
> any of them get posted, nor have I gotten any sort of rejection
> notice.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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

Reply via email to