ComponentState

class ComponentState(name: String, hardFallback: ComponentState?, facetsOn: Array<ComponentStateFacet>?, facetsOff: Array<ComponentStateFacet>?)

Constructors

ComponentState
Link copied to clipboard
fun ComponentState(name: String, facetsOn: Array<ComponentStateFacet>?, facetsOff: Array<ComponentStateFacet>?)

Creates a new component state.

Types

Companion
Link copied to clipboard
object Companion

Functions

bestFit
Link copied to clipboard
fun bestFit(states: Collection<ComponentState>): ComponentState?
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isFacetActive
Link copied to clipboard
fun isFacetActive(stateFacet: ComponentStateFacet): Boolean

Returns indication whether this component state is "active" under the specified facet. For example, .RolloverSelected will return true for both ComponentStateFacet.Rollover and ComponentStateFacet.Selection.

toString
Link copied to clipboard
open override fun toString(): String

Properties

hardFallback
Link copied to clipboard
val hardFallback: ComponentState?
isActive
Link copied to clipboard
val isActive: Boolean
isDisabled
Link copied to clipboard
val isDisabled: Boolean

Checks whether this state is disabled. A disabled state has ComponentStateFacet.Enable facet in its off set.