public class ContentType extends AbstractElementType
Modifier and Type | Class and Description |
---|---|
static class |
ContentType.ContentTypeContext |
Modifier and Type | Field and Description |
---|---|
static ContentType |
INSTANCE |
Modifier | Constructor and Description |
---|---|
|
ContentType() |
protected |
ContentType(String id) |
Modifier and Type | Method and Description |
---|---|
void |
configureDesignTimeDefaults(ReportElement element,
Locale locale)
Compute the design-time defaults that should be applied to an element after it was created by a design-tool.
|
protected ComponentDrawable |
createComponentDrawable(ExpressionRuntime runtime,
Component c,
ReportElement element) |
protected Object |
filter(ExpressionRuntime runtime,
ReportElement element,
Object value) |
Object |
getDesignValue(ExpressionRuntime runtime,
ReportElement element)
Compute a design-time value.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
clone, create, equals, getId, getMetaData, hashCode
public static final ContentType INSTANCE
public ContentType()
protected ContentType(String id)
public Object getValue(ExpressionRuntime runtime, ReportElement element)
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- the element for which the data is computed.public Object getDesignValue(ExpressionRuntime runtime, ReportElement element)
ElementType
.Element#getComputedStyle()
method. The local style-sheet for the
element may not have all information.runtime
- the expression runtime holding the current report state.element
- the element.protected Object filter(ExpressionRuntime runtime, ReportElement element, Object value)
protected final ComponentDrawable createComponentDrawable(ExpressionRuntime runtime, Component c, ReportElement element)
public void configureDesignTimeDefaults(ReportElement element, Locale locale)
ElementType
configureDesignTimeDefaults
in interface ElementType
configureDesignTimeDefaults
in class AbstractElementType
element
- the element that should be configured.locale
- the locale.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.