org.apache.pivot.wtk
Class TextInputContentListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.TextInputContentListener.Adapter
All Implemented Interfaces:
TextInputContentListener
Enclosing interface:
TextInputContentListener

public static class TextInputContentListener.Adapter
extends Object
implements TextInputContentListener

Text input text listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextInputContentListener
TextInputContentListener.Adapter
 
Constructor Summary
TextInputContentListener.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInputContentListener.Adapter

public TextInputContentListener.Adapter()
Method Detail

previewInsertText

public Vote previewInsertText(TextInput textInput,
                              CharSequence text,
                              int index)
Description copied from interface: TextInputContentListener
Called to preview a text insertion.

Specified by:
previewInsertText in interface TextInputContentListener
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

public void insertTextVetoed(TextInput textInput,
                             Vote reason)
Description copied from interface: TextInputContentListener
Called when a text insertion has been vetoed.

Specified by:
insertTextVetoed in interface TextInputContentListener
Parameters:
textInput - The source of the event.
reason - The reason the event was vetoed.

textInserted

public void textInserted(TextInput textInput,
                         int index,
                         int count)
Description copied from interface: TextInputContentListener
Called when text has been inserted into a text input.

Specified by:
textInserted in interface TextInputContentListener
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

public Vote previewRemoveText(TextInput textInput,
                              int index,
                              int count)
Description copied from interface: TextInputContentListener
Called to preview a text removal.

Specified by:
previewRemoveText in interface TextInputContentListener
Parameters:
textInput - The source of the event.
index - The starting index from which the text will be removed.

removeTextVetoed

public void removeTextVetoed(TextInput textInput,
                             Vote reason)
Description copied from interface: TextInputContentListener
Called when a text removal has been vetoed.

Specified by:
removeTextVetoed in interface TextInputContentListener
Parameters:
textInput - The source of the event.
reason - The reason the event was vetoed.

textRemoved

public void textRemoved(TextInput textInput,
                        int index,
                        int count)
Description copied from interface: TextInputContentListener
Called when text has been removed from a text input.

Specified by:
textRemoved in interface TextInputContentListener
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

public void textChanged(TextInput textInput)
Description copied from interface: TextInputContentListener
Called when a text input's text has changed.

Specified by:
textChanged in interface TextInputContentListener
Parameters:
textInput - The source of the event.