1 package com
.googlecode
.lanterna
.gui2
.dialogs
;
4 * Interface to implement for custom validation of text input in a {@code TextInputDialog}
7 public interface TextInputDialogResultValidator
{
9 * Tests the content in the text box if it is valid or not
10 * @param content Current content of the text box
11 * @return {@code null} if the content is valid, or an error message explaining what's wrong with the content
14 String
validate(String content
);