scalafx.beans.property

ObjectProperty

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] = ...)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. def =!=(v: AnyRef): BooleanBinding

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

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

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

    Definition Classes
    ObjectExpression
  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

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

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

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

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

    Definition Classes
    ObjectExpression
  19. def apply(): T

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

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

    Definition Classes
    Any
  21. def bean: AnyRef

    Returns the Object that contains this property.

    Returns the Object that contains this property.

    Definition Classes
    ReadOnlyProperty
  22. def clone(): AnyRef

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

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

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

    Definition Classes
    AnyRef
  25. 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
  26. def finalize(): Unit

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

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

    returns

    The delegate hashcode

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

    Definition Classes
    Any
  30. def name: String

    Returns the name of this property.

    Returns the name of this property.

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

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

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

    Definition Classes
    AnyRef
  34. 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
  35. 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
  36. 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 ObservableValue.

    Definition Classes
    Observable
  37. 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 ObservableValue.

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  46. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  47. 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
  48. 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
  49. 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
  50. def update(v: T): Unit

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

    Definition Classes
    Property
  51. def value: T

    Returns ObservableValue

    Returns ObservableValue

    returns

    ObservableValue

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

    Set the wrapped value.

    Set the wrapped value.

    v

    The new value

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. 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