FioriStepperValue

data class FioriStepperValue(var value: Float = 0.0f, var mode: RoundingMode = RoundingMode.HALF_UP, var decimalPlaces: Int = 0, var valueRange: ClosedFloatingPointRange<Float> = 0f..100f, var step: Float = 1.0f, var maxDigits: Int = DEFAULT_MAX_DIGITS) : Parcelable

Value model representing the current state and configuration of a Fiori Stepper.

This class encapsulates all numeric parameters and formatting rules for the stepper's value. It implements Parcelable to support state preservation across configuration changes.

Constructors

Link copied to clipboard
constructor(value: Float = 0.0f, mode: RoundingMode = RoundingMode.HALF_UP, decimalPlaces: Int = 0, valueRange: ClosedFloatingPointRange<Float> = 0f..100f, step: Float = 1.0f, maxDigits: Int = DEFAULT_MAX_DIGITS)
constructor(parcel: Parcel)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Number of decimal places to display (default: 0).Controls the precision of both value and step.

Link copied to clipboard

Maximum number of digits allowed in the integer part of the input (default: 10). Only counts the digits before the decimal point; the decimal point, the digits after it, and the leading negative sign are NOT included in this limit.

Link copied to clipboard

Rounding behavior for decimal values (default: RoundingMode.HALF_UP)

Link copied to clipboard
var step: Float

Increment/decrement step size (default: 1.0f)

Link copied to clipboard

Current numeric value of the stepper

Link copied to clipboard

Allowed value range (inclusive, default: 0f..100f)

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)