Class MessageBox.Builder

  • Enclosing class:
    MessageBox

    public static class MessageBox.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
        The MessageBox builder. You can use it to make your MessageBox easily.
    • Method Detail

      • build

        public MessageBox build()
        After you make all of your process of build, call this to return the result.
      • setTitle

        public MessageBox.Builder setTitle​(java.lang.String title)
        Sets the MessageBox title.
      • setBaseContainer

        public MessageBox.Builder setBaseContainer​(Container baseContainer)
        This is the content that will be placed between the title and the buttons. You can put anything here.
        Note: After you set this, the message will not appear since you're putting a Container above it.
      • setImage

        public MessageBox.Builder setImage​(Image image)
        Sets the image that is displayed on the top of the MessageBox.
      • setMessageBoxInsets

        public MessageBox.Builder setMessageBoxInsets​(int left,
                                                      int right,
                                                      int top,
                                                      int bottom)
        Sets the insets of the MessageBox.
      • setButtons

        public MessageBox.Builder setButtons​(java.lang.String[] buttonCaptions)
        Sets the buttons that will appear on the MessageBox.
      • setButtonsMargin

        public MessageBox.Builder setButtonsMargin​(int margin)
        Sets the margins of the buttons.