org.specs2.form

Field

case class Field[T](label: String, value: Property[T], decorator: Decorator = ...) extends Executable with StandardResults with DecoratedProperty[Field[T]] with Product with Serializable

A Field is a property which is used only to display input values or output values.

The apply method can be used to retrieve the Field value: Field(label, 1).apply() must_== 1

The value is stored in a Property object so it will not be evaluated until explicitly queried.

Linear Supertypes
Serializable, Serializable, Product, Equals, DecoratedProperty[Field[T]], DecoratedLabel[Field[T]], StandardResults, Executable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Field
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DecoratedProperty
  7. DecoratedLabel
  8. StandardResults
  9. Executable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Field(label: String, value: Property[T], decorator: Decorator = ...)

Type Members

  1. implicit class pendingResult extends AnyRef

    Definition Classes
    StandardResults
  2. implicit class skippedResult extends AnyRef

    Definition Classes
    StandardResults

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 anError: Error

    Definition Classes
    StandardResults
  7. def apply(): T

    returns

    the field value

  8. def apply(v: ⇒ T): Field[T]

    set a new value on the field.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def decorateLabel(ns: Any): Any

    do the decoration

    do the decoration

    Definition Classes
    DecoratedLabel
  12. def decorateLabelWith(f: (Any) ⇒ Any): Field[T]

    set a new Decorator for the label

    set a new Decorator for the label

    Definition Classes
    DecoratedLabel
  13. def decorateValue(ns: Any): Any

    do the decoration

    do the decoration

    Definition Classes
    DecoratedProperty
  14. def decorateValueWith(f: (Any) ⇒ Any): Field[T]

    set a new Decorator for the value

    set a new Decorator for the value

    Definition Classes
    DecoratedProperty
  15. def decorateWith(f: (Any) ⇒ Any): Field[T]

    set a new Decorator

    set a new Decorator

    Definition Classes
    DecoratedProperty
  16. val decorator: Decorator

    Definition Classes
    FieldDecoratedLabel
  17. def decoratorIs(d: Decorator): Field[T]

    set a new Decorator

    set a new Decorator

    Definition Classes
    FieldDecoratedLabel
  18. def done: Success

    Definition Classes
    StandardResults
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(a: Any): Boolean

    Definition Classes
    Field → Equals → AnyRef → Any
  21. def execute: Result

    executing a field execute the value and returns success unless there is an Error

    executing a field execute the value and returns success unless there is an Error

    Definition Classes
    Field → Executable
  22. def failure: Failure

    Definition Classes
    StandardResults
  23. def finalize(): Unit

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

    alias for apply()

  25. final def getClass(): Class[_]

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

    Definition Classes
    Field → AnyRef → Any
  27. def header: Field[T]

    use this Field as a header in a table

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. val label: String

  30. def labelStyles: String

    return the label styles

    return the label styles

    Definition Classes
    DecoratedLabel
  31. def map(f: (Result) ⇒ Result): Executable

    Definition Classes
    Executable
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def pending[R](r: ⇒ R)(implicit arg0: AsResult[R]): Pending

    Definition Classes
    StandardResults
  36. def pending: Pending

    Definition Classes
    StandardResults
  37. def pending(message: String): Pending

    Definition Classes
    StandardResults
  38. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

    Definition Classes
    StandardResults
  39. def skipped: Skipped

    Definition Classes
    StandardResults
  40. def skipped(message: String): Skipped

    Definition Classes
    StandardResults
  41. def styleLabelWith(s: (String, String)): Field[T]

    set a new style for the label

    set a new style for the label

    Definition Classes
    DecoratedLabel
  42. def styleValueWith(s: (String, String)): Field[T]

    set a new style for the value

    set a new style for the value

    Definition Classes
    DecoratedProperty
  43. def styleWith(s: (String, String)): Field[T]

    set a new style

    set a new style

    Definition Classes
    DecoratedProperty
  44. def success: Success

    Definition Classes
    StandardResults
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  46. def toString(): String

    returns

    "label: value"

    Definition Classes
    Field → AnyRef → Any
  47. def toStringField: Field[String]

    transforms this typed Field as a Field containing the toString value of the Fields value

  48. def todo: Pending

    Definition Classes
    StandardResults
  49. val value: Property[T]

  50. lazy val valueOrResult: Either[Result, T]

  51. def valueStyles: String

    Definition Classes
    DecoratedProperty
  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def wontdo: Success

    Definition Classes
    StandardResults

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DecoratedProperty[Field[T]]

Inherited from DecoratedLabel[Field[T]]

Inherited from StandardResults

Inherited from Executable

Inherited from AnyRef

Inherited from Any

Ungrouped