Use this method:
void TabPanel::add(Widget w, Widget tabWidget)
To add images, just create the resources (images you want to use) and
do something like this:
Images[] tabImages = new Image [5];
tabImage [0] = new Image (url1);
tabImage [1] = new Image (url2);
// etc
tabPanel.add (absolutePanel_2, tabImages [1]); // Replace Tab with
tabImages [1]
The spacing could be set through CSS styles. try .gwt-TabPanel .gwt-
TabPanelItem or something similar. If it doesn't work, use the
decorated version of panel. Or you could try to apply a style on image
widget (but you might end up having spaces from left/right of the
image to the end of the tab item, not spaces between items)
On Oct 3, 11:12 pm, Ananda Rao [EMAIL PROTECTED]
wrote:
Hi all,
i know how to create the tab panel. but not able to add the image and
add css to it..
my code is
final RootPanel rootPanel = RootPanel.get();
final TabPanel tabPanel = new TabPanel();
rootPanel.add(tabPanel, 0, 0);
tabPanel.setSize(747px, 355px);
final AbsolutePanel absolutePanel = new AbsolutePanel();
tabPanel.add(absolutePanel, Tab);
absolutePanel.setHeight(100px);
final AbsolutePanel absolutePanel_1 = new AbsolutePanel();
tabPanel.add(absolutePanel_1, Tab);
absolutePanel_1.setHeight(300px);
final AbsolutePanel absolutePanel_2 = new AbsolutePanel();
tabPanel.add(absolutePanel_2, Tab);
absolutePanel_2.setHeight(300px);
tabPanel.selectTab(0);
i want to give space between the tabs buttons and also i want add
image to the tab buttons..
can any one help me in this.
if possible please give me example along with code.
thanks in advance
Regards
Ananda
--~--~-~--~~~---~--~~
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-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---