Module AM37

Class ButtonsDialog

All Implemented Interfaces:
KeyEventListener

public final class ButtonsDialog
extends InputDialog
An InputDialog with one or two clickable buttons, each of them sending a value to the input manager
  • Constructor Details

    • ButtonsDialog

      public ButtonsDialog​(java.lang.String title, java.lang.String message, Window caller, java.util.Map<java.lang.String,​java.lang.String> buttons, boolean stackButtons)
      Default constructor

      Creates a standard size inputDialog window, using the properties file, without printing it; if other dialogs are already showing, the new dialog is created at an offset from the already existing one.

      The console echo is disabled as soon as the Dialog is created

      Parameters:
      title - the dialog title
      message - the dialog message
      caller - the window which invoked this
      buttons - a map containing the Button text/Return value combos
      stackButtons - a flag which, if true, makes the dialog print the buttons like in a stack