Composed text contained in the event replaces any existing composed text in the text component. The caret defined in the event is saved and will be returned by getCaret if there is composed text. The component is redrawn. In this simple component, we only keep input method highlight attributes. Smarter components may want to keep language, reading, input method segment, and other attributes as well.
Handles changes to the caret within composed text.
The caret defined in the event is saved and will be returned by getCaret if there is composed text. The component is redrawn. Gets the location of a specified offset in the current composed text, or of the selection in committed text. Gets the offset within the composed text for the specified absolute x and y coordinates on the screen. In this simple component, that's always at the end of the committed text.