Class ManualCountEditDialog
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ManualCountEditDialog implements Parcelable
Configuration of the dialog to manually edit the barcode count.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColor
sheetColor
private ScanbotColor
dividerColor
private ScanbotColor
modalOverlayColor
private StyledText
title
private StyledText
info
private ButtonConfiguration
updateButton
private ButtonConfiguration
cancelButton
private IconStyle
clearTextButton
-
Constructor Summary
Constructors Constructor Description ManualCountEditDialog(Map<String, Object> source)
ManualCountEditDialog(JSONObject json)
ManualCountEditDialog(ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText title, StyledText info, ButtonConfiguration updateButton, ButtonConfiguration cancelButton, IconStyle clearTextButton)
-
Method Summary
Modifier and Type Method Description final ScanbotColor
getSheetColor()
Color of the edit dialog's background. final Unit
setSheetColor(ScanbotColor sheetColor)
Color of the edit dialog's background. final ScanbotColor
getDividerColor()
Color of the divider and separator lines in the edit dialog. final Unit
setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the edit dialog. final ScanbotColor
getModalOverlayColor()
Background color of the overlay surrounding the edit dialog. final Unit
setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the edit dialog. final StyledText
getTitle()
Configuration of the edit dialog's title. final Unit
setTitle(StyledText title)
Configuration of the edit dialog's title. final StyledText
getInfo()
Configuration of the edit dialog's info text. final Unit
setInfo(StyledText info)
Configuration of the edit dialog's info text. final ButtonConfiguration
getUpdateButton()
Configuration of the edit dialog's confirm button. final Unit
setUpdateButton(ButtonConfiguration updateButton)
Configuration of the edit dialog's confirm button. final ButtonConfiguration
getCancelButton()
Configuration of the edit dialog's cancel button. final Unit
setCancelButton(ButtonConfiguration cancelButton)
Configuration of the edit dialog's cancel button. final IconStyle
getClearTextButton()
Configuration of the edit dialog's button to clear the entered count number. final Unit
setClearTextButton(IconStyle clearTextButton)
Configuration of the edit dialog's button to clear the entered count number. final JSONObject
toJson()
final static ManualCountEditDialog
default()
-
-
Constructor Detail
-
ManualCountEditDialog
ManualCountEditDialog(JSONObject json)
-
ManualCountEditDialog
ManualCountEditDialog(ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText title, StyledText info, ButtonConfiguration updateButton, ButtonConfiguration cancelButton, IconStyle clearTextButton)
-
-
Method Detail
-
getSheetColor
final ScanbotColor getSheetColor()
Color of the edit dialog's background. Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Color of the edit dialog's background. Default is "?sbColorSurface"
-
getDividerColor
final ScanbotColor getDividerColor()
Color of the divider and separator lines in the edit dialog. Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the edit dialog. Default is "?sbColorOutline"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
Background color of the overlay surrounding the edit dialog. Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the edit dialog. Default is "?sbColorModalOverlay"
-
getTitle
final StyledText getTitle()
Configuration of the edit dialog's title.
-
setTitle
final Unit setTitle(StyledText title)
Configuration of the edit dialog's title.
-
getInfo
final StyledText getInfo()
Configuration of the edit dialog's info text.
-
setInfo
final Unit setInfo(StyledText info)
Configuration of the edit dialog's info text.
-
getUpdateButton
final ButtonConfiguration getUpdateButton()
Configuration of the edit dialog's confirm button. Hiding both the update and cancel buttons simultaneously is an undefined behavior.
-
setUpdateButton
final Unit setUpdateButton(ButtonConfiguration updateButton)
Configuration of the edit dialog's confirm button. Hiding both the update and cancel buttons simultaneously is an undefined behavior.
-
getCancelButton
final ButtonConfiguration getCancelButton()
Configuration of the edit dialog's cancel button. Hiding both the update and cancel buttons simultaneously is an undefined behavior.
-
setCancelButton
final Unit setCancelButton(ButtonConfiguration cancelButton)
Configuration of the edit dialog's cancel button. Hiding both the update and cancel buttons simultaneously is an undefined behavior.
-
getClearTextButton
final IconStyle getClearTextButton()
Configuration of the edit dialog's button to clear the entered count number.
-
setClearTextButton
final Unit setClearTextButton(IconStyle clearTextButton)
Configuration of the edit dialog's button to clear the entered count number.
-
toJson
final JSONObject toJson()
-
default
final static ManualCountEditDialog default()
-
-
-
-