org.specs2.form

Decorator

Related Doc: package form

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
Learn more about member selection
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())

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def bkBlue: Decorator

  6. def bkBlueLabel: Decorator

  7. def bkBlueValue: Decorator

  8. def bkColor(c: String): Decorator

  9. def bkColorLabel(c: String): Decorator

  10. def bkColorValue(c: String): Decorator

  11. def bkGreen: Decorator

  12. def bkGreenLabel: Decorator

  13. def bkGreenValue: Decorator

  14. def bkGrey: Decorator

  15. def bkGreyLabel: Decorator

  16. def bkGreyValue: Decorator

  17. def bkRed: Decorator

  18. def bkRedLabel: Decorator

  19. def bkRedValue: Decorator

  20. def bkWhite: Decorator

  21. def bkWhiteLabel: Decorator

  22. def bkWhiteValue: Decorator

  23. def bkYellow: Decorator

  24. def bkYellowLabel: Decorator

  25. def bkYellowValue: Decorator

  26. def blue: Decorator

  27. def blueLabel: Decorator

  28. def blueValue: Decorator

  29. def bold: Decorator

  30. def boldLabel: Decorator

  31. def boldValue: Decorator

  32. def center: Decorator

  33. def centerLabel: Decorator

  34. def centerValue: Decorator

  35. def clone(): AnyRef

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

  37. def codeLabel: Decorator

  38. def codeValue: Decorator

  39. def color(c: String): Decorator

  40. def colorLabel(c: String): Decorator

  41. def colorValue(c: String): Decorator

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

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

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

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

    Definition Classes
    AnyRef
  46. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  48. def green: Decorator

  49. def greenLabel: Decorator

  50. def greenValue: Decorator

  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. def italics: Decorator

  53. def italicsLabel: Decorator

  54. def italicsValue: Decorator

  55. val label: (Any) ⇒ Any

  56. val labelStyles: Seq[String]

  57. def left: Decorator

  58. def leftLabel: Decorator

  59. def leftValue: Decorator

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

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

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

    Definition Classes
    AnyRef
  63. def red: Decorator

  64. def redLabel: Decorator

  65. def redValue: Decorator

  66. def right: Decorator

  67. def rightLabel: Decorator

  68. def rightValue: Decorator

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

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

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

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

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

  74. val valueStyles: Seq[String]

  75. final def wait(): Unit

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

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

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

  79. def whiteLabel: Decorator

  80. def whiteValue: Decorator

  81. def yellow: Decorator

  82. def yellowLabel: Decorator

  83. def yellowValue: Decorator

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped