Package org.apache.pivot.wtk
Interface TextInputListener
-
- All Known Implementing Classes:
TerraTextInputSkin
,TextInputListener.Adapter
,TextInputListener.Listeners
public interface TextInputListener
Text input listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TextInputListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TextInputListener.Listeners
Text input listener listeners list.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
editableChanged(TextInput textInput)
Called when the editable state has changed.default void
maximumLengthChanged(TextInput textInput, int previousMaximumLength)
Called when a text input's maximum length has changed.default void
passwordChanged(TextInput textInput)
Called when a text input's password flag has changed.default void
promptChanged(TextInput textInput, java.lang.String previousPrompt)
Called when a text input's prompt has changed.default void
strictValidationChanged(TextInput textInput)
Called when a text input's strict validation flag has changed.default void
textSizeChanged(TextInput textInput, int previousTextSize)
Called when a text input's text size has changed.default void
textValidatorChanged(TextInput textInput, Validator previousValidator)
Called when the validator changes.default void
textValidChanged(TextInput textInput)
Called when the text changes validity.
-
-
-
Method Detail
-
textSizeChanged
default void textSizeChanged(TextInput textInput, int previousTextSize)
Called when a text input's text size has changed.- Parameters:
textInput
- The source of this event.previousTextSize
- The previous text size for the control
-
maximumLengthChanged
default void maximumLengthChanged(TextInput textInput, int previousMaximumLength)
Called when a text input's maximum length has changed.- Parameters:
textInput
- The source of this event.previousMaximumLength
- The previous maximum text length.
-
passwordChanged
default void passwordChanged(TextInput textInput)
Called when a text input's password flag has changed.- Parameters:
textInput
- The source of this event.
-
promptChanged
default void promptChanged(TextInput textInput, java.lang.String previousPrompt)
Called when a text input's prompt has changed.- Parameters:
textInput
- The source of this event.previousPrompt
- The previous prompt string.
-
textValidatorChanged
default void textValidatorChanged(TextInput textInput, Validator previousValidator)
Called when the validator changes.- Parameters:
textInput
- The source of this event.previousValidator
- The previous validator for the text.
-
strictValidationChanged
default void strictValidationChanged(TextInput textInput)
Called when a text input's strict validation flag has changed.- Parameters:
textInput
- The text input that has changed.
-
textValidChanged
default void textValidChanged(TextInput textInput)
Called when the text changes validity.- Parameters:
textInput
- The text input that has been changed.
-
editableChanged
default void editableChanged(TextInput textInput)
Called when the editable state has changed.- Parameters:
textInput
- The text input whose state has changed.
-
-