scalafx.beans.property

ObjectProperty

Related Docs: object ObjectProperty | package property

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 Learn more about scaladoc diagrams
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

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

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

Value Members

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

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

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

    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

    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

    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

    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

    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

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

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

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

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

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

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

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

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

    Definition Classes
    ObjectExpression
  17. def apply(): T

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

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

    Definition Classes
    Any
  19. def bean: AnyRef

    Returns the Object that contains this property.

    Returns the Object that contains this property.

    Definition Classes
    ReadOnlyProperty
  20. def clone(): AnyRef

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

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

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

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

    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

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

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

    returns

    The delegate hashcode

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

    Definition Classes
    Any
  28. def name: String

    Returns the name of this property.

    Returns the name of this property.

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

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

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

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

    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

    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

    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

    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]

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  44. def toString(): String

    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

    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

    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

    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

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

    Definition Classes
    Property
  49. def value: T

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

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

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

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

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

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

    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