X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTInputBox.java;h=02a468f7dd958bb13bd746efce307ef10fcd52da;hb=615a0d99fd0aa4437116dd083147f9150d5e6527;hp=6ade42fb6d0cd5d70ed4fe8fd34933ec6cac4fb5;hpb=7d922e0dfd9a6da42b84e01d52adeec6fff10025;p=nikiroo-utils.git diff --git a/src/jexer/TInputBox.java b/src/jexer/TInputBox.java index 6ade42f..02a468f 100644 --- a/src/jexer/TInputBox.java +++ b/src/jexer/TInputBox.java @@ -44,19 +44,18 @@ package jexer; */ public class TInputBox extends TMessageBox { + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * The input field. */ private TField field; - /** - * Retrieve the answer text. - * - * @return the answer text - */ - public String getText() { - return field.getText(); - } + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ /** * Public constructor. The input box will be centered on screen. @@ -116,4 +115,21 @@ public class TInputBox extends TMessageBox { getApplication().yield(); } + // ------------------------------------------------------------------------ + // TMessageBox ------------------------------------------------------------ + // ------------------------------------------------------------------------ + + // ------------------------------------------------------------------------ + // TInputBox -------------------------------------------------------------- + // ------------------------------------------------------------------------ + + /** + * Retrieve the answer text. + * + * @return the answer text + */ + public String getText() { + return field.getText(); + } + }