Class

org.specs2.form

Decorator

Related Doc: package form

Permalink

case class Decorator(label: (Any) ⇒ Any = identity, value: (Any) ⇒ Any = identity, labelStyles: Seq[String] = Vector(), valueStyles: Seq[String] = Vector()) 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. Decorator
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

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

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bkBlue: Decorator

    Permalink
  6. def bkBlueLabel: Decorator

    Permalink
  7. def bkBlueValue: Decorator

    Permalink
  8. def bkColor(c: String): Decorator

    Permalink
  9. def bkColorLabel(c: String): Decorator

    Permalink
  10. def bkColorValue(c: String): Decorator

    Permalink
  11. def bkGreen: Decorator

    Permalink
  12. def bkGreenLabel: Decorator

    Permalink
  13. def bkGreenValue: Decorator

    Permalink
  14. def bkGrey: Decorator

    Permalink
  15. def bkGreyLabel: Decorator

    Permalink
  16. def bkGreyValue: Decorator

    Permalink
  17. def bkRed: Decorator

    Permalink
  18. def bkRedLabel: Decorator

    Permalink
  19. def bkRedValue: Decorator

    Permalink
  20. def bkWhite: Decorator

    Permalink
  21. def bkWhiteLabel: Decorator

    Permalink
  22. def bkWhiteValue: Decorator

    Permalink
  23. def bkYellow: Decorator

    Permalink
  24. def bkYellowLabel: Decorator

    Permalink
  25. def bkYellowValue: Decorator

    Permalink
  26. def blue: Decorator

    Permalink
  27. def blueLabel: Decorator

    Permalink
  28. def blueValue: Decorator

    Permalink
  29. def bold: Decorator

    Permalink
  30. def boldLabel: Decorator

    Permalink
  31. def boldValue: Decorator

    Permalink
  32. def center: Decorator

    Permalink
  33. def centerLabel: Decorator

    Permalink
  34. def centerValue: Decorator

    Permalink
  35. def clone(): AnyRef

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

    Permalink
  37. def codeLabel: Decorator

    Permalink
  38. def codeValue: Decorator

    Permalink
  39. def color(c: String): Decorator

    Permalink
  40. def colorLabel(c: String): Decorator

    Permalink
  41. def colorValue(c: String): Decorator

    Permalink
  42. def decorateLabelWith(f: (Any) ⇒ Any): Decorator

    Permalink
  43. def decorateValueWith(f: (Any) ⇒ Any): Decorator

    Permalink
  44. def decorateWith(f: (Any) ⇒ Any): Decorator

    Permalink
  45. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. def green: Decorator

    Permalink
  49. def greenLabel: Decorator

    Permalink
  50. def greenValue: Decorator

    Permalink
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. def italics: Decorator

    Permalink
  53. def italicsLabel: Decorator

    Permalink
  54. def italicsValue: Decorator

    Permalink
  55. val label: (Any) ⇒ Any

    Permalink
  56. val labelStyles: Seq[String]

    Permalink
  57. def left: Decorator

    Permalink
  58. def leftLabel: Decorator

    Permalink
  59. def leftValue: Decorator

    Permalink
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  63. def red: Decorator

    Permalink
  64. def redLabel: Decorator

    Permalink
  65. def redValue: Decorator

    Permalink
  66. def right: Decorator

    Permalink
  67. def rightLabel: Decorator

    Permalink
  68. def rightValue: Decorator

    Permalink
  69. def styleLabelWith(s: (String, String)): Decorator

    Permalink
  70. def styleValueWith(s: (String, String)): Decorator

    Permalink
  71. def styleWith(s: (String, String)): Decorator

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

    Permalink
    Definition Classes
    AnyRef
  73. val value: (Any) ⇒ Any

    Permalink
  74. val valueStyles: Seq[String]

    Permalink
  75. final def wait(): Unit

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

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

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

    Permalink
  79. def whiteLabel: Decorator

    Permalink
  80. def whiteValue: Decorator

    Permalink
  81. def yellow: Decorator

    Permalink
  82. def yellowLabel: Decorator

    Permalink
  83. def yellowValue: Decorator

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped