posted 13 years ago
Hi,
I'm actually trying to write an own widget, enabling to realize a kind of "tabbed panel" based on HTML list (<ul> and <li>).
Besides, no enclosing <div> should be generated - opposed to the most GWT widgets.
The background is that I want to integrate my widget into a css framework: as soon as an enclosing <div> comes into play, the whole widget is not displayed correctly.
I've just tried to write an own Widget class, looking like this:
The problem is that the widget from outside (for example HTML) has an enclosing <div>, thus destroying my design.
The add-Method (line 31, from ComplexPanel class) only takes a Widget as first argument, not an Element - so it seems to be unpossible to get rid of the <div>, doesn't it?
Or maybe there is a more elegant way to generate own widgets, bypassing the enclosing <div> tags?
In any case, my final output should look like this:
Any ideas?
SCJP 6 (88%), SCWCD (89%)