class Form extends Executable with Text
A Form is a container for Rows (@see Row) where each row contain some Cell (@see Cell). It has an optional title and possibly no rows.
A Form can be executed by executing each row and collecting the results.
- Alphabetic
- By Inheritance
- Form
- Text
- Executable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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
- lazy val allRows: Seq[Row]
- returns
all rows, including the header
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(a: Any): Boolean
- Definition Classes
- Form → AnyRef → Any
- def execute: Result
execute all rows
- def executeForm: Form
execute all rows
execute all rows
- returns
an executed Form
- def executeRows: Seq[Row]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- Form → AnyRef → Any
- def inline: InlinedForm
transform this form to a form that will be added as a
element inside another form transform this form to a form that will be added as a
element inside another form - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map(f: (Result) => Result): Executable
- Definition Classes
- Executable
- lazy val maxSizes: Seq[Int]
- returns
the maximum cell size, column by column
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newForm(title: Option[String] = None, rows: Seq[Row] = Vector(), result: Option[Result] = None): Form
- returns
a new Form. This method can be overridden to return a more accurate subtype
- Attributes
- protected
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val result: Option[Result]
- val rows: Seq[Row]
- def sequence[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form
- def sequence(f1: Traversable[Form], f2: Traversable[Form]): Form
- def set[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form
- def set(f1: Traversable[Form], f2: Traversable[Form]): Form
- def setFailure: Form
- returns
a Form where every Row is executed with a Failure
- def setPending: Form
- returns
a Form where every Row is executed with a Pending
- def setResult(r: Result): Form
- returns
a Form where every Row is executed with a given Result
- def setSkipped: Form
- returns
a Form where every Row is executed with a Skipped
- def setSuccess: Form
- returns
a Form where every Row is executed with a Success
- def subsequence[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form
- def subsequence(f1: Traversable[Form], f2: Traversable[Form]): Form
- def subset[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form
- def subset(f1: Traversable[Form], f2: Traversable[Form]): Form
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tabs[T](values: Seq[T])(f: (T) => Tabs): Form
create new tabs in the Form
- def text: String
- def th(h1: String, hs: String*): Form
add a new Header, with at least one Field
- def th(hs: Seq[String])(implicit p: control.ImplicitParameters.ImplicitParam): Form
add a new Header
- def th(h1: Field[_], hs: Field[_]*): Form
add a new Header, with at least one Field
- def th(hs: Seq[Field[_]]): Form
add a new Header with some fields
- val title: Option[String]
- def toCellXml(implicit args: Arguments = Arguments()): Elem
- returns
an xml description of this form, to be embedded in a Cell
- def toEffect(label: String): Effect[Form]
encapsulate this form into an effect
- def toProp(label: String): Prop[Form, Any]
encapsulate this form into a Prop
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toXml(implicit args: Arguments = Arguments()): Elem
- returns
an xml description of this form
- def tr(row: Row): Form
add a new Row
- def tr(c1: Cell, cs: Cell*): Form
add a new Row, with at least one Cell
- def trs[T](values: Seq[T])(f: (T) => Row): Form
create new rows in the Form
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def width: Int
- returns
the width of the cell, without borders when it's a FormCell
- Definition Classes
- Text
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
Ungrouped
- final def isInstanceOf[T0]: Boolean