public void setSelectedValue(String value) {
		int index = indexOf(value);
		if (index == -1) {
			throw new IllegalArgumentException("No such value in Enum");
		}

		selected = index;
	}
Sets the currentValue to the given value.
@exception IllegalArgumentException thrown if the given value is not one
of the set of allowed values.
Ghidra/Framework/Docking/src/main/java/docking/widgets/dialogs/StringChoices.java