net.liftweb.util

DynamicCell

final case class DynamicCell[T](f: () ⇒ T) extends Cell[T] with Product with Serializable

A cell that changes value on each access. This kind of cell could be used to access an external resource. Warning the function may be accessed many times during a single wiring recalculation, so it's best to use this as a front to a value that's memoized for some duration.

Linear Supertypes
Serializable, Serializable, Product, Equals, Cell[T], Dependent, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. DynamicCell
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Cell
  7. Dependent
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DynamicCell(f: () ⇒ T)

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 canEqual(arg0: Any): Boolean

    Definition Classes
    DynamicCell → Equals
  9. def clone(): AnyRef

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

    The cell's value and most recent change time

    The cell's value and most recent change time

    Definition Classes
    DynamicCellCell
  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(arg0: Any): Boolean

    Definition Classes
    DynamicCell → Equals → AnyRef → Any
  14. val f: () ⇒ T

  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def get: T

    Get the cell's value

    Get the cell's value

    Definition Classes
    Cell
  17. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    DynamicCell → AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    Cell
  21. def lift[A](f: (T) ⇒ 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
  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. 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
  26. def predicateChanged(which: net.liftweb.util.Cell[_]): Unit

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

    If the predicate cell changes, the Dependent will be notified. This Cell has no predicates, so this is just Unit

    Definition Classes
    DynamicCellDependent
  27. def productArity: Int

    Definition Classes
    DynamicCell → Product
  28. def productElement(arg0: Int): Any

    Definition Classes
    DynamicCell → Product
  29. def productIterator: Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix: String

    Definition Classes
    DynamicCell → Product
  31. def removeDependent[T <: Dependent](dep: T): T

    Remove a Dependent to this cell.

    Remove a Dependent to this cell.

    Definition Classes
    Cell
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    DynamicCell → AnyRef → Any
  34. def unregisterFromAllDependencies(): Unit

    Remove from all dependencies

    Remove from all dependencies

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def whoDoIDependOn: Seq[net.liftweb.util.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
  39. def youDependOnMe(who: net.liftweb.util.Cell[_]): Unit

    The Cell notifies the Dependent of the dependency

    The Cell notifies the Dependent of the dependency

    Definition Classes
    Dependent
  40. def youDontDependOnMe(who: net.liftweb.util.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 productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

  2. def unregisterFromAllDepenencies(): Unit

    Attributes
    protected
    Definition Classes
    Dependent
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5) please used the correctly spelled unregisterFromAllDependencies

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Cell[T]

Inherited from Dependent

Inherited from AnyRef

Inherited from Any