Class MessageboxDlg

    • Constructor Detail

      • MessageboxDlg

        public MessageboxDlg()
    • Method Detail

      • onOK

        public void onOK()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • onCancel

        public void onCancel()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setButtons

        public void setButtons​(Messagebox.Button[] buttons,
                               java.lang.String[] btnLabels)
        Sets what buttons are allowed.
      • setEventListener

        public void setEventListener​(EventListener<Messagebox.ClickEvent> listener)
        Sets the event listener.
        Parameters:
        listener - the event listener. If null, no invocation at all.
        Since:
        3.0.4
      • setFocus

        public void setFocus​(Messagebox.Button button)
        Sets the focus.
        Parameters:
        button - the button to gain the focus. If 0, the default one (i.e., the first one) is assumed.
        Since:
        3.0.0
      • endModal

        public void endModal​(Messagebox.Button button)
                      throws java.lang.Exception
        Called only internally.
        Throws:
        java.lang.Exception
      • getResult

        public Messagebox.Button getResult()
        Returns the result which is the button being pressed.
      • onClose

        public void onClose()
        Description copied from class: Window
        Process the onClose event sent when the close button is pressed.

        Default: detach itself.

        Overrides:
        onClose in class Window