Class/Object

org.specs2.form

Field

Related Docs: object Field | package form

Permalink

case class Field[T](label: String, value: Property[T], decorator: 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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Type Members

  1. implicit class pendingResult extends AnyRef

    Permalink

    any block of code following a pending object will be pending

    any block of code following a pending object will be pending

    Definition Classes
    StandardResults
  2. implicit class skippedResult extends AnyRef

    Permalink

    any block of code following a skipped object will be skipped

    any block of code following a skipped object will be skipped

    Definition Classes
    StandardResults

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

    Permalink
    Definition Classes
    StandardResults
  5. def apply(): T

    Permalink

    returns

    the field value

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

    Permalink

    set a new value on the field.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink

    do the decoration

    do the decoration

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

    Permalink

    set a new Decorator for the label

    set a new Decorator for the label

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

    Permalink

    do the decoration

    do the decoration

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

    Permalink

    set a new Decorator for the value

    set a new Decorator for the value

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

    Permalink

    set a new Decorator

    set a new Decorator

    Definition Classes
    DecoratedProperty
  14. val decorator: Decorator

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

    Permalink

    set a new Decorator

    set a new Decorator

    Definition Classes
    FieldDecoratedLabel
  16. def done: Success

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

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

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

    Permalink

    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

    returns

    a Result

    Definition Classes
    FieldExecutable
  20. def failure: Failure

    Permalink
    Definition Classes
    StandardResults
  21. def finalize(): Unit

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

    Permalink

    alias for apply()

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

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

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

    Permalink

    use this Field as a header in a table

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val label: String

    Permalink
  28. def labelStyles: String

    Permalink

    return the label styles

    return the label styles

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

    Permalink

    modify the result to return

    modify the result to return

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

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

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

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

    Permalink
    Definition Classes
    StandardResults
  34. def pending: Pending

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

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

    Permalink
    Definition Classes
    StandardResults
  37. def skipped: Skipped

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

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

    Permalink

    set a new style for the label

    set a new style for the label

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

    Permalink

    set a new style for the value

    set a new style for the value

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

    Permalink

    set a new style

    set a new style

    Definition Classes
    DecoratedProperty
  42. def success: Success

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

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

    Permalink

    returns

    "label: value"

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

    Permalink

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

  46. def todo: Pending

    Permalink
    Definition Classes
    StandardResults
  47. val value: Property[T]

    Permalink
  48. lazy val valueOrResult: Either[Result, T]

    Permalink
  49. def valueStyles: String

    Permalink
    Definition Classes
    DecoratedProperty
  50. final def wait(): Unit

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

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

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

    Permalink
    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