Skip to content

Commit

Permalink
fixed General to use multi-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
will2312 committed Mar 28, 2021
1 parent ca14a7a commit e774cf6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void setupForm() {
List<String> pipeTypeOptions = new ArrayList<String>();
pipeTypeOptions.add("Enclosed Pipe");
pipeTypeOptions.add("Open Channel");
FormElementPickerSingle typeValue = FormElementPickerSingle.createInstance().setTitle("Type").setOptions(pipeTypeOptions);
FormElementPickerMulti typeValue = FormElementPickerMulti.createInstance().setTitle("Type").setOptions(pipeTypeOptions);
type = typeValue.getValue();

List<String> pipeSizeOptions = new ArrayList<String>();
Expand All @@ -100,7 +100,7 @@ private void setupForm() {
pipeSizeOptions.add("20\"");
pipeSizeOptions.add("24\"");
pipeSizeOptions.add("36\"");
FormElementPickerSingle pipeSizeValue = FormElementPickerSingle.createInstance().setTitle("Pipe Size").setOptions(pipeSizeOptions);
FormElementPickerMulti pipeSizeValue = FormElementPickerMulti.createInstance().setTitle("Pipe Size").setOptions(pipeSizeOptions);
pipeSize = pipeSizeValue.getValue();

List<String> channelWidthOptions = new ArrayList<String;
Expand All @@ -114,7 +114,7 @@ private void setupForm() {
channelWidthOptions.add("16\"");
channelWidthOptions.add("18\"");
channelWidthOptions.add("20\"");
FormElementPickerSingle channelBottomWidthValue = FormElementPickerSingle.createInstance().setTitle("Channel Bottom Width")
FormElementPickerMulti channelBottomWidthValue = FormElementPickerMulti.createInstance().setTitle("Channel Bottom Width")
.setOptions(channelWidthOptions);
channelBottomWidth = channelBottomWidthValue.getValue();

Expand All @@ -129,7 +129,7 @@ private void setupForm() {
receivingWaterOptions.add("Beaver Dam Ditch");
receivingWaterOptions.add("Kaiser Ditch");

FormElementPickerSingle receiving = FormElementPickerSingle.createInstance().setTitle("Receiving Water").setOptions(receivingWaterOptions);
FormElementPickerMulti receiving = FormElementPickerMulti.createInstance().setTitle("Receiving Water").setOptions(receivingWaterOptions);
receivingWater = receiving.getValue();
/*
FormElementTextSingleLine routine = FormElementTextSingleLine.createInstance().setTitle("Routine Evaluation").setValue("");
Expand Down

0 comments on commit e774cf6

Please sign in to comment.