net.liftweb.util

ValueCell

final class ValueCell[A] extends Cell[A] with LiftValue[A]

A ValueCell holds a value that can be mutated.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValueCell
  2. LiftValue
  3. PSettableValueHolder
  4. SettableValueHolder
  5. Settable
  6. PValueHolder
  7. ValueHolder
  8. Cell
  9. Dependent
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValueCell(initialValue: A)

Type Members

  1. type ValueType = A

    Definition Classes
    PValueHolder → ValueHolder

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. def addDependent[T <: Dependent](dep: T): T

    Add a Dependent to this cell.

    Add a Dependent to this cell. The Dependent will be notified when the Cell's value changes. Dependents are kept around as WeakReferences so they do not have to be explicitly removed from the List

    Definition Classes
    Cell
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Perform an atomic update of this Settable.

    Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

    Definition Classes
    Settable
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def currentValue: (A, Long)

    The cell's value and most recent change time

    The cell's value and most recent change time

    Definition Classes
    ValueCell → Cell
  9. def dependents: Seq[Dependent]

    Get a List of the Dependents

    Get a List of the Dependents

    Definition Classes
    Cell
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Definition Classes
    ValueCell → AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get: A

    Get the cell's value

    Get the cell's value

    Definition Classes
    Cell
  14. final def getClass(): Class[_]

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

    Definition Classes
    ValueCell → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def lift[A, B](cell: Cell[B])(f: (A, B) ⇒ A): Cell[A]

    Definition Classes
    Cell
  18. def lift[A](f: (A) ⇒ A): Cell[A]

    Create a new Cell by applying the function to this cell

    Create a new Cell by applying the function to this cell

    Definition Classes
    Cell
  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. def notifyDependents(): Unit

    Notify dependents of a state change.

    Notify dependents of a state change. Note this will be performed on a separate thread asynchronously

    Definition Classes
    Cell
  23. def performAtomicOperation[T](f: ⇒ T): T

    Perform an atomic operation on the Settable.

    Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

    Definition Classes
    Settable
  24. def predicateChanged(which: Cell[_]): Unit

    If the predicate cell changes, the Dependent will be notified.

    If the predicate cell changes, the Dependent will be notified. A ValueCell cannot have predicates

    Definition Classes
    ValueCell → Dependent
  25. def removeDependent[T <: Dependent](dep: T): T

    Remove a Dependent to this cell.

    Remove a Dependent to this cell.

    Definition Classes
    Cell
  26. def set(v: A): A

    Get the cell's value

    Get the cell's value

    Definition Classes
    ValueCell → Settable
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    ValueCell → AnyRef → Any
  29. def unregisterFromAllDependencies(): Unit

    Remove from all dependencies

    Remove from all dependencies

    Attributes
    protected
    Definition Classes
    Dependent
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def whoDoIDependOn: Seq[Cell[_]]

    Get a list of all the cells this Dependency depends on

    Get a list of all the cells this Dependency depends on

    Attributes
    protected
    Definition Classes
    Dependent
  34. def youDependOnMe(who: Cell[_]): Unit

    The Cell notifies the Dependent of the dependency

    The Cell notifies the Dependent of the dependency

    Definition Classes
    Dependent
  35. def youDontDependOnMe(who: Cell[_]): Unit

    The Cell notifies the Dependent of the removed dependency

    The Cell notifies the Dependent of the removed dependency

    Definition Classes
    Dependent

Deprecated Value Members

  1. def is: A

    Get the value.

    Get the value. Use get.

    Definition Classes
    LiftValue → ValueHolder
    Deprecated

  2. def unregisterFromAllDepenencies(): Unit

    Attributes
    protected
    Definition Classes
    Dependent
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5) please used the correctly spelled unregisterFromAllDependencies

Inherited from LiftValue[A]

Inherited from PSettableValueHolder[A]

Inherited from SettableValueHolder

Inherited from Settable

Inherited from PValueHolder[A]

Inherited from ValueHolder

Inherited from Cell[A]

Inherited from Dependent

Inherited from AnyRef

Inherited from Any

Ungrouped