use of org.openforis.collect.designer.model.CheckType in project collect by openforis.
the class AttributeVM method addCheck.
@Command
public void addCheck(@BindingParam("checkType") String checkType) {
if (checkCanAddCheck()) {
CheckType type = CheckType.valueOf(checkType.toUpperCase());
editingNewCheck = true;
editedCheck = CheckType.createCheck(type);
openCheckEditPopUp();
}
}
use of org.openforis.collect.designer.model.CheckType in project collect by openforis.
the class AttributeVM method getCheckMessage.
public String getCheckMessage(Check<?> check) {
String result = check.getMessage(currentLanguageCode);
if (result == null) {
CheckType type = CheckType.valueOf(check);
result = type.getDefaultMessage();
}
return result;
}
Aggregations