org.specs2.form

Decorator

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:

The methods of that class allow to stack new decoration, new styling attributes but also define standard decoration and styles for bold / italic / centered ... text.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Decorator
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Decorator(label: (Any) ⇒ Any = ..., value: (Any) ⇒ Any = ..., labelStyles: Seq[String] = ..., valueStyles: Seq[String] = ...)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bkBlue: Decorator

  8. def bkBlueLabel: Decorator

  9. def bkBlueValue: Decorator

  10. def bkColor(c: String): Decorator

  11. def bkColorLabel(c: String): Decorator

  12. def bkColorValue(c: String): Decorator

  13. def bkGreen: Decorator

  14. def bkGreenLabel: Decorator

  15. def bkGreenValue: Decorator

  16. def bkGrey: Decorator

  17. def bkGreyLabel: Decorator

  18. def bkGreyValue: Decorator

  19. def bkRed: Decorator

  20. def bkRedLabel: Decorator

  21. def bkRedValue: Decorator

  22. def bkWhite: Decorator

  23. def bkWhiteLabel: Decorator

  24. def bkWhiteValue: Decorator

  25. def bkYellow: Decorator

  26. def bkYellowLabel: Decorator

  27. def bkYellowValue: Decorator

  28. def blue: Decorator

  29. def blueLabel: Decorator

  30. def blueValue: Decorator

  31. def bold: Decorator

  32. def boldLabel: Decorator

  33. def boldValue: Decorator

  34. def canEqual(arg0: Any): Boolean

    Definition Classes
    Decorator → Equals
  35. def center: Decorator

  36. def centerLabel: Decorator

  37. def centerValue: Decorator

  38. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def code: Decorator

  40. def codeLabel: Decorator

  41. def codeValue: Decorator

  42. def color(c: String): Decorator

  43. def colorLabel(c: String): Decorator

  44. def colorValue(c: String): Decorator

  45. def decorateLabelWith(f: (Any) ⇒ Any): Decorator

  46. def decorateValueWith(f: (Any) ⇒ Any): Decorator

  47. def decorateWith(f: (Any) ⇒ Any): Decorator

  48. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. def equals(arg0: Any): Boolean

    Definition Classes
    Decorator → Equals → AnyRef → Any
  50. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  52. def green: Decorator

  53. def greenLabel: Decorator

  54. def greenValue: Decorator

  55. def hashCode(): Int

    Definition Classes
    Decorator → AnyRef → Any
  56. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  57. def italics: Decorator

  58. def italicsLabel: Decorator

  59. def italicsValue: Decorator

  60. val label: (Any) ⇒ Any

  61. val labelStyles: Seq[String]

  62. def left: Decorator

  63. def leftLabel: Decorator

  64. def leftValue: Decorator

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

    Definition Classes
    AnyRef
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. def productArity: Int

    Definition Classes
    Decorator → Product
  69. def productElement(arg0: Int): Any

    Definition Classes
    Decorator → Product
  70. def productIterator: Iterator[Any]

    Definition Classes
    Product
  71. def productPrefix: String

    Definition Classes
    Decorator → Product
  72. def red: Decorator

  73. def redLabel: Decorator

  74. def redValue: Decorator

  75. def right: Decorator

  76. def rightLabel: Decorator

  77. def rightValue: Decorator

  78. def styleLabelWith(s: (String, String)): Decorator

  79. def styleValueWith(s: (String, String)): Decorator

  80. def styleWith(s: (String, String)): Decorator

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

    Definition Classes
    AnyRef
  82. def toString(): String

    Definition Classes
    Decorator → AnyRef → Any
  83. val value: (Any) ⇒ Any

  84. val valueStyles: Seq[String]

  85. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  88. def white: Decorator

  89. def whiteLabel: Decorator

  90. def whiteValue: Decorator

  91. def yellow: Decorator

  92. def yellowLabel: Decorator

  93. def yellowValue: Decorator

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any