Package org.apache.pivot.wtk
Interface TextAreaContentListener
-
- All Known Implementing Classes:
TerraTextAreaSkin
,TextAreaContentListener.Adapter
,TextAreaContentListener.Listeners
,TextAreaSkin
public interface TextAreaContentListener
Text area text listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TextAreaContentListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TextAreaContentListener.Listeners
Text area content listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
paragraphInserted(TextArea textArea, int index)
Called when a paragraph has been inserted into a text area's paragraph sequence.default void
paragraphsRemoved(TextArea textArea, int index, Sequence<TextArea.Paragraph> removed)
Called when paragraphs have been removed from a text area's paragraph sequence.default void
textChanged(TextArea textArea)
Called when a text area's text has changed.
-
-
-
Method Detail
-
paragraphInserted
default void paragraphInserted(TextArea textArea, int index)
Called when a paragraph has been inserted into a text area's paragraph sequence.- Parameters:
textArea
- The source of the event.index
- The index at which the paragraph was inserted.
-
paragraphsRemoved
default void paragraphsRemoved(TextArea textArea, int index, Sequence<TextArea.Paragraph> removed)
Called when paragraphs have been removed from a text area's paragraph sequence.- Parameters:
textArea
- The source of the event.index
- The starting index from which the paragraphs were removed.removed
- The paragraphs that were removed.
-
textChanged
default void textChanged(TextArea textArea)
Called when a text area's text has changed.- Parameters:
textArea
- The source of the event.
-
-