org.specs2

form

package form

Visibility
  1. Public
  2. All

Type Members

  1. trait Cell extends Text with Xml with Executable

    A Cell is the Textual or Xml representation of a Form element: Field, Prop or Form.

  2. trait Constraint [T] extends AnyRef

    Base class for constraints executed on an optional expected value.

  3. trait DecoratedLabel [T] extends AnyRef

    A DecoratedLabel holds a decorator and delegates decoration and styling operations to that Decorator

  4. trait DecoratedProperty [T] extends DecoratedLabel[T]

    A DecoratedLabel holds a decorator and delegates decoration and styling operations for values and labels to that Decorator

  5. case class Decorator (label: (Any) ⇒ Any, value: (Any) ⇒ Any, labelStyles: Seq[String], valueStyles: Seq[String]) extends Product with Serializable

    This class contains functions to decorate and style a label and a value:

  6. case class Effect [T] (label: String, value: Property[T], decorator: Decorator) extends Executable with StandardResults with DecoratedProperty[Effect[T]] with Product with Serializable

    An Effect is a property which is used to display names corresponding to side-effects.

  7. case class EffectCell (e: org.specs2.form.Effect[_], result: Option[Result]) extends Cell with Product with Serializable

    Cell embedding a Eff

  8. case class Field [T] (label: String, value: Property[T], 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.

  9. case class FieldCell (f: org.specs2.form.Field[_], result: Option[Result]) extends Cell with Product with Serializable

    Cell embedding a Field

  10. class Form extends Executable with Text

    A Form is a container for Rows (@see Row) where each row contain some Cell (@see Cell).

  11. class FormCell extends Cell

    Cell embedding a Form

  12. case class FunctionConstraint [T, S] (actual: T, executor: (T, T) ⇒ Result) extends Constraint[T] with Product with Serializable

    This general constraint uses a function taking an actual value and an expected value to do the match.

  13. trait HasLabel extends AnyRef

    generic trait for anything having a label, to unify Props and Forms

  14. class InlinedForm extends Form

    This Form overrides the toXml and text methods so that it appears seamlessly included in another Form.

  15. class LazyCell extends Cell

    Proxy to a cell that's not evaluated right away when added to a row

  16. case class Prop [T, S] (label: String, actual: Property[T], expected: Property[S], constraint: (T, S) ⇒ Result, decorator: Decorator) extends Executable with DecoratedProperty[Prop[T, S]] with Product with Serializable

    The Prop class is a named property which holds:

  17. case class PropCell (p: org.specs2.form.Prop[_, _], result: Option[Result]) extends Cell with Product with Serializable

    Cell embedding a Prop

  18. case class Row (cellList: NonEmptyList[Cell]) extends Executable with Product with Serializable

    A Row is a non-empty list of Cells

  19. case class Tab (title: String, form: Form, result: Option[Result]) extends Cell with Product with Serializable

    Class representing an individual tab

  20. case class Tabs (tabs: Seq[Tab], result: Option[Result]) extends Cell with Product with Serializable

    This class allows the creation of tabs to embed several forms at once on a limited html space

  21. trait Text extends AnyRef

    Base type for anything returning some text

  22. case class TextCell (s: String, result: Result) extends Cell with Product with Serializable

    Simple Cell embedding an arbitrary String

  23. trait Xml extends AnyRef

    Base type for anything returning some xml

  24. class XmlCell extends Cell

    This cell can contain any xml

Value Members

  1. object Effect extends Product with Serializable

    Factory methods for creating Effects.

  2. object Field extends Product with Serializable

    Factory methods for creating Fields.

  3. object Form extends Product with Serializable

    Companion object of a Form to create:

  4. object FormCell extends AnyRef

  5. object FormDiffs extends FormDiffs

  6. object LazyCell extends AnyRef

  7. object Prop extends Serializable

    Companion object with factory methods

  8. object Row extends Product with Serializable

    Companion object of a Row to create a Row with at least one cell

  9. object Xml extends AnyRef

    utility functions for creating xml for Cells

  10. object XmlCell extends AnyRef