开发者

widget remove itself

开发者 https://www.devze.com 2023-01-25 14:12 出处:网络
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 v

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

精彩评论

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