org.apache.pivot.wtk
Interface TextInputContentListener

All Known Implementing Classes:
TerraTextInputSkin, TextInputContentListener.Adapter

public interface TextInputContentListener

Text input text listener.


Nested Class Summary
static class TextInputContentListener.Adapter
          Text input text listener adapter.
 
Method Summary
 void insertTextVetoed(TextInput textInput, Vote reason)
          Called when a text insertion has been vetoed.
 Vote previewInsertText(TextInput textInput, CharSequence text, int index)
          Called to preview a text insertion.
 Vote previewRemoveText(TextInput textInput, int index, int count)
          Called to preview a text removal.
 void removeTextVetoed(TextInput textInput, Vote reason)
          Called when a text removal has been vetoed.
 void textChanged(TextInput textInput)
          Called when a text input's text has changed.
 void textInserted(TextInput textInput, int index, int count)
          Called when text has been inserted into a text input.
 void textRemoved(TextInput textInput, int index, int count)
          Called when text has been removed from a text input.
 

Method Detail

previewInsertText

Vote previewInsertText(TextInput textInput,
                       CharSequence text,
                       int index)
Called to preview a text insertion.

Parameters:
textInput - The source of the event.
text - The text that will be inserted.
index - The index at which the text will be inserted.

insertTextVetoed

void insertTextVetoed(TextInput textInput,
                      Vote reason)
Called when a text insertion has been vetoed.

Parameters:
textInput - The source of the event.
reason - The reason the event was vetoed.

textInserted

void textInserted(TextInput textInput,
                  int index,
                  int count)
Called when text has been inserted into a text input.

Parameters:
textInput - The source of the event.
index - The index at which the text was inserted.
count - The number of characters that were inserted.

previewRemoveText

Vote previewRemoveText(TextInput textInput,
                       int index,
                       int count)
Called to preview a text removal.

Parameters:
textInput - The source of the event.
index - The starting index from which the text will be removed.

removeTextVetoed

void removeTextVetoed(TextInput textInput,
                      Vote reason)
Called when a text removal has been vetoed.

Parameters:
textInput - The source of the event.
reason - The reason the event was vetoed.

textRemoved

void textRemoved(TextInput textInput,
                 int index,
                 int count)
Called when text has been removed from a text input.

Parameters:
textInput - The source of the event.
index - The index from which the text was removed.
count - The number of characters that were removed.

textChanged

void textChanged(TextInput textInput)
Called when a text input's text has changed.

Parameters:
textInput - The source of the event.