case class Effect[T](label: String, value: Property[T], decorator: Decorator = Decorator()) extends Executable with DecoratedProperty[Effect[T]] with Product with Serializable
An Effect is a property which is used to display names corresponding to side-effects.
If the side effect throws an exception, the Effect will display it alongside to the label. Otherwise only the label is displayed.
The apply method can be used to execute the Effect effect and possibly get a value out of it (but usually not displayed):
Effect(label, 1).apply() must_== 1
The value is stored in a Property object so it will not be evaluated until explicitly queried.
- Alphabetic
- By Inheritance
- Effect
- Serializable
- Serializable
- Product
- Equals
- DecoratedProperty
- DecoratedLabel
- Executable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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
-
def
apply(v: ⇒ T): Effect[T]
set a new value on the effect
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
decorateLabel(ns: Any): Any
do the decoration
do the decoration
- Definition Classes
- DecoratedLabel
-
def
decorateLabelWith(f: (Any) ⇒ Any): Effect[T]
set a new Decorator for the label
set a new Decorator for the label
- Definition Classes
- DecoratedLabel
-
def
decorateValue(ns: Any): Any
do the decoration
do the decoration
- Definition Classes
- DecoratedProperty
-
def
decorateValueWith(f: (Any) ⇒ Any): Effect[T]
set a new Decorator for the value
set a new Decorator for the value
- Definition Classes
- DecoratedProperty
-
def
decorateWith(f: (Any) ⇒ Any): Effect[T]
set a new Decorator
set a new Decorator
- Definition Classes
- DecoratedProperty
-
val
decorator: Decorator
- Definition Classes
- Effect → DecoratedLabel
-
def
decoratorIs(d: Decorator): Effect[T]
set a new Decorator
set a new Decorator
- Definition Classes
- Effect → DecoratedLabel
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(a: Any): Boolean
- Definition Classes
- Effect → Equals → AnyRef → Any
-
def
execute: Result
executing an effect executes the value and returns success unless there is an Error
executing an effect executes the value and returns success unless there is an Error
- returns
a Result
- Definition Classes
- Effect → Executable
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def flatMap[S](f: (T) ⇒ Option[S]): Effect[S]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- Effect → AnyRef → Any
-
def
header: Effect[T]
use this Effect as a header in a table
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val label: String
-
def
labelStyles: String
return the label styles
return the label styles
- Definition Classes
- DecoratedLabel
- def map[S](f: (T) ⇒ S): Effect[S]
-
def
map(f: (Result) ⇒ Result): Executable
modify the result to return
modify the result to return
- Definition Classes
- Executable
-
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
styleLabelWith(s: (String, String)): Effect[T]
set a new style for the label
set a new style for the label
- Definition Classes
- DecoratedLabel
-
def
styleValueWith(s: (String, String)): Effect[T]
set a new style for the value
set a new style for the value
- Definition Classes
- DecoratedProperty
-
def
styleWith(s: (String, String)): Effect[T]
set a new style
set a new style
- Definition Classes
- DecoratedProperty
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Effect → AnyRef → Any
- val value: Property[T]
- def valueOrResult: Either[Result, T]
-
def
valueStyles: String
- Definition Classes
- DecoratedProperty
-
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( ... )