Re: style css and gwt

2012-05-05 Thread mukarev
Ok, correct myself a little: MenuBar menuBar = new MenuBar(); Command myCommand = new Command() { @Override public void execute() { //do something when menuitem is clicked } }; MenuItem menuItem = new MenuItem("myText", myCommand); menuItem.setStyleName("my-css-style"); menuBar.addItem(menuIt

Re: style css and gwt

2012-05-05 Thread mukarev
Hi, I don't get your problem exactly - but here as an example: MenuBar myMenu = new MenuBar(); MenuItem myMenuItem = new MenuItem(); myMenuItem.setStyleName("my-css-style"); //do some more stuff myMenu.addItem(myMenuItem); If you really want to add html tags to yur menu ( I cannot imagine why)

Re: style css and gwt

2012-05-05 Thread Assiya EL
hi ; thank you for your reply my problem is that I can not know which menu item I have to add such a style ANNOUNCED a html tag in the example I tried both methods and uibinder but not so much the same result 2012/5/5 mukarev > > hi assiya, > > where's your problem? > > You just need to add c

Re: style css and gwt

2012-05-05 Thread mukarev
hi assiya, where's your problem? You just need to add css styles to your menuitems. You can do this like you prefer: Via UiBinder or via CSSResource or via p