" interface Binder extends UiBinder<Widget, Test> {}",
" @UiField FlowPanel panel;",
"}"));
waitForAutoBuild();
// parse
ComplexPanelInfo panel =
parse(
"// filler filler filler filler filler",
"// filler filler filler filler filler",
"<ui:UiBinder>",
" <g:FlowPanel ui:field='panel'>",
" <g:Button text='AAA'/>",
" </g:FlowPanel>",
"</ui:UiBinder>");
assertHierarchy(
"// filler filler filler filler filler",
"// filler filler filler filler filler",
"<g:FlowPanel ui:field='panel'>",
" <g:Button text='AAA'>");
refresh();
// prepare target
MorphingTargetDescription morphingTarget = null;
{
for (MorphingTargetDescription target : panel.getDescription().getMorphingTargets()) {
if ("com.google.gwt.user.client.ui.HorizontalPanel".equals(target.getComponentClass().getName())) {
morphingTarget = target;
break;
}
}