Class BadgedButton
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BadgedButton implements Parcelable
Configuration of the button with a badge.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColorbadgeBackgroundColorprivate ScanbotColorbadgeForegroundColorprivate Booleanvisibleprivate ScanbotColorbackgroundColorprivate ScanbotColorforegroundColorprivate ScanbotColoractiveBackgroundColorprivate ScanbotColoractiveForegroundColor
-
Constructor Summary
Constructors Constructor Description BadgedButton(Map<String, Object> source)BadgedButton(JSONObject json)BadgedButton(ScanbotColor badgeBackgroundColor, ScanbotColor badgeForegroundColor, Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
Method Summary
Modifier and Type Method Description final ScanbotColorgetBadgeBackgroundColor()The color of the badge's background. final UnitsetBadgeBackgroundColor(ScanbotColor badgeBackgroundColor)The color of the badge's background. final ScanbotColorgetBadgeForegroundColor()The color of the badge's foreground (icon, text). final UnitsetBadgeForegroundColor(ScanbotColor badgeForegroundColor)The color of the badge's foreground (icon, text). final BooleangetVisible()Determines whether the button is visible or not. final UnitsetVisible(Boolean visible)Determines whether the button is visible or not. final ScanbotColorgetBackgroundColor()The color of the button's background. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The color of the button's background. final ScanbotColorgetForegroundColor()The color of the button's foreground (icon, text). final UnitsetForegroundColor(ScanbotColor foregroundColor)The color of the button's foreground (icon, text). final ScanbotColorgetActiveBackgroundColor()The color of the button's background when the button is active (selected, toggled). final UnitsetActiveBackgroundColor(ScanbotColor activeBackgroundColor)The color of the button's background when the button is active (selected, toggled). final ScanbotColorgetActiveForegroundColor()The color of the button's foreground (icon, text) when the button is active (selected, toggled). final UnitsetActiveForegroundColor(ScanbotColor activeForegroundColor)The color of the button's foreground (icon, text) when the button is active (selected, toggled). final JSONObjecttoJson(ToJsonConfiguration config)final BadgedButtonclone()final static BadgedButtondefault()-
-
Constructor Detail
-
BadgedButton
BadgedButton(JSONObject json)
-
BadgedButton
BadgedButton(ScanbotColor badgeBackgroundColor, ScanbotColor badgeForegroundColor, Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
-
Method Detail
-
getBadgeBackgroundColor
final ScanbotColor getBadgeBackgroundColor()
The color of the badge's background.
Default is "#FFFFFF"
-
setBadgeBackgroundColor
final Unit setBadgeBackgroundColor(ScanbotColor badgeBackgroundColor)
The color of the badge's background.
Default is "#FFFFFF"
-
getBadgeForegroundColor
final ScanbotColor getBadgeForegroundColor()
The color of the badge's foreground (icon, text).
Default is "#C8193C"
-
setBadgeForegroundColor
final Unit setBadgeForegroundColor(ScanbotColor badgeForegroundColor)
The color of the badge's foreground (icon, text).
Default is "#C8193C"
-
getVisible
final Boolean getVisible()
Determines whether the button is visible or not.
Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the button is visible or not.
Default is true
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The color of the button's background.
Default is "#0000007A"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The color of the button's background.
Default is "#0000007A"
-
getForegroundColor
final ScanbotColor getForegroundColor()
The color of the button's foreground (icon, text).
Default is "#FFFFFF"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
The color of the button's foreground (icon, text).
Default is "#FFFFFF"
-
getActiveBackgroundColor
final ScanbotColor getActiveBackgroundColor()
The color of the button's background when the button is active (selected, toggled).
Default is "#FFCE5C"
-
setActiveBackgroundColor
final Unit setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
The color of the button's background when the button is active (selected, toggled).
Default is "#FFCE5C"
-
getActiveForegroundColor
final ScanbotColor getActiveForegroundColor()
The color of the button's foreground (icon, text) when the button is active (selected, toggled).
Default is "#1C1B1F"
-
setActiveForegroundColor
final Unit setActiveForegroundColor(ScanbotColor activeForegroundColor)
The color of the button's foreground (icon, text) when the button is active (selected, toggled).
Default is "#1C1B1F"
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final BadgedButton clone()
-
default
final static BadgedButton default()
-
-
-
-