Class PreActionConfirmBuilder.Cf

java.lang.Object
org.cxbox.core.dto.rowmeta.PreActionConfirmBuilder.Cf
Enclosing class:
PreActionConfirmBuilder

public static final class PreActionConfirmBuilder.Cf extends Object
Confirm builder.
We keep class name very short to make inline highlights in IntelliJ IDEA non-distributive in the most common usage case
  • Method Details

    • title

      public PreActionConfirmBuilder.Cf title(@Nullable String title)
      Parameters:
      title - confirm popup title

      1. If this builder method is not called or called with null - default 'Are you sure?' title will be shown (actually its translation defined in Frontend i18n)
      2. (DEPRECATED. Use withoutTitle()) If this builder method called with non-null blank String - error will be logged
      Returns:
      builder
    • withoutTitle

      public PreActionConfirmBuilder.Cf withoutTitle()
      If this builder method is called - no title will be shown

      see title java doc for details
      Returns:
      builder
    • text

      public PreActionConfirmBuilder.Cf text(@Nullable String text)
      Parameters:
      text - confirm popup text text

      1. If this builder method is not called or called with null - text will be auto-generated by backend from PreActionType.CONFIRMATION template.
      2. (DEPRECATED. Use withoutText() instead) If this builder method called with non-null blank String - error will be logged
      Returns:
      builder
    • withoutText

      public PreActionConfirmBuilder.Cf withoutText()
      If this builder method is called - no text will be shown

      see text java doc for details
      Returns:
      builder
    • yesText

      public PreActionConfirmBuilder.Cf yesText(@Nullable String yesText)
      Parameters:
      yesText - text that will be shown on corresponding button in UI popup.

      If this builder method is not called or called with null - default 'Save' action text will be shown (more precisely translation defined in UI will be shown)
      Returns:
      builder
    • noText

      public PreActionConfirmBuilder.Cf noText(@Nullable String noText)
      Parameters:
      noText - text that will be shown on corresponding button in UI popup.

      If this builder method is not called or called with null - default 'Save' action text will be shown (more precisely translation defined in UI will be shown)
      Returns:
      builder