开发者

widget remove itself

i have widget开发者_高级运维 like below

in ui.xml

 textbox, anchor_delete 

when anchor_delete is press, @uihandler fired and i want entire widget textbox and anchor_delete remove itself from the view. Is this possible

@UiHandler("anchor_delete")
void deleteRowAction(ClickEvent event) {

   getWidget().removeFromParent(); //i tried this but fail
}


Did you try:

textbox.removeFromParent();
anchor_delete.removeFromParent();

Assuming both are widgets.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜