Class/Object

scalafx.beans.property

ObjectProperty

Related Docs: object ObjectProperty | package property

Permalink

class ObjectProperty[T] extends ReadOnlyObjectProperty[T] with Property[T, T] with SFXDelegate[javafx.beans.property.ObjectProperty[T]]

This class provides a full implementation of a Property wrapping an arbitrary Object.

It is recommended, as a work around for Issue 14, to use companion object factory methods to construct new instances, instead of using constructor directly, especially when an initial value is a ScalaFX wrapper, for instance:

import scalafx.scene.Cursor
...
val p = ObjectProperty(Cursor.WAIT)

This assumes that will not provide property type but let Scala compiler infer correct one.

Source
ObjectProperty.scala
Linear Supertypes
Property[T, T], ReadOnlyObjectProperty[T], ReadOnlyProperty[T, T], ObservableValue[T, T], Observable, SFXDelegate[javafx.beans.property.ObjectProperty[T]], ObjectExpression[T], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObjectProperty
  2. Property
  3. ReadOnlyObjectProperty
  4. ReadOnlyProperty
  5. ObservableValue
  6. Observable
  7. SFXDelegate
  8. ObjectExpression
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObjectProperty(bean: AnyRef, name: String, initialValue: T)

    Permalink
  2. new ObjectProperty(bean: AnyRef, name: String)

    Permalink
  3. new ObjectProperty(delegate: javafx.beans.property.ObjectProperty[T] = new jfxbp.SimpleObjectProperty[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ->(endVal: T): Tweenable[T, T]

    Permalink

    Returns a new scalafx.animation.Tweenable from a End Value.

    Returns a new scalafx.animation.Tweenable from a End Value.

    endVal

    End Value

    returns

    a new Tweenable with this Property and end value passed.

    Definition Classes
    Property
  4. def <==(v: ObservableValue[_ <: T, _ <: T]): Unit

    Permalink

    Create a unidirectional binding for this Property.

    Create a unidirectional binding for this Property.

    v

    ScalaFX ObservableValue this Property should be bound to.

    Definition Classes
    Property
  5. def <==(v: ObservableValue[_ <: T]): Unit

    Permalink

    Create a unidirectional binding for this Property.

    Create a unidirectional binding for this Property.

    v

    JavaFX ObservableValue this Property should be bound to.

    Definition Classes
    Property
  6. def <==>(v: javafx.beans.property.Property[T]): Unit

    Permalink

    Create a bidirectional binding between this Property and another JavaFX Property.

    Create a bidirectional binding between this Property and another JavaFX Property.

    v

    the other JavaFX Property

    Definition Classes
    Property
  7. def <==>(v: Property[T, T]): Unit

    Permalink

    Create a bidirectional binding between this Property and another ScalaFX Property.

    Create a bidirectional binding between this Property and another ScalaFX Property.

    v

    the other ScalaFX Property

    Definition Classes
    Property
  8. def =!=(v: AnyRef): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  9. def =!=[T](v: ObservableValue[T, T]): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  10. def =!=(v: ObservableObjectValue[_]): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  11. def =!=(v: Null): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  12. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def ===(v: AnyRef): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  14. def ===[T](v: ObservableValue[T, T]): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  15. def ===(v: ObservableObjectValue[_]): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  16. def ===(v: Null): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  17. def apply(): T

    Permalink

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

    Definition Classes
    ObservableValue
  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. def bean: AnyRef

    Permalink

    Returns the Object that contains this property.

    Returns the Object that contains this property.

    Definition Classes
    ReadOnlyProperty
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. val delegate: javafx.beans.property.ObjectProperty[T]

    Permalink

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ObjectPropertyReadOnlyObjectPropertySFXDelegateObjectExpression
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(ref: Any): Boolean

    Permalink

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def name: String

    Permalink

    Returns the name of this property.

    Returns the name of this property.

    Definition Classes
    ReadOnlyProperty
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def onChange[J1 >: T](op: ⇒ Unit): Subscription

    Permalink

    Adds a function as a ChangeListener.

    Adds a function as a ChangeListener. This function has no arguments because it will not handle values changed.

    op

    A Function with no arguments. It will be called when value changes.

    returns

    A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

    Definition Classes
    ObservableValue
  33. def onChange[J1 >: T](op: (ObservableValue[T, T], J1, J1) ⇒ Unit): Subscription

    Permalink

    Adds a function as a ChangeListener.

    Adds a function as a ChangeListener. This function has all arguments from T, T) changed method from ChangeListener.

    J1

    J superclass.

    op

    Function that receives a ObservableValue, the old value and the new value. It will be called when value changes.

    returns

    A new scalafx.event.subscriptions.Subscription to remove ObservableValue.

    Definition Classes
    ObservableValue
  34. def onInvalidate(op: ⇒ Unit): Subscription

    Permalink

    Adds a no argument function as a JavaFX InvalidationListener.

    Adds a no argument function as a JavaFX InvalidationListener. This function has no arguments because it will not handle invalidated values.

    op

    A Function with no arguments. It will be called when value was invalidated.

    returns

    A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

    Definition Classes
    Observable
  35. def onInvalidate(op: (Observable) ⇒ Unit): Subscription

    Permalink

    Adds a function as a JavaFX InvalidationListener.

    Adds a function as a JavaFX InvalidationListener. This function has all arguments from invalidated method from InvalidationListener.

    op

    Function that receives a ScalaFX Observable. It will be called when value was invalidated.

    returns

    A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

    Definition Classes
    Observable
  36. def select[T](s: String): ObjectBinding[T]

    Permalink
    Definition Classes
    ObjectExpression
  37. def selectBoolean(s: String): BooleanBinding

    Permalink
    Definition Classes
    ObjectExpression
  38. def selectDouble(s: String): DoubleBinding

    Permalink
    Definition Classes
    ObjectExpression
  39. def selectFloat(s: String): FloatBinding

    Permalink
    Definition Classes
    ObjectExpression
  40. def selectInteger(s: String): IntegerBinding

    Permalink
    Definition Classes
    ObjectExpression
  41. def selectLong(s: String): LongBinding

    Permalink
    Definition Classes
    ObjectExpression
  42. def selectString(s: String): StringBinding

    Permalink
    Definition Classes
    ObjectExpression
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toString(): String

    Permalink

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  45. def unbind(v: javafx.beans.property.Property[T]): Unit

    Permalink

    Remove a bidirectional binding between this Property and another JavaFX one.

    Remove a bidirectional binding between this Property and another JavaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

    v

    - the other Property

    Definition Classes
    Property
  46. def unbind(v: Property[T, T]): Unit

    Permalink

    Remove a bidirectional binding between this Property and another ScalaFX one.

    Remove a bidirectional binding between this Property and another ScalaFX one. If no bidirectional binding between the properties exists, calling this method has no effect.

    v

    - the other Property

    Definition Classes
    Property
  47. def unbind(): Unit

    Permalink

    Remove the unidirectional binding for this Property.

    Remove the unidirectional binding for this Property. If the Property is not bound, calling this method has no effect.

    Definition Classes
    Property
  48. def update(v: T): Unit

    Permalink

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

    Definition Classes
    Property
  49. def value: T

    Permalink

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

    Definition Classes
    ReadOnlyObjectPropertyObservableValue
  50. def value_=(v: T): Unit

    Permalink

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

    Definition Classes
    ObjectPropertyProperty
  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Property[T, T]

Inherited from ReadOnlyObjectProperty[T]

Inherited from ReadOnlyProperty[T, T]

Inherited from ObservableValue[T, T]

Inherited from Observable

Inherited from SFXDelegate[javafx.beans.property.ObjectProperty[T]]

Inherited from ObjectExpression[T]

Inherited from AnyRef

Inherited from Any

Ungrouped