@Override
	public String getAtIndex(int part, int index) {
		String text = field.getText();
		if (index < 0 || index >= text.length()) {
			return null;
		}

		switch (part) {
			case AccessibleText.CHARACTER:
				return text.substring(index, index + 1);
			case AccessibleText.WORD:
				BreakIterator words = BreakIterator.getWordInstance(locale);
				words.setText(text);
				int end = words.following(index);
				return text.substring(words.previous(), end);
			case AccessibleText.SENTENCE:
				BreakIterator sentences = BreakIterator.getSentenceInstance(locale);
				sentences.setText(text);
				end = sentences.following(index);
				return text.substring(sentences.previous(), end);
			default:
				return null;
		}

	}
Returns the field associated with this AccessibleField.
@return the field associated with this AccessibleField
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/AccessibleField.java