When adding a tab in a TabPanel in GWT the parameter is:
public void add(Widget w, String tabText){...};
How to tell the TabPanel to treat 'tabtext' as HTML? Because the string I am inserting is actually a HTML. Inse开发者_StackOverflowrting HTML in MenuItem can be easily be done with MenuItem:
public MenuItem(String text, boolean asHTML, Command cmd){...}
However, this is not the case with TabPanel, anyone have ideas to insert HTML with TabPanel 'tabText'?
Thanks
There is this method according to the JavaDoc for TabPanel: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/TabPanel.html
I haven't actually tried if it works or not, but it should!
Good luck!
精彩评论