@Override
	protected void updateValueFromComponent() {
		String text = field.getText();

		// special case where user didn't enter a value on a string field that was defined without
		// a value
		if (getValue() == null && text.equals("")) {
			return;
		}
		setValue(field.getIntValue());
	}
Constructs an IntValue with a default value.
@param name the name of the value
@param defaultValue the default value
@param displayAsHex if true, the value will be displayed as hex, otherwise it will display
as decimal.
Ghidra/Framework/Docking/src/main/java/docking/widgets/values/IntValue.java