Package org.apache.pivot.wtk
Interface TextPaneCharacterListener
-
- All Known Implementing Classes:
TextPaneCharacterListener.Adapter
,TextPaneCharacterListener.Listeners
public interface TextPaneCharacterListener
Text pane character listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TextPaneCharacterListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TextPaneCharacterListener.Listeners
Text pane character listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
charactersInserted(TextPane textPane, int index, int count)
Called when characters have been inserted into a text pane.default void
charactersRemoved(TextPane textPane, int index, int count)
Called when characters have been removed from a text pane.
-
-
-
Method Detail
-
charactersInserted
default void charactersInserted(TextPane textPane, int index, int count)
Called when characters have been inserted into a text pane.- Parameters:
textPane
- The text pane whose text has changed.index
- The starting point of the text insertion.count
- The count of characters inserted there.
-
charactersRemoved
default void charactersRemoved(TextPane textPane, int index, int count)
Called when characters have been removed from a text pane.- Parameters:
textPane
- The text pane whose text has changed.index
- The starting point where text was removed.count
- Number of characters removed starting from there.
-
-