System.out.println("COMPONENT CONSTRAINTS");
if (!(layoutPanel.getLayout() instanceof FormLayout)) {
System.out.println("The container's layout is not a FormLayout.");
return;
}
FormLayout layout = (FormLayout) layoutPanel.getLayout();
int childCount = layoutPanel.getWidgetCount();
for (int i = 0; i < childCount; i++) {
Widget child = layoutPanel.getWidget(i);
CellConstraints cc = layout.getConstraints(child);
String ccString = cc == null ? "no constraints"
: cc.toShortString(layout);
System.out.print(ccString);
System.out.print("; ");
String childType = child.getClass().getName();