Package org.apache.pivot.wtk
Class TextInputContentListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.TextInputContentListener.Adapter
-
- All Implemented Interfaces:
TextInputContentListener
- Enclosing interface:
- TextInputContentListener
@Deprecated public static class TextInputContentListener.Adapter extends java.lang.Object implements TextInputContentListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Text input content listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextInputContentListener
TextInputContentListener.Adapter, TextInputContentListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
insertTextVetoed(TextInput textInput, Vote reason)
Deprecated.Called when a text insertion has been vetoed.Vote
previewInsertText(TextInput textInput, java.lang.CharSequence text, int index)
Deprecated.Called to preview a text insertion.Vote
previewRemoveText(TextInput textInput, int index, int count)
Deprecated.Called to preview a text removal.void
removeTextVetoed(TextInput textInput, Vote reason)
Deprecated.Called when a text removal has been vetoed.void
textChanged(TextInput textInput)
Deprecated.Called when a text input's text has changed.void
textInserted(TextInput textInput, int index, int count)
Deprecated.Called when text has been inserted into a text input.void
textRemoved(TextInput textInput, int index, int count)
Deprecated.Called when text has been removed from a text input.
-
-
-
Method Detail
-
previewInsertText
public Vote previewInsertText(TextInput textInput, java.lang.CharSequence text, int index)
Deprecated.Description copied from interface:TextInputContentListener
Called to preview a text insertion.- Specified by:
previewInsertText
in interfaceTextInputContentListener
- Parameters:
textInput
- The source of the event.text
- The text that will be inserted.index
- The index at which the text will be inserted.- Returns:
- The accumulated vote as to whether to allow this insertion.
-
insertTextVetoed
public void insertTextVetoed(TextInput textInput, Vote reason)
Deprecated.Description copied from interface:TextInputContentListener
Called when a text insertion has been vetoed.- Specified by:
insertTextVetoed
in interfaceTextInputContentListener
- Parameters:
textInput
- The source of the event.reason
- The reason the event was vetoed.
-
textInserted
public void textInserted(TextInput textInput, int index, int count)
Deprecated.Description copied from interface:TextInputContentListener
Called when text has been inserted into a text input.- Specified by:
textInserted
in interfaceTextInputContentListener
- 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)
Deprecated.Description copied from interface:TextInputContentListener
Called to preview a text removal.- Specified by:
previewRemoveText
in interfaceTextInputContentListener
- Parameters:
textInput
- The source of the event.index
- The starting index from which the text will be removed.count
- The count of characters to be removed starting from that index.- Returns:
- The accumulated vote as to whether to allow this removal.
-
removeTextVetoed
public void removeTextVetoed(TextInput textInput, Vote reason)
Deprecated.Description copied from interface:TextInputContentListener
Called when a text removal has been vetoed.- Specified by:
removeTextVetoed
in interfaceTextInputContentListener
- Parameters:
textInput
- The source of the event.reason
- The reason the event was vetoed.
-
textRemoved
public void textRemoved(TextInput textInput, int index, int count)
Deprecated.Description copied from interface:TextInputContentListener
Called when text has been removed from a text input.- Specified by:
textRemoved
in interfaceTextInputContentListener
- 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)
Deprecated.Description copied from interface:TextInputContentListener
Called when a text input's text has changed.- Specified by:
textChanged
in interfaceTextInputContentListener
- Parameters:
textInput
- The source of the event.
-
-