how do i clone a widget in GWT , any widget not just button? -


i saw on here gwt clone widget using dom.clone had method button.wrap , dont wanna clone button wanna clone child elements of horizontalpanel.

im using clone widget removing handlers , stuff cloned widget using setelement method , copying html stuff new html ,

 class clonedwidget extends widget {     public clonedwidget(element element) {         setelement(element);     } } 

any other way ?

afaik there's no built-in way clone arbitrary widget. 1 way solve problem create new widget (in case factory method can helpful).

also, can take @ this question.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -