org.apache.pivot.wtk
Interface TextAreaContentListener

All Known Implementing Classes:
TerraTextAreaSkin, TextAreaContentListener.Adapter, TextAreaSkin

public interface TextAreaContentListener

Text area text listener interface.


Nested Class Summary
static class TextAreaContentListener.Adapter
          Text input text listener adapter.
 
Method Summary
 void paragraphInserted(TextArea textArea, int index)
          Called when a paragraph has been inserted into a text area's paragraph sequence.
 void paragraphsRemoved(TextArea textArea, int index, Sequence<TextArea.Paragraph> removed)
          Called when paragraphs have been removed from a text area's paragraph sequence.
 void textChanged(TextArea textArea)
          Called when a text area's text has changed.
 

Method Detail

paragraphInserted

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

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

void textChanged(TextArea textArea)
Called when a text area's text has changed.

Parameters:
textArea - The source of the event.