Component

class Component(val context: ComponentContext) extends ComponentContextAware
class Object
trait Matchable
class Any

Value members

Concrete methods

final def addParameter(key: String, value: Object): Unit

Adds the given key and value to this component's own parameter.

Adds the given key and value to this component's own parameter.

If the provided key is <tt>null</tt> nothing happens. If the provided value is <tt>null</tt> any existing parameter with the given key name is removed.

def end(writer: Writer, body: String): Boolean

Callback for the end tag of this component. Should the body be evaluated again?

Callback for the end tag of this component. Should the body be evaluated again?

def evaluateParams(): Unit
final def findAncestor[T <: Component](clazz: Class[T]): T

Finds the nearest ancestor of this component stack.

Finds the nearest ancestor of this component stack.

Value Params
clazz

the class to look for, or if assignable from.

Returns

the component if found, <tt>null</tt> if not.

final def parameterString: String

将所有额外参数链接起来

将所有额外参数链接起来

Returns

空格开始 空格相隔的参数字符串

def start(writer: Writer): Boolean

Callback for the start tag of this component. Should the body be evaluated?

Callback for the start tag of this component. Should the body be evaluated?

def usesBody(): Boolean

Overwrite to set if body shold be used.

Overwrite to set if body shold be used.

Returns

always false for this component.

Concrete fields

val parameters: LinkedHashMap[String, Object]
var theme: String