|Modifier and Type||Method and Description|
Gets the editor component where the currently processed key typed event occurred.
Gets the edited document.
Gets the insertion offset.
Gets the insertion text.
public JTextComponent getComponent()
public Document getDocument()
public int getOffset()
KeyEventhappened). This is also the offset where the insertion text will end up.
public String getText()
It is guaranteed that the text will have length equal to 1 for contexts
that are passed to
methods. In these methods
getText returns exactly what
a user typed in the editor.
afterInsert method the text returned from
method can have any length and will correspond to either the originally typed
text or to text supplied by one of the interceptors participating in
the key typed event processing.
Built on January 23 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.