Class SheetContent
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SheetContent implements Parcelable
Configuration of the list containing the barcodes that have already been scanned.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColor
sheetColor
private ScanbotColor
dividerColor
private Boolean
manualCountChangeEnabled
private ScanbotColor
manualCountOutlineColor
private ScanbotColor
manualCountChangeColor
private StyledText
title
private ButtonConfiguration
clearAllButton
private StyledText
barcodeItemTitle
private StyledText
barcodeItemSubtitle
private Boolean
barcodeItemImageVisible
private ButtonConfiguration
submitButton
private ButtonConfiguration
startScanningButton
private StyledText
placeholderTitle
private StyledText
placeholderSubtitle
private ScanbotColor
placeholderIconBackground
private IconStyle
placeholderIcon
private SwipeToDelete
swipeToDelete
-
Constructor Summary
Constructors Constructor Description SheetContent(Map<String, Object> source)
SheetContent(JSONObject json)
SheetContent(ScanbotColor sheetColor, ScanbotColor dividerColor, Boolean manualCountChangeEnabled, ScanbotColor manualCountOutlineColor, ScanbotColor manualCountChangeColor, StyledText title, ButtonConfiguration clearAllButton, StyledText barcodeItemTitle, StyledText barcodeItemSubtitle, Boolean barcodeItemImageVisible, ButtonConfiguration submitButton, ButtonConfiguration startScanningButton, StyledText placeholderTitle, StyledText placeholderSubtitle, ScanbotColor placeholderIconBackground, IconStyle placeholderIcon, SwipeToDelete swipeToDelete)
-
Method Summary
Modifier and Type Method Description final ScanbotColor
getSheetColor()
Color of the list's background. final Unit
setSheetColor(ScanbotColor sheetColor)
Color of the list's background. final ScanbotColor
getDividerColor()
The color of the dividers in the list sheet. final Unit
setDividerColor(ScanbotColor dividerColor)
The color of the dividers in the list sheet. final Boolean
getManualCountChangeEnabled()
Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. final Unit
setManualCountChangeEnabled(Boolean manualCountChangeEnabled)
Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. final ScanbotColor
getManualCountOutlineColor()
The color of the outline of the manual counting buttons in the list sheet. final Unit
setManualCountOutlineColor(ScanbotColor manualCountOutlineColor)
The color of the outline of the manual counting buttons in the list sheet. final ScanbotColor
getManualCountChangeColor()
Color of the buttons for manually changing the barcode count. final Unit
setManualCountChangeColor(ScanbotColor manualCountChangeColor)
Color of the buttons for manually changing the barcode count. final StyledText
getTitle()
Configuration of the barcode list's title. final Unit
setTitle(StyledText title)
Configuration of the barcode list's title. final ButtonConfiguration
getClearAllButton()
Configuration of the button for clearing the barcode list. final Unit
setClearAllButton(ButtonConfiguration clearAllButton)
Configuration of the button for clearing the barcode list. final StyledText
getBarcodeItemTitle()
Configuration of the title of a barcode list entry (displaying the barcode's value). final Unit
setBarcodeItemTitle(StyledText barcodeItemTitle)
Configuration of the title of a barcode list entry (displaying the barcode's value). final StyledText
getBarcodeItemSubtitle()
Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology). final Unit
setBarcodeItemSubtitle(StyledText barcodeItemSubtitle)
Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology). final Boolean
getBarcodeItemImageVisible()
Visibility of the barcode image in a barcode list entry. final Unit
setBarcodeItemImageVisible(Boolean barcodeItemImageVisible)
Visibility of the barcode image in a barcode list entry. final ButtonConfiguration
getSubmitButton()
Configuration of the barcode list's submit button. final Unit
setSubmitButton(ButtonConfiguration submitButton)
Configuration of the barcode list's submit button. final ButtonConfiguration
getStartScanningButton()
Configuration of the button to start scanning displayed in an empty barcode list. final Unit
setStartScanningButton(ButtonConfiguration startScanningButton)
Configuration of the button to start scanning displayed in an empty barcode list. final StyledText
getPlaceholderTitle()
Configuration of the title displayed in an empty barcode list. final Unit
setPlaceholderTitle(StyledText placeholderTitle)
Configuration of the title displayed in an empty barcode list. final StyledText
getPlaceholderSubtitle()
Configuration of the subtitle displayed in an empty barcode list. final Unit
setPlaceholderSubtitle(StyledText placeholderSubtitle)
Configuration of the subtitle displayed in an empty barcode list. final ScanbotColor
getPlaceholderIconBackground()
Background color of the icon displayed in an empty barcode list. final Unit
setPlaceholderIconBackground(ScanbotColor placeholderIconBackground)
Background color of the icon displayed in an empty barcode list. final IconStyle
getPlaceholderIcon()
Configuration of the icon displayed in an empty barcode list. final Unit
setPlaceholderIcon(IconStyle placeholderIcon)
Configuration of the icon displayed in an empty barcode list. final SwipeToDelete
getSwipeToDelete()
The style of the swipe-to-delete button. final Unit
setSwipeToDelete(SwipeToDelete swipeToDelete)
The style of the swipe-to-delete button. final JSONObject
toJson()
final static SheetContent
default()
-
-
Constructor Detail
-
SheetContent
SheetContent(JSONObject json)
-
SheetContent
SheetContent(ScanbotColor sheetColor, ScanbotColor dividerColor, Boolean manualCountChangeEnabled, ScanbotColor manualCountOutlineColor, ScanbotColor manualCountChangeColor, StyledText title, ButtonConfiguration clearAllButton, StyledText barcodeItemTitle, StyledText barcodeItemSubtitle, Boolean barcodeItemImageVisible, ButtonConfiguration submitButton, ButtonConfiguration startScanningButton, StyledText placeholderTitle, StyledText placeholderSubtitle, ScanbotColor placeholderIconBackground, IconStyle placeholderIcon, SwipeToDelete swipeToDelete)
-
-
Method Detail
-
getSheetColor
final ScanbotColor getSheetColor()
Color of the list's background. Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Color of the list's background. Default is "?sbColorSurface"
-
getDividerColor
final ScanbotColor getDividerColor()
The color of the dividers in the list sheet. Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
The color of the dividers in the list sheet. Default is "?sbColorOutline"
-
getManualCountChangeEnabled
final Boolean getManualCountChangeEnabled()
Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. Default is true
-
setManualCountChangeEnabled
final Unit setManualCountChangeEnabled(Boolean manualCountChangeEnabled)
Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. Default is true
-
getManualCountOutlineColor
final ScanbotColor getManualCountOutlineColor()
The color of the outline of the manual counting buttons in the list sheet. Default is "?sbColorOutline"
-
setManualCountOutlineColor
final Unit setManualCountOutlineColor(ScanbotColor manualCountOutlineColor)
The color of the outline of the manual counting buttons in the list sheet. Default is "?sbColorOutline"
-
getManualCountChangeColor
final ScanbotColor getManualCountChangeColor()
Color of the buttons for manually changing the barcode count. Default is "?sbColorPrimary"
-
setManualCountChangeColor
final Unit setManualCountChangeColor(ScanbotColor manualCountChangeColor)
Color of the buttons for manually changing the barcode count. Default is "?sbColorPrimary"
-
getTitle
final StyledText getTitle()
Configuration of the barcode list's title. By default displays the total number of scanned barcodes.
-
setTitle
final Unit setTitle(StyledText title)
Configuration of the barcode list's title. By default displays the total number of scanned barcodes.
-
getClearAllButton
final ButtonConfiguration getClearAllButton()
Configuration of the button for clearing the barcode list.
-
setClearAllButton
final Unit setClearAllButton(ButtonConfiguration clearAllButton)
Configuration of the button for clearing the barcode list.
-
getBarcodeItemTitle
final StyledText getBarcodeItemTitle()
Configuration of the title of a barcode list entry (displaying the barcode's value).
-
setBarcodeItemTitle
final Unit setBarcodeItemTitle(StyledText barcodeItemTitle)
Configuration of the title of a barcode list entry (displaying the barcode's value).
-
getBarcodeItemSubtitle
final StyledText getBarcodeItemSubtitle()
Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology).
-
setBarcodeItemSubtitle
final Unit setBarcodeItemSubtitle(StyledText barcodeItemSubtitle)
Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology).
-
getBarcodeItemImageVisible
final Boolean getBarcodeItemImageVisible()
Visibility of the barcode image in a barcode list entry. Default is true
-
setBarcodeItemImageVisible
final Unit setBarcodeItemImageVisible(Boolean barcodeItemImageVisible)
Visibility of the barcode image in a barcode list entry. Default is true
-
getSubmitButton
final ButtonConfiguration getSubmitButton()
Configuration of the barcode list's submit button.
-
setSubmitButton
final Unit setSubmitButton(ButtonConfiguration submitButton)
Configuration of the barcode list's submit button.
-
getStartScanningButton
final ButtonConfiguration getStartScanningButton()
Configuration of the button to start scanning displayed in an empty barcode list.
-
setStartScanningButton
final Unit setStartScanningButton(ButtonConfiguration startScanningButton)
Configuration of the button to start scanning displayed in an empty barcode list.
-
getPlaceholderTitle
final StyledText getPlaceholderTitle()
Configuration of the title displayed in an empty barcode list.
-
setPlaceholderTitle
final Unit setPlaceholderTitle(StyledText placeholderTitle)
Configuration of the title displayed in an empty barcode list.
-
getPlaceholderSubtitle
final StyledText getPlaceholderSubtitle()
Configuration of the subtitle displayed in an empty barcode list.
-
setPlaceholderSubtitle
final Unit setPlaceholderSubtitle(StyledText placeholderSubtitle)
Configuration of the subtitle displayed in an empty barcode list.
-
getPlaceholderIconBackground
final ScanbotColor getPlaceholderIconBackground()
Background color of the icon displayed in an empty barcode list. Default is "?sbColorOutline"
-
setPlaceholderIconBackground
final Unit setPlaceholderIconBackground(ScanbotColor placeholderIconBackground)
Background color of the icon displayed in an empty barcode list. Default is "?sbColorOutline"
-
getPlaceholderIcon
final IconStyle getPlaceholderIcon()
Configuration of the icon displayed in an empty barcode list.
-
setPlaceholderIcon
final Unit setPlaceholderIcon(IconStyle placeholderIcon)
Configuration of the icon displayed in an empty barcode list.
-
getSwipeToDelete
final SwipeToDelete getSwipeToDelete()
The style of the swipe-to-delete button.
-
setSwipeToDelete
final Unit setSwipeToDelete(SwipeToDelete swipeToDelete)
The style of the swipe-to-delete button.
-
toJson
final JSONObject toJson()
-
default
final static SheetContent default()
-
-
-
-