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
Post a Comment