Class/Object

net.liftweb.util

ValueCell

Related Docs: object ValueCell | package util

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValueCell(initialValue: A)

    Permalink

Type Members

  1. type ValueType = A

    Permalink
    Definition Classes
    PValueHolderValueHolder

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addDependent[T <: Dependent](dep: T): T

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    The cell's value and most recent change time

    The cell's value and most recent change time

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

    Permalink

    Get a List of the Dependents

    Get a List of the Dependents

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

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

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

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

    Permalink

    Get the cell's value

    Get the cell's value

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

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

    Permalink
    Definition Classes
    ValueCell → AnyRef → Any
  16. def is: A

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

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

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

    Permalink

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

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def notifyDependents(): Unit

    Permalink

    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
  24. def performAtomicOperation[T](f: ⇒ T): T

    Permalink

    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
  25. def predicateChanged(which: Cell[_]): Unit

    Permalink

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

    Permalink

    Remove a Dependent to this cell.

    Remove a Dependent to this cell.

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

    Permalink

    Get the cell's value

    Get the cell's value

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

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

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

    Permalink

    Remove from all dependencies

    Remove from all dependencies

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

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

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

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

    Permalink

    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
  35. def youDependOnMe(who: Cell[_]): Unit

    Permalink

    The Cell notifies the Dependent of the dependency

    The Cell notifies the Dependent of the dependency

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

    Permalink

    The Cell notifies the Dependent of the removed dependency

    The Cell notifies the Dependent of the removed dependency

    Definition Classes
    Dependent

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