Interface TextBox.TextChangeListener

Enclosing class:
TextBox

public static interface TextBox.TextChangeListener
Listener interface for when the TextBox content has changed. This can be either by user interactions with the component or through programmatically adding and removing lines (there is a flag set on the callback method to make it possible to distinguish between the two).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onTextChanged(String newText, boolean changedByUserInteraction)
    Callback method invoked by the TextBox when the text content has changed
  • Method Details

    • onTextChanged

      void onTextChanged(String newText, boolean changedByUserInteraction)
      Callback method invoked by the TextBox when the text content has changed
      Parameters:
      newText - The new content of the TextBox
      changedByUserInteraction - If true, then the TextBox was modified through user interaction, otherwise the content changed from a programmatical update.