Collections.sort(validationActions,
ValidationFactory.ValidationActionComparator);
for (final ValidationAction validationAction : validationActions) {
ValidationDisplayRules validationInfo = validationAction.getRules();
HasValueChangeHandlers<Boolean> changeHandler =
display.addValidationSelector(validationAction.getId()
.getDisplayName(), validationAction
.getDescription(), validationInfo.isEnabled(),
validationInfo.isLocked());
changeHandler
.addValueChangeHandler(new ValidationOptionValueChangeHandler(
validationAction));
}
}