case class Field(form: Form[_], name: String, constraints: Seq[(String, Seq[Any])], format: Option[(String, Seq[Any])], errors: Seq[FormError], value: Option[String]) extends Product with Serializable
A form field.
- name
the field name
- constraints
the constraints associated with the field
- format
the format expected for this field
- errors
the errors associated to this field
- value
the field value, if any
- Source
- Form.scala
- Alphabetic
- By Inheritance
- Field
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Field(form: Form[_], name: String, constraints: Seq[(String, Seq[Any])], format: Option[(String, Seq[Any])], errors: Seq[FormError], value: Option[String])
- name
the field name
- constraints
the constraints associated with the field
- format
the format expected for this field
- errors
the errors associated to this field
- value
the field value, if any
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(key: String): Field
Retrieve a field from the same form, using a key relative to this field key.
Retrieve a field from the same form, using a key relative to this field key.
- key
Relative key.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val constraints: Seq[(String, Seq[Any])]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val error: Option[FormError]
Returns the first error associated with this field, if it exists.
Returns the first error associated with this field, if it exists.
- returns
an error
- val errors: Seq[FormError]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val format: Option[(String, Seq[Any])]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val hasErrors: Boolean
Check if this field has errors.
- lazy val id: String
The field ID - the same as the field name but with '.' replaced by '_'.
- lazy val indexes: Seq[Int]
Retrieve available indexes defined for this field (if this field is repeated).
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val label: String
The label for the field.
The label for the field. Transforms repeat names from foo[0] etc to foo.0.
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val value: Option[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()