org.powerscala.property

CaseClassBinding

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, LoggingCore, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseClassBinding
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. LoggingCore
  8. AnyRef
  9. 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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asynchronousLogging: Boolean

    Attributes
    protected
    Definition Classes
    LoggingCore
  8. def clone(): AnyRef

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

    Definition Classes
    Logging
  10. def disconnect(): Unit

    Disconnects the listeners and stops this binding having any further affect

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

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

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

    Definition Classes
    Logging
  14. def finalize(): Unit

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

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

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

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

    Definition Classes
    LoggingCore
  19. val logger: InnerLogging

    Definition Classes
    LoggingCore
  20. def loggingClassName: String

    Attributes
    protected
    Definition Classes
    LoggingCore
  21. val name: String

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

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

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

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

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

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

  26. val propertyClazz: EnhancedClass

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

  28. var propertyUpdatesValue: Boolean

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

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

    Definition Classes
    Logging
  31. def updateProperty(): Unit

    Updates the property to reflect the value contained in valueProperty

  32. def updateValueProperty(): Unit

    Updates the valueProperty to reflect the value contained in property

  33. val valueProperty: Property[Any]

    the container of the value

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

  35. var valueUpdatesProperty: Boolean

  36. final def wait(): Unit

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

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

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

    Definition Classes
    Logging
  40. 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 LoggingCore

Inherited from AnyRef

Inherited from Any

Ungrouped