Class PlainMessageBody


  • public class PlainMessageBody
    extends DialogBody
    Represents a dialog body which consists of text constrained to a certain width.
    • Constructor Detail

      • PlainMessageBody

        public PlainMessageBody​(BaseComponent contents)
      • PlainMessageBody

        public PlainMessageBody​(BaseComponent contents,
                                int width)
    • Method Detail

      • getContents

        public BaseComponent getContents()
        The text body.
      • getWidth

        public int getWidth()
        The maximum width (default: 200).
      • setContents

        public void setContents​(BaseComponent contents)
        The text body.
      • setWidth

        public void setWidth​(int width)
        The maximum width (default: 200).