public class NumberFieldType extends AbstractElementType implements RawDataSource, RotatableText
Modifier and Type | Class and Description |
---|---|
static class |
NumberFieldType.NumberFieldTypeContext |
Modifier and Type | Field and Description |
---|---|
static NumberFieldType |
INSTANCE |
Constructor and Description |
---|
NumberFieldType() |
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.
|
Object |
getDesignValue(ExpressionRuntime runtime,
ReportElement element)
Compute a design-time value.
|
FormatSpecification |
getFormatString(ExpressionRuntime runtime,
ReportElement element,
FormatSpecification formatSpecification)
Returns information about the formatstring that was used to transform a raw-value into a formatted text.
|
Object |
getRawValue(ExpressionRuntime runtime,
ReportElement element)
Returns the unformated raw value.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
clone, create, equals, getId, getMetaData, hashCode
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clone
isRotationSupported, rotate
public static final NumberFieldType INSTANCE
public Object getDesignValue(ExpressionRuntime runtime, ReportElement element)
ElementType
.Element#getComputedStyle()
method. The local style-sheet for the
element may not have all information.getDesignValue
in interface ElementType
runtime
- the expression runtime holding the current report state.element
- the element.public Object getRawValue(ExpressionRuntime runtime, ReportElement element)
Number
or Date
objects is a good idea.getRawValue
in interface RawDataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public FormatSpecification getFormatString(ExpressionRuntime runtime, ReportElement element, FormatSpecification formatSpecification)
.classic.core.filter.FormatSpecification#TYPE_UNDEFINED
in that case.getFormatString
in interface RawDataSource
runtime
- the Expression runtime used to possibly compute the raw-value.element
- the element to which this datasource is added.formatSpecification
- the format specification (can be null). @return a filled format specififcation. If the
formatSpecification
parameter was not null, this given instance is reused.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.public Object getValue(ExpressionRuntime runtime, ReportElement element)
getValue
in interface DataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- the element from which to read attribute.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.