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 ScanbotColorsheetColorprivate ScanbotColordividerColorprivate BooleanmanualCountChangeEnabledprivate ScanbotColormanualCountOutlineColorprivate ScanbotColormanualCountChangeColorprivate StyledTexttitleprivate ButtonConfigurationclearAllButtonprivate StyledTextbarcodeItemTitleprivate StyledTextbarcodeItemSubtitleprivate BooleanbarcodeItemImageVisibleprivate ButtonConfigurationsubmitButtonprivate ButtonConfigurationstartScanningButtonprivate StyledTextplaceholderTitleprivate StyledTextplaceholderSubtitleprivate ScanbotColorplaceholderIconBackgroundprivate IconStyleplaceholderIconprivate SwipeToDeleteswipeToDelete
-
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 ScanbotColorgetSheetColor()Color of the list's background. final UnitsetSheetColor(ScanbotColor sheetColor)Color of the list's background. final ScanbotColorgetDividerColor()The color of the dividers in the list sheet. final UnitsetDividerColor(ScanbotColor dividerColor)The color of the dividers in the list sheet. final BooleangetManualCountChangeEnabled()Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. final UnitsetManualCountChangeEnabled(Boolean manualCountChangeEnabled)Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. final ScanbotColorgetManualCountOutlineColor()The color of the outline of the manual counting buttons in the list sheet. final UnitsetManualCountOutlineColor(ScanbotColor manualCountOutlineColor)The color of the outline of the manual counting buttons in the list sheet. final ScanbotColorgetManualCountChangeColor()Color of the buttons for manually changing the barcode count. final UnitsetManualCountChangeColor(ScanbotColor manualCountChangeColor)Color of the buttons for manually changing the barcode count. final StyledTextgetTitle()Configuration of the barcode list's title. final UnitsetTitle(StyledText title)Configuration of the barcode list's title. final ButtonConfigurationgetClearAllButton()Configuration of the button for clearing the barcode list. final UnitsetClearAllButton(ButtonConfiguration clearAllButton)Configuration of the button for clearing the barcode list. final StyledTextgetBarcodeItemTitle()Configuration of the title of a barcode list entry (displaying the barcode's value). final UnitsetBarcodeItemTitle(StyledText barcodeItemTitle)Configuration of the title of a barcode list entry (displaying the barcode's value). final StyledTextgetBarcodeItemSubtitle()Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology). final UnitsetBarcodeItemSubtitle(StyledText barcodeItemSubtitle)Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology). final BooleangetBarcodeItemImageVisible()Visibility of the barcode image in a barcode list entry. final UnitsetBarcodeItemImageVisible(Boolean barcodeItemImageVisible)Visibility of the barcode image in a barcode list entry. final ButtonConfigurationgetSubmitButton()Configuration of the barcode list's submit button. final UnitsetSubmitButton(ButtonConfiguration submitButton)Configuration of the barcode list's submit button. final ButtonConfigurationgetStartScanningButton()Configuration of the button to start scanning displayed in an empty barcode list. final UnitsetStartScanningButton(ButtonConfiguration startScanningButton)Configuration of the button to start scanning displayed in an empty barcode list. final StyledTextgetPlaceholderTitle()Configuration of the title displayed in an empty barcode list. final UnitsetPlaceholderTitle(StyledText placeholderTitle)Configuration of the title displayed in an empty barcode list. final StyledTextgetPlaceholderSubtitle()Configuration of the subtitle displayed in an empty barcode list. final UnitsetPlaceholderSubtitle(StyledText placeholderSubtitle)Configuration of the subtitle displayed in an empty barcode list. final ScanbotColorgetPlaceholderIconBackground()Background color of the icon displayed in an empty barcode list. final UnitsetPlaceholderIconBackground(ScanbotColor placeholderIconBackground)Background color of the icon displayed in an empty barcode list. final IconStylegetPlaceholderIcon()Configuration of the icon displayed in an empty barcode list. final UnitsetPlaceholderIcon(IconStyle placeholderIcon)Configuration of the icon displayed in an empty barcode list. final SwipeToDeletegetSwipeToDelete()The style of the swipe-to-delete button. final UnitsetSwipeToDelete(SwipeToDelete swipeToDelete)The style of the swipe-to-delete button. final JSONObjecttoJson(ToJsonConfiguration config)final SheetContentclone()final static SheetContentdefault()-
-
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(ToJsonConfiguration config)
-
clone
final SheetContent clone()
-
default
final static SheetContent default()
-
-
-
-