Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jt/visually segmented case search groups #1511

Merged
merged 13 commits into from
Dec 13, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class DisplayElement {
@Nullable
private String requiredMsg;

@Nullable
private String groupKey;

public DisplayElement() {
}

Expand All @@ -68,8 +71,8 @@ public DisplayElement(Action action, EvaluationContext ec) {
public DisplayElement(DisplayUnit displayUnit, EvaluationContext ec, String id,
@Nullable String input,
@Nullable String receive, @Nullable String hidden, @Nullable String value,
@Nullable String[] itemsetChoicesKeys, @Nullable String[] itemsetChoicesLabels, boolean allowBlankValue, boolean required,
String requiredMsg, String error) {
@Nullable String[] itemsetChoicesKeys, @Nullable String[] itemsetChoicesLabels, boolean allowBlankValue,
boolean required, String requiredMsg, String error, @Nullable String groupKey) {
this.id = id;
this.text = displayUnit.getText().evaluate(ec);
if (displayUnit.getImageURI() != null) {
Expand All @@ -91,6 +94,7 @@ public DisplayElement(DisplayUnit displayUnit, EvaluationContext ec, String id,
this.allowBlankValue = allowBlankValue;
this.required = required;
this.requiredMsg = requiredMsg;
this.groupKey = groupKey;
this.error = error;
}

Expand Down Expand Up @@ -187,4 +191,10 @@ public String getError() {
public String getRequiredMsg() {
return requiredMsg;
}

@JsonGetter(value = "group_key")
Jtang-1 marked this conversation as resolved.
Show resolved Hide resolved
@Nullable
public String getGroupKey() {
return groupKey;
}
}