public class DateFieldType extends AbstractElementType implements RawDataSource, RotatableText
Modifier and Type | Class and Description |
---|---|
static class |
DateFieldType.DateFieldTypeContext |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FORMAT |
static DateFieldType |
INSTANCE |
Constructor and Description |
---|
DateFieldType() |
Modifier and Type | Method and Description |
---|---|
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, configureDesignTimeDefaults, create, equals, getMetaData, hashCode
getClass, notify, notifyAll, toString, wait, wait, wait
clone
isRotationSupported, rotate
public static final DateFieldType INSTANCE
public static final String DEFAULT_FORMAT
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).formatSpecification
parameter was not null, this given
instance is reused.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.