I took a similar approach but made it more generic and didn't add
special Widget wrapping methods (I just add ElementPanel("LI") to an
ElementPanel("UL") or ElementPanel("OL"). I like your approach which
enforces usage.
/**
* A generic element panel for Hx, UL, LI, etc.
*/
public class ElementPanel extends ComplexPanel implements HasText,
HasHTML {
public ElementPanel(String tagname) {
setElement(DOM.createElement(tagname));
}
// more stuff in here .....
}
I'm not sure I understand the need for the special clear() method
implementation in your code.
-Andy
> For the code go here:
http://markusbraindump.blogspot.com/2010/09/gwt-panel-for-html-ulli-l...