ReadonlyStringProperty

open class ReadonlyStringProperty(initialValue: String = "") : ReadonlyProperty<String>

A ReadonlyStringProperty.

Parameters

initialValue

Initial Value. Default: Empty string.

Constructors

Link copied to clipboard
fun ReadonlyStringProperty(initialValue: String = "")

Creates a ReadonlyStringProperty with given initial value.

Functions

Link copied to clipboard
fun addListener(listener: ValueObserver<String>)

Adds a listener silently.

Link copied to clipboard
fun addListenerAndInvoke(initialValue: String, listener: (String, String) -> Unit)

Adds a listener and calls ValueObserver.update on this new listener with given initial value.

Link copied to clipboard
fun clearListeners()

Removes all listeners.

Link copied to clipboard
fun notifyUnchanged()

Notifies all listeners with current value.

Link copied to clipboard
fun removeListener(listener: ValueObserver<String>): Boolean

Removes a listener.

Properties

Link copied to clipboard
open var value: String

Value of this property.