Class Notice

java.lang.Object
com.ultikits.ultitools.ui.Notice
All Implemented Interfaces:
UiIntent<Ack>

public final class Notice extends Object implements UiIntent<Ack>
A message with one acknowledge button. Completes with Ack.ACK when acknowledged.
  • Field Details

    • title

      private final Text title
    • body

      private final List<Text> body
    • button

      private final Text button
  • Constructor Details

  • Method Details

    • builder

      public static Notice.Builder builder(Text title)
      Starts an immutable message description.
    • title

      public Text title()
      Description copied from interface: UiIntent
      Title shown by every backend.
      Specified by:
      title in interface UiIntent<Ack>
    • body

      public List<Text> body()
      Body lines, unmodifiable and in display order.
    • button

      public Text button()
      Button label; defaults to the framework message ultitools:ui.ok.
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object