Package com.jalios.jcms.uicomponent
Class ConfirmDangerDataAttributes
- java.lang.Object
-
- com.jalios.jcms.uicomponent.ConfirmDangerDataAttributes
-
public class ConfirmDangerDataAttributes extends java.lang.Object
Usage : new ConfirmDangerDataAttributes().title("X").message("Y").cancelButtonLabel("S").confirmButtonLabel("W").getDataAttributes() If labels are not defined, confirm will fallback on default texts (In js)
-
-
Constructor Summary
Constructors Constructor Description ConfirmDangerDataAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfirmDangerDataAttributes
cancelButtonLabel(java.lang.String cancelButtonLabel)
ConfirmDangerDataAttributes
confirmButtonLabel(java.lang.String confirmButtonLabel)
java.lang.String
getDataAttributes()
ConfirmDangerDataAttributes
message(java.lang.String message)
ConfirmDangerDataAttributes
title(java.lang.String title)
java.lang.String
toString()
-
-
-
Method Detail
-
title
public ConfirmDangerDataAttributes title(java.lang.String title)
- Parameters:
title
- the title of the confirm modal- Returns:
- a reference to this object
-
message
public ConfirmDangerDataAttributes message(java.lang.String message)
- Parameters:
message
- the message of the confirm modal- Returns:
- a reference to this object
-
cancelButtonLabel
public ConfirmDangerDataAttributes cancelButtonLabel(java.lang.String cancelButtonLabel)
- Parameters:
cancelButtonLabel
- the cancel button label of the confirm modal- Returns:
- a reference to this object
-
confirmButtonLabel
public ConfirmDangerDataAttributes confirmButtonLabel(java.lang.String confirmButtonLabel)
- Parameters:
confirmButtonLabel
- the cancel button label of the confirm modal- Returns:
- a reference to this object
-
getDataAttributes
public java.lang.String getDataAttributes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-