});
final FlexTable table = new FlexTable();
VerticalPanel vp = new VerticalPanel();
vp.add(new SmallLabel(constants.FactTypes()));
vp.add(factsCombo);
table.setWidget(0,
0,
vp);
vp = new VerticalPanel();
vp.add(new SmallLabel(constants.Field()));
vp.add(fieldsCombo);
table.setWidget(1,
0,
vp);
vp = new VerticalPanel();
HorizontalPanel hp = new HorizontalPanel();
vp.add(new SmallLabel(constants.Constraints()));
hp.add(constraintsCombo);
VerticalPanel btnPanel = new VerticalPanel();
btnPanel.add(addNewConstraint);
btnPanel.add(removeConstraint);
hp.add(btnPanel);
vp.add(hp);
table.setWidget(2,
0,
vp);
table.getFlexCellFormatter().setRowSpan(2,
0,
3);
constraintsCombo.addChangeHandler(new ChangeHandler() {
public void onChange(ChangeEvent event) {
showConstraintConfig();
}
});
vpConstraintConf.add(new SmallLabel(constants.ConstraintsParameters()));
vpConstraintConf.add(new SmallLabel(""));
table.setWidget(0,
1,
vpConstraintConf);
table.getFlexCellFormatter().setRowSpan(0,
1,