Class/Object

org.specs2.form

Form

Related Docs: object Form | package form

Permalink

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.

Linear Supertypes
Text, Executable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Form
  2. Text
  3. Executable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Form(title: Option[String] = None, rows: Seq[Row] = Vector(), result: Option[Result] = None)

    Permalink

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. lazy val allRows: Seq[Row]

    Permalink

    returns

    all rows, including the header

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    Form → AnyRef → Any
  9. def execute: Result

    Permalink

    execute all rows

    execute all rows

    returns

    a logical and on all results

    Definition Classes
    FormExecutable
  10. def executeForm: Form

    Permalink

    execute all rows

    execute all rows

    returns

    an executed Form

  11. def executeRows: Seq[Row]

    Permalink
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Form → AnyRef → Any
  15. def inline: InlinedForm

    Permalink

    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

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def map(f: (Result) ⇒ Result): Executable

    Permalink

    modify the result to return

    modify the result to return

    Definition Classes
    Executable
  18. lazy val maxSizes: Seq[Int]

    Permalink

    returns

    the maximum cell size, column by column

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def newForm(title: Option[String] = None, rows: Seq[Row] = Vector(), result: Option[Result] = None): Form

    Permalink

    returns

    a new Form. This method can be overriden to return a more accurate subtype

    Attributes
    protected
  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. val result: Option[Result]

    Permalink
  24. val rows: Seq[Row]

    Permalink
  25. def sequence[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form

    Permalink
  26. def sequence(f1: Traversable[Form], f2: Traversable[Form]): Form

    Permalink
  27. def set[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form

    Permalink
  28. def set(f1: Traversable[Form], f2: Traversable[Form]): Form

    Permalink
  29. def setFailure: Form

    Permalink

    returns

    a Form where every Row is executed with a Failure

  30. def setPending: Form

    Permalink

    returns

    a Form where every Row is executed with a Pending

  31. def setResult(r: Result): Form

    Permalink

    returns

    a Form where every Row is executed with a given Result

  32. def setSkipped: Form

    Permalink

    returns

    a Form where every Row is executed with a Skipped

  33. def setSuccess: Form

    Permalink

    returns

    a Form where every Row is executed with a Success

  34. def subsequence[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form

    Permalink
  35. def subsequence(f1: Traversable[Form], f2: Traversable[Form]): Form

    Permalink
  36. def subset[T <: Any { def form: org.specs2.form.Form }](f1: Seq[T], f2: Seq[T]): Form

    Permalink
  37. def subset(f1: Traversable[Form], f2: Traversable[Form]): Form

    Permalink
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def tabs[T](values: Seq[T])(f: (T) ⇒ Tabs): Form

    Permalink

    create new tabs in the Form

  40. def text: String

    Permalink

    returns

    the printed form with a padding space size to use for each cell

    Definition Classes
    FormText
  41. def th(h1: String, hs: String*): Form

    Permalink

    add a new Header, with at least one Field

  42. def th(hs: Seq[String])(implicit p: control.ImplicitParameters.ImplicitParam): Form

    Permalink

    add a new Header

  43. def th(h1: Field[_], hs: Field[_]*): Form

    Permalink

    add a new Header, with at least one Field

  44. def th(hs: Seq[Field[_]]): Form

    Permalink

    add a new Header with some fields

  45. val title: Option[String]

    Permalink
  46. def toCellXml(implicit args: Arguments = Arguments()): Elem

    Permalink

    returns

    an xml description of this form, to be embedded in a Cell

  47. def toEffect(label: String): Effect[Form]

    Permalink

    encapsulate this form into an effect

  48. def toProp(label: String): Prop[Form, Any]

    Permalink

    encapsulate this form into a Prop

  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def toXml(implicit args: Arguments = Arguments()): Elem

    Permalink

    returns

    an xml description of this form

  51. def tr(row: Row): Form

    Permalink

    add a new Row

  52. def tr(c1: Cell, cs: Cell*): Form

    Permalink

    add a new Row, with at least one Cell

  53. def trs[T](values: Seq[T])(f: (T) ⇒ Row): Form

    Permalink

    create new rows in the Form

  54. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def width: Int

    Permalink

    returns

    the width of the cell, without borders when it's a FormCell

    Definition Classes
    Text

Inherited from Text

Inherited from Executable

Inherited from AnyRef

Inherited from Any

Ungrouped