Class ScanbotAlertDialog
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanbotAlertDialog implements Parcelable
Configuration of the standard alert dialog.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledTexttitleprivate StyledTextsubtitleprivate ScanbotColorsheetColorprivate ScanbotColormodalOverlayColorprivate ScanbotColordividerColorprivate ButtonConfigurationokButtonprivate ButtonConfigurationactionButtonprivate ButtonConfigurationcancelButton
-
Constructor Summary
Constructors Constructor Description ScanbotAlertDialog(Map<String, Object> source)ScanbotAlertDialog(JSONObject json)ScanbotAlertDialog(StyledText title, StyledText subtitle, ScanbotColor sheetColor, ScanbotColor modalOverlayColor, ScanbotColor dividerColor, ButtonConfiguration okButton, ButtonConfiguration actionButton, ButtonConfiguration cancelButton)
-
Method Summary
Modifier and Type Method Description final StyledTextgetTitle()The title displayed above the message. final UnitsetTitle(StyledText title)The title displayed above the message. final StyledTextgetSubtitle()The explanation message. final UnitsetSubtitle(StyledText subtitle)The explanation message. final ScanbotColorgetSheetColor()The background color of the alert dialog. final UnitsetSheetColor(ScanbotColor sheetColor)The background color of the alert dialog. final ScanbotColorgetModalOverlayColor()The dialog overlay color. final UnitsetModalOverlayColor(ScanbotColor modalOverlayColor)The dialog overlay color. final ScanbotColorgetDividerColor()The color of the divider line. final UnitsetDividerColor(ScanbotColor dividerColor)The color of the divider line. final ButtonConfigurationgetOkButton()Configuration of the 'OK' button. final UnitsetOkButton(ButtonConfiguration okButton)Configuration of the 'OK' button. final ButtonConfigurationgetActionButton()Configuration of the middle button for dialogs with tree buttons. final UnitsetActionButton(ButtonConfiguration actionButton)Configuration of the middle button for dialogs with tree buttons. final ButtonConfigurationgetCancelButton()Configuration of the 'cancel' button. final UnitsetCancelButton(ButtonConfiguration cancelButton)Configuration of the 'cancel' button. final JSONObjecttoJson(ToJsonConfiguration config)final ScanbotAlertDialogclone()final static ScanbotAlertDialogdefault()-
-
Constructor Detail
-
ScanbotAlertDialog
ScanbotAlertDialog(JSONObject json)
-
ScanbotAlertDialog
ScanbotAlertDialog(StyledText title, StyledText subtitle, ScanbotColor sheetColor, ScanbotColor modalOverlayColor, ScanbotColor dividerColor, ButtonConfiguration okButton, ButtonConfiguration actionButton, ButtonConfiguration cancelButton)
-
-
Method Detail
-
getTitle
final StyledText getTitle()
The title displayed above the message.
-
setTitle
final Unit setTitle(StyledText title)
The title displayed above the message.
-
getSubtitle
final StyledText getSubtitle()
The explanation message.
-
setSubtitle
final Unit setSubtitle(StyledText subtitle)
The explanation message.
-
getSheetColor
final ScanbotColor getSheetColor()
The background color of the alert dialog.
Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
The background color of the alert dialog.
Default is "?sbColorSurface"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
The dialog overlay color.
Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
The dialog overlay color.
Default is "?sbColorModalOverlay"
-
getDividerColor
final ScanbotColor getDividerColor()
The color of the divider line.
Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
The color of the divider line.
Default is "?sbColorOutline"
-
getOkButton
final ButtonConfiguration getOkButton()
Configuration of the 'OK' button.
-
setOkButton
final Unit setOkButton(ButtonConfiguration okButton)
Configuration of the 'OK' button.
-
getActionButton
final ButtonConfiguration getActionButton()
Configuration of the middle button for dialogs with tree buttons.
-
setActionButton
final Unit setActionButton(ButtonConfiguration actionButton)
Configuration of the middle button for dialogs with tree buttons.
-
getCancelButton
final ButtonConfiguration getCancelButton()
Configuration of the 'cancel' button.
-
setCancelButton
final Unit setCancelButton(ButtonConfiguration cancelButton)
Configuration of the 'cancel' button.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ScanbotAlertDialog clone()
-
default
final static ScanbotAlertDialog default()
-
-
-
-