private int getSelectAllOnFocusPolicy() {
		Object value = getClientProperty( SELECT_ALL_ON_FOCUS_POLICY );
		// Note: using String.valueOf() because selectAllOnFocusPolicy may be null
		switch( String.valueOf( value instanceof String ? value : selectAllOnFocusPolicy ) ) {
			default:
			case SELECT_ALL_ON_FOCUS_POLICY_NEVER:  return NEVER;
			case SELECT_ALL_ON_FOCUS_POLICY_ONCE:   return ONCE;
			case SELECT_ALL_ON_FOCUS_POLICY_ALWAYS: return ALWAYS;
		}
	}
Caret that can select all text on focus gained.
Also fixes Swing's double-click-and-drag behavior so that dragging after
a double-click extends selection by whole words.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatCaret.java