• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

GWT and creation of own widgets

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 45
Google Web Toolkit Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you planning to use javascript to modify the div you are creating?
 
and POOF! You're gone! But look, this tiny ad is still here:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic