StylableProperty

interface StylableProperty<V> : Property<V>

Properties which can be styled by a theme must use this instead of a Property.

The purpose of a StylableProperty is to hold the value prior to being styled, so that it can be reverted if the property becomes un-styled.

For example, imagine we have a Label with black text, and we add a "highlight" style, which causes the text to turn bright green.

Later, when we remove the "highlight" style, the text will revert to black (using revert).

If a StylableProperty's value is set after it has been styled, the value applied by the Theme will be overwritten. removing the theme will have no effect, the new value will remain.

Inheritors

Properties

Link copied to clipboard
abstract val bean: Any?
Link copied to clipboard
abstract val beanName: String?
Link copied to clipboard
abstract override var value: V

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun addListener(listener: InvalidationListener)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <B> bidirectionalBind(other: Property<B>, converter: Converter<V, B>): BidirectionalBind
Link copied to clipboard
abstract fun bidirectionalUnbind(other: Property<*>?)
Link copied to clipboard
open fun <T : V> bindCastTo(bindTo: ObservableValue<T>)
Link copied to clipboard
abstract fun bindTo(to: ObservableValue<V>)
Link copied to clipboard
Link copied to clipboard
open operator fun getValue(thisRef: Any, kProperty: KProperty<*>): V
Link copied to clipboard
abstract fun isBound(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun kclass(): KClass<*>

Returns the Class for this Property's value, or null if bean or beanName have not been specified.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun removeListener(listener: InvalidationListener)
Link copied to clipboard
abstract fun revert()
Link copied to clipboard
Link copied to clipboard
open operator fun setValue(thisRef: Any, kProperty: KProperty<*>, newValue: V)
Link copied to clipboard
abstract fun style(newValue: Any)
Link copied to clipboard
Link copied to clipboard
abstract fun unbind()