Class Dialog

java.lang.Object
pt.tecnico.uilib.Dialog
All Implemented Interfaces:
AutoCloseable

public class Dialog extends Object implements AutoCloseable
Dialog with the user.
  • Field Details

    • UI

      public static Dialog UI
      Single instance of this class.
  • Constructor Details

    • Dialog

      public Dialog(InteractionDriver backend)
      Parameters:
      backend - interaction back-end.
  • Method Details

    • open

      public void open(Menu menu)
      Parameters:
      menu - menu to open.
    • fill

      public void fill(Form form)
      Parameters:
      form - form to fill.
    • render

      public void render(String title, String text)
      Parameters:
      title - message title.
      text - message text.
    • close

      public void close()
      Close the interaction.
      Specified by:
      close in interface AutoCloseable