ReadOnlyObjectWrapper

scalafx.beans.property.ReadOnlyObjectWrapper
See theReadOnlyObjectWrapper companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T](value: T): ReadOnlyObjectWrapper[T]

Creates a new ReadOnlyObjectWrapper instance with a given initial wrapped value.

Creates a new ReadOnlyObjectWrapper instance with a given initial wrapped value.

Attributes

def apply[T](bean: Object, name: String, value: T): ReadOnlyObjectWrapper[T]

Creates a new ReadOnlyObjectWrapper instance with a given initial wrapped value.

Creates a new ReadOnlyObjectWrapper instance with a given initial wrapped value.

Type parameters

T

type of the value hold by this object property.

Value parameters

bean

The bean of this ReadOnlyObjectWrapper

name

The name of this ReadOnlyObjectWrapper

value

the initial value.

Attributes

def apply[J <: Object](value: SFXDelegate[J]): ReadOnlyObjectWrapper[J]

Creates a new ReadOnlyObjectWrapper with a delegate as initial value.

Creates a new ReadOnlyObjectWrapper with a delegate as initial value.

Special case when value is an ScalaFX wrapper, to be used as a work around for Issue 14. Created object property will have value type of the wrapped JavaFX type to simplify use with binding.

Type parameters

J

the JavaFX type of the value hold by this object property.

Value parameters

value

the initial value, value.delegate is actually stored in this property.

Attributes

def apply[J <: Object](bean: Object, name: String, value: SFXDelegate[J]): ReadOnlyObjectWrapper[J]

Creates a new ReadOnlyObjectWrapper with a scalafx.delegate.SFXDelegate as initial value.

Creates a new ReadOnlyObjectWrapper with a scalafx.delegate.SFXDelegate as initial value.

Special case when value is an ScalaFX wrapper, to be used as a work around for Issue 14. Created object property will have value type of the wrapped JavaFX type to simplify use with binding.

Type parameters

J

the JavaFX type of the value hold by this object property.

Value parameters

bean

The bean of this ReadOnlyObjectWrapper

name

The name of this ReadOnlyObjectWrapper

value

the initial value.

Attributes

Implicits

Implicits

implicit def sfxReadOnlyObjectWrapper2jfx[T](roow: ReadOnlyObjectWrapper[T]): ReadOnlyObjectWrapper[T]