" {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label)/}",
" {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}");
WidgetInfo label = panel.getChildrenWidgets().get(0);
RowLayoutDataInfo rowData = RowLayoutInfo.getRowData(label);
//
VirtualLayoutDataVariableSupport variable =
(VirtualLayoutDataVariableSupport) rowData.getVariableSupport();
assertTrue(variable.isDefault());
assertEquals("(virtual layout data)", variable.getTitle());
// no target (not sure why)
try {
variable.getStatementTarget();
fail();
} catch (IllegalStateException e) {
}
// materialize
{
NodeTarget target = getNodeStatementTarget(panel, false, 1, 1);
assertEquals("rowLayoutData.", variable.getAccessExpression(target));
assertHierarchy(
"{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(label, rowLayoutData)/}",
" {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
" {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label, rowLayoutData)/}",
" {new: com.gwtext.client.widgets.layout.RowLayoutData} {local-unique: rowLayoutData} {/new RowLayoutData(50)/ /add(label, rowLayoutData)/}");