Fix UTF8 bug, create first executable JAR file
[jvcard.git] / src / com / googlecode / lanterna / gui2 / dialogs / TextInputDialogResultValidator.java
1 package com.googlecode.lanterna.gui2.dialogs;
2
3 /**
4 * Interface to implement for custom validation of text input in a {@code TextInputDialog}
5 * @author Martin
6 */
7 public interface TextInputDialogResultValidator {
8 /**
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
12 * otherwise
13 */
14 String validate(String content);
15 }