StringProperty

open class StringProperty(initialValue: String = "") : Property<String>

A StringProperty.

Parameters

initialValue

Initial Value. Default: Empty string.

Constructors

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

Creates a StringProperty 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 override var value: String

Value of this property.