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:
- with a function taking the xml for the label/value and returning some xml
- with some xml attributes "name":"value" to style those labels/values
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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Decorator
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Decorator(label: (Any) ⇒ Any = identity, value: (Any) ⇒ Any = identity, labelStyles: Seq[String] = Vector(), valueStyles: Seq[String] = Vector())
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bkBlue: Decorator
- def bkBlueLabel: Decorator
- def bkBlueValue: Decorator
- def bkColor(c: String): Decorator
- def bkColorLabel(c: String): Decorator
- def bkColorValue(c: String): Decorator
- def bkGreen: Decorator
- def bkGreenLabel: Decorator
- def bkGreenValue: Decorator
- def bkGrey: Decorator
- def bkGreyLabel: Decorator
- def bkGreyValue: Decorator
- def bkRed: Decorator
- def bkRedLabel: Decorator
- def bkRedValue: Decorator
- def bkWhite: Decorator
- def bkWhiteLabel: Decorator
- def bkWhiteValue: Decorator
- def bkYellow: Decorator
- def bkYellowLabel: Decorator
- def bkYellowValue: Decorator
- def blue: Decorator
- def blueLabel: Decorator
- def blueValue: Decorator
- def bold: Decorator
- def boldLabel: Decorator
- def boldValue: Decorator
- def center: Decorator
- def centerLabel: Decorator
- def centerValue: Decorator
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def code: Decorator
- def codeLabel: Decorator
- def codeValue: Decorator
- def color(c: String): Decorator
- def colorLabel(c: String): Decorator
- def colorValue(c: String): Decorator
- def decorateLabelWith(f: (Any) ⇒ Any): Decorator
- def decorateValueWith(f: (Any) ⇒ Any): Decorator
- def decorateWith(f: (Any) ⇒ Any): Decorator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def green: Decorator
- def greenLabel: Decorator
- def greenValue: Decorator
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def italics: Decorator
- def italicsLabel: Decorator
- def italicsValue: Decorator
- val label: (Any) ⇒ Any
- val labelStyles: Seq[String]
- def left: Decorator
- def leftLabel: Decorator
- def leftValue: Decorator
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def red: Decorator
- def redLabel: Decorator
- def redValue: Decorator
- def right: Decorator
- def rightLabel: Decorator
- def rightValue: Decorator
- def styleLabelWith(s: (String, String)): Decorator
- def styleValueWith(s: (String, String)): Decorator
- def styleWith(s: (String, String)): Decorator
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val value: (Any) ⇒ Any
- val valueStyles: Seq[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def white: Decorator
- def whiteLabel: Decorator
- def whiteValue: Decorator
- def yellow: Decorator
- def yellowLabel: Decorator
- def yellowValue: Decorator