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
    PValueHolderValueHolder

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. 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
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. 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
  9. def clone(): AnyRef

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

    The cell's value and most recent change time

    The cell's value and most recent change time

    Definition Classes
    ValueCellCell
  11. def dependents: Seq[Dependent]

    Get a List of the Dependents

    Get a List of the Dependents

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

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

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

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

    Get the cell's value

    Get the cell's value

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

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

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

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

    Definition Classes
    Cell
  20. 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
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. 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
  25. 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
  26. 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
    ValueCellDependent
  27. def removeDependent[T <: Dependent](dep: T): T

    Remove a Dependent to this cell.

    Remove a Dependent to this cell.

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

    Get the cell's value

    Get the cell's value

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

    Remove from all dependencies

    Remove from all dependencies

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. 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
  36. def youDependOnMe(who: Cell[_]): Unit

    The Cell notifies the Dependent of the dependency

    The Cell notifies the Dependent of the dependency

    Definition Classes
    Dependent
  37. 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
    LiftValueValueHolder
    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