rd-framework / com.jetbrains.rd.framework.impl / RdPropertyBase

RdPropertyBase

abstract class RdPropertyBase<T> : RdReactiveBase

Constructors

<init>

RdPropertyBase(valueSerializer: ISerializer<T>)

Properties

change

open val change: <ERROR CLASS><T>

defaultValueChanged

var defaultValueChanged: Boolean

masterVersion

var masterVersion: Int

optimizeNested

var optimizeNested: Boolean

property

abstract val property: <ERROR CLASS><T>

valueSerializer

val valueSerializer: ISerializer<T>

Inherited Properties

async

open var async: Boolean

If set to true, local changes to this object can be performed on any thread. Otherwise, local changes can be performed only on the UI thread.

defaultScheduler

val defaultScheduler: <ERROR CLASS>

isLocalChange

var isLocalChange: Boolean

master

var master: Boolean

serializers

val serializers: ISerializers

wire

val wire: IWire

wireScheduler

open val wireScheduler: <ERROR CLASS>

Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.

Functions

advise

open fun advise(lifetime: <ERROR CLASS>, handler: (T) -> Unit): Unit

init

open fun init(lifetime: <ERROR CLASS>): Unit

onWireReceived

open fun onWireReceived(buffer: AbstractBuffer): Unit

Callback that wire triggers when it receives messaged

Inherited Functions

assertBound

fun assertBound(): Unit

assertThreading

fun assertThreading(): Unit

Companion Object Functions

write0

fun <T : Any> write0(ctx: SerializationCtx, buffer: AbstractBuffer, prop: RdPropertyBase<T>, value: T?): Unit

Extension Functions

bind

fun <T : IRdBindable?> T.bind(lf: <ERROR CLASS>, parent: IRdDynamic, name: String): Unit?

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

identify

fun <T : IRdBindable?> T.identify(identities: IIdentities, ids: RdId): Unit?

static

fun <T : RdBindableBase> T.static(id: Int): T

withId

fun <T : RdBindableBase> T.withId(id: RdId): T

withIdFromName

fun <T : RdBindableBase> T.withIdFromName(name: String): T

Inheritors

RdOptionalProperty

class RdOptionalProperty<T : Any> : RdPropertyBase<T>

RdProperty

class RdProperty<T> : RdPropertyBase<T>