X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTMessageBox.java;h=4c453790fbeff1f941b284e49903fe4bd2e59a2e;hb=615a0d99fd0aa4437116dd083147f9150d5e6527;hp=0e5cf7d4871fa5d78e7bb5ef340fc3405ecbd3cb;hpb=7d922e0dfd9a6da42b84e01d52adeec6fff10025;p=nikiroo-utils.git diff --git a/src/jexer/TMessageBox.java b/src/jexer/TMessageBox.java index 0e5cf7d..4c45379 100644 --- a/src/jexer/TMessageBox.java +++ b/src/jexer/TMessageBox.java @@ -58,6 +58,10 @@ public class TMessageBox extends TWindow { */ private static final ResourceBundle i18n = ResourceBundle.getBundle(TMessageBox.class.getName()); + // ------------------------------------------------------------------------ + // Constants -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Message boxes have these supported types. */ @@ -83,16 +87,6 @@ public class TMessageBox extends TWindow { YESNOCANCEL }; - /** - * The type of this message box. - */ - private Type type; - - /** - * My buttons. - */ - private List buttons; - /** * Message boxes have these possible results. */ @@ -118,6 +112,20 @@ public class TMessageBox extends TWindow { NO }; + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + + /** + * The type of this message box. + */ + private Type type; + + /** + * My buttons. + */ + private List buttons; + /** * Which button was clicked: OK, CANCEL, YES, or NO. */ @@ -132,6 +140,10 @@ public class TMessageBox extends TWindow { return result; } + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Public constructor. The message box will be centered on screen. * @@ -337,6 +349,10 @@ public class TMessageBox extends TWindow { } } + // ------------------------------------------------------------------------ + // TWindow ---------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Handle keystrokes. * @@ -395,7 +411,8 @@ public class TMessageBox extends TWindow { break; default: - throw new IllegalArgumentException("Invalid message box type: " + type); + throw new IllegalArgumentException("Invalid message box type: " + + type); } super.onKeypress(keypress);