org.powerscala.property

CaseClassBinding

Related Doc: package property

case class CaseClassBinding(property: Property[_], name: String, valueProperty: Property[Any], valueUpdatesProperty: Boolean = true, propertyUpdatesValue: Boolean = true) extends Logging with Product with Serializable

Binds a top-level property and a hierarchically lower property together so a change to one updates the other.

Simple example:

case class Person(name: String) val property = Property[Person]() val valueProperty = Property[String]() val binding = CaseClassBinding(property, "name", valueProperty) binding.updateValueProperty()

property

defines the top-level property that contains the value bound hierarchically by name

name

the dot-separated name to access the valueProperty value within the property

valueProperty

the container of the value

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseClassBinding
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CaseClassBinding(property: Property[_], name: String, valueProperty: Property[Any], valueUpdatesProperty: Boolean = true, propertyUpdatesValue: Boolean = true)

    property

    defines the top-level property that contains the value bound hierarchically by name

    name

    the dot-separated name to access the valueProperty value within the property

    valueProperty

    the container of the value

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(message: ⇒ Any): Unit

    Definition Classes
    Logging
  7. def disconnect(): Unit

    Disconnects the listeners and stops this binding having any further affect

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def error(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  10. def error(message: ⇒ Any): Unit

    Definition Classes
    Logging
  11. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  13. def info(message: ⇒ Any): Unit

    Definition Classes
    Logging
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def log(level: Level, message: ⇒ Any): Unit

    Definition Classes
    Logging
  16. def logger: Logger

    Definition Classes
    Logging
  17. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  18. val name: String

    the dot-separated name to access the valueProperty value within the property

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. val property: Property[_]

    defines the top-level property that contains the value bound hierarchically by name

  23. val propertyClazz: EnhancedClass

  24. val propertyListener: FunctionalListener[PropertyChangeEvent[_$1], Unit] forSome {type _$1}

  25. var propertyUpdatesValue: Boolean

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def trace(message: ⇒ Any): Unit

    Definition Classes
    Logging
  28. def updateProperty(): Unit

    Updates the property to reflect the value contained in valueProperty

  29. def updateValueProperty(): Unit

    Updates the valueProperty to reflect the value contained in property

  30. val valueProperty: Property[Any]

    the container of the value

  31. val valuePropertyListener: FunctionalListener[PropertyChangeEvent[Any], Unit]

  32. var valueUpdatesProperty: Boolean

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def warn(message: ⇒ Any, t: Throwable): Unit

    Definition Classes
    Logging
  37. def warn(message: ⇒ Any): Unit

    Definition Classes
    Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped