Field

org.specs2.form.Field
See theField companion class
case object Field

Factory methods for creating Fields. Fields values can also be concatenated to produce "summary" fields.

val f1 = Field(label, "hello") val f2 = Field(label, "world") val concatenatedFields = Field(label, f1, f2) concatenatedFields.toString == label: hello/world

val concatenatedFields2 = Field(label, ", ", f1, f2) concatenatedFields2.toString == label: hello, world

Attributes

Companion
class
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Field.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def apply[T](value: => T): Field[T]

create a Field with no label

create a Field with no label

Attributes

def apply[T](label: String, value: => T): Field[T]

create a Field with a label and a value

create a Field with a label and a value

Attributes

def apply(label: String, value1: Field[_], values: Field[_]*): Field[String]

create a Field with a label and other fields values, concatenated as strings

create a Field with a label and other fields values, concatenated as strings

Attributes

def apply(label: String, separator: String, value1: Field[_], values: Field[_]*): Field[String]

create a Field with a label and other fields values, concatenated as strings

create a Field with a label and other fields values, concatenated as strings

Attributes

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product