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