Interface Dialogs.HasText<T>

Type Parameters:
T - return type of fluent API methods
All Known Subinterfaces:
Dialogs.MessageDialogBuilder, Dialogs.OptionDialogBuilder
All Known Implementing Classes:
DialogsImpl.MessageDialogBuilderImpl, DialogsImpl.OptionDialogBuilderImpl
Enclosing interface:
Dialogs

public static interface Dialogs.HasText<T>
Represents Dialog Builders that have a text inside Paragraph component as a content.

Note, overrides the content set value that was set using the Dialogs.HasContent.withContent(Component) method.

  • Method Summary

    Modifier and Type
    Method
    Description
     
    Sets a text.
  • Method Details

    • withText

      T withText(String text)
      Sets a text.
      Parameters:
      text - a text
      Returns:
      builder
    • getText

      @Nullable String getText()
      Returns:
      a text