Class Confirm

java.lang.Object
com.ultikits.ultitools.ui.Confirm
All Implemented Interfaces:
UiIntent<Boolean>

public final class Confirm extends Object implements UiIntent<Boolean>
A yes/no question. Completes with true for yes. A backend that cannot tell "no" from dismissal reports false; callers must treat anything other than Completed(true) as "not confirmed".
  • Field Details

    • title

      private final Text title
    • body

      private final List<Text> body
    • yes

      private final Text yes
    • no

      private final Text no
  • Constructor Details

  • Method Details

    • builder

      public static Confirm.Builder builder(Text title)
      Starts a question description.
    • title

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

      public List<Text> body()
      Body lines in display order; unmodifiable.
    • yes

      public Text yes()
      Defaults to ultitools:ui.yes.
    • no

      public Text no()
      Defaults to ultitools:ui.no.
    • 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