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.
精彩评论