int row = 0;
this.add(flexPanel);
//////////////////////////////////////////////////////////////
// handle the related attribute
AttrDef attr2 = relatedAttrs.get(0);
String label = attr2.getLabel();
int nl = attr2.getNumberOfLines();
resourceTypeRelatedField = OrrUtil.createTextBoxBase(nl, "400", cl);
String tooltip = "<b>" +label+ "</b>:<br/>" +
attr2.getTooltip() +
"<br/><br/><div align=\"right\">(" +attr2.getUri()+ ")</div>";
flexPanel.setWidget(row, 0, new TLabel("Name:", editing && attr.isRequired(), tooltip ));
flexPanel.getFlexCellFormatter().setColSpan(row, 1, 2);
flexPanel.setWidget(row, 1, resourceTypeFieldWithChoose);
flexPanel.getFlexCellFormatter().setAlignment(row, 0,
HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
);
flexPanel.getFlexCellFormatter().setAlignment(row, 1,
HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
);
row++;
flexPanel.setWidget(row, 0, new TLabel(label, editing && attr2.isRequired(), tooltip ));
flexPanel.getFlexCellFormatter().setColSpan(row, 1, 2);
flexPanel.setWidget(row, 1, resourceTypeRelatedField);
// flexPanel.getFlexCellFormatter().setWidth(row, 0, "250");
flexPanel.getFlexCellFormatter().setAlignment(row, 0,
HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE