Cell

org.specs2.form.Cell
trait Cell extends Text, Xml, Executable

A Cell is the Textual or Xml representation of a Form element: Field, Prop or Form. A more general XmlCell is also available to be able to input any kind of Xml inside a Form

A Cell can be executed by executing the underlying element but also by setting the cell to a specific result (success or failure). This feature is used to display rows of values with were expected and found ok in Forms.

Attributes

Graph
Supertypes
trait Executable
trait Xml
trait Text
class Object
trait Matchable
class Any
Show all
Known subtypes
class EffectCell
class FieldCell
class FormCell
class LazyCell
class PropCell
class Tab
class Tabs
class TextCell
class XmlCell
Show all

Members list

Value members

Abstract methods

execute the Cell and returns it

execute the Cell and returns it

Attributes

def setResult(r: Result): Cell

Concrete methods

Inherited methods

def execute: Result

Attributes

Returns

a Result

Inherited from:
Executable
def map(f: Result => Result): Executable

modify the result to return

modify the result to return

Attributes

Inherited from:
Executable
def text: String

Attributes

Returns

a text representation

Inherited from:
Text
def width: Int

Attributes

Returns

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

Inherited from:
Text
def xml(implicit args: Arguments): NodeSeq

Attributes

Returns

an xml representation

Inherited from:
Xml