private boolean isValidPrefix(String s) {
		switch (s) {
			case "0x":
				return allowsHexPrefix;
			case "-0x":
				return allowsHexPrefix && allowsNegative;
			case "-":
				return allowsNegative;
			default:
				return false;
		}

	}
Sets the textField to the given value taking into account the current configuration.

@param value the value to convert to a string for the textField.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/IntegerTextField.java