Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
Interface TextBox.TextChangeListener
-
- Enclosing class:
- TextBox
public static interface TextBox.TextChangeListener
Listener interface for when theTextBox
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onTextChanged(java.lang.String newText, boolean changedByUserInteraction)
Callback method invoked by theTextBox
when the text content has changed
-
-
-
Method Detail
-
onTextChanged
void onTextChanged(java.lang.String newText, boolean changedByUserInteraction)
Callback method invoked by theTextBox
when the text content has changed- Parameters:
newText
- The new content of theTextBox
changedByUserInteraction
- Iftrue
, then the TextBox was modified through user interaction, otherwise the content changed from a programmatical update.
-
-