1 package com
.googlecode
.lanterna
.gui2
.dialogs
;
3 import com
.googlecode
.lanterna
.gui2
.LocalizedString
;
6 * This enum has the available selection of buttons that you can add to a {@code MessageDialog}. They are used both for
7 * specifying which buttons the dialog will have but is also returned when the user makes a selection
11 public enum MessageDialogButton
{
15 OK(LocalizedString
.OK
),
19 Cancel(LocalizedString
.Cancel
),
23 Yes(LocalizedString
.Yes
),
27 No(LocalizedString
.No
),
31 Close(LocalizedString
.Close
),
35 Abort(LocalizedString
.Abort
),
39 Ignore(LocalizedString
.Ignore
),
43 Retry(LocalizedString
.Retry
),
48 Continue(LocalizedString
.Continue
);
50 private final LocalizedString label
;
52 MessageDialogButton(final LocalizedString label
) {
57 public String
toString() {
58 return label
.toString();