"<ui:UiBinder>",
" <g:FlowPanel/>",
"</ui:UiBinder>");
refresh();
// add new Button
WidgetInfo newButton = createButton();
flowContainer_CREATE(panel, newButton, null);
// open listener
{
final Property property = PropertyUtils.getByPath(newButton, "Events/onClick");
ExecutionUtils.run(newButton, new RunnableEx() {
public void run() throws Exception {
ReflectionUtils.invokeMethod(property, "openListener()");
}
});
waitEventLoop(0);
}
assertJava(
"public class Test extends Composite {",
" interface Binder extends UiBinder<Widget, Test> {}",
" private static final Binder binder = GWT.create(Binder.class);",
" @UiField Button button;",
" public Test() {",
" initWidget(binder.createAndBindUi(this));",
" }",
" @UiHandler('button')",
" void onButtonClick(ClickEvent event) {",
" }",
"}");
// do delete
newButton.delete();
assertXML(
"// filler filler filler filler filler",
"// filler filler filler filler filler",
"<ui:UiBinder>",
" <g:FlowPanel/>",