@Override
	public void fieldOptionsChanged(Options options, String optionName, Object oldValue,
			Object newValue) {

		boolean updateModel = false;
		switch (optionName) {
			case MAX_DISPLAY_LINES_OPTION:
				setMaximumLinesToDisplay(((Integer) newValue).intValue(), options);
				updateModel = true;
				break;
			case ENABLE_WORD_WRAP_OPTION:
				isWordWrap = ((Boolean) newValue).booleanValue();
				updateModel = true;
				break;
			case UNDERLINE_OPTION:
				underlineChoice = (UNDERLINE_CHOICE) newValue;
				updateModel = true;
				break;
			case SPACE_AFTER_SEPARATOR_OPTION:
				spaceAfterSeparator = ((Boolean) newValue).booleanValue();
				updateModel = true;
				break;
			case WRAP_ON_SEMICOLON_OPTION:
				wrapOnSemicolon = ((Boolean) newValue).booleanValue();
				updateModel = true;
				break;
		}

		if (updateModel) {
			model.update();
		}
	}
Constructor
@param name the name of the field.
@param model the model that the field belongs to.
@param hlProvider the HightlightProvider.
@param displayOptions the Options for display properties.
@param fieldOptions the Options for field specific properties.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/OperandFieldHelper.java