public class ComputedHeaderElement extends FrameElement
Unlike HeaderElement
, this element keeps an array of field references participating in the
expression and allows to replace references before the evaluation of the expression.
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
clazz
Class of the
computable . |
private java.lang.Object |
computable
The
Computable (there are multiple versions of this interface with different number of
parameters taken) expression to be evaluated for its value as header data. |
private java.lang.String |
fmt
The value's associated format string or
null . |
private java.lang.reflect.Method |
method
Method to be invoked to evaluate the expression.
|
private FieldReference[] |
refs
Array of field references participating in the expression.
|
private GenericWidget |
widget
The widget associated with this element.
|
Modifier | Constructor and Description |
---|---|
|
ComputedHeaderElement(Computable10 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable10 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable11 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable11 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable12 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable12 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable13 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable13 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable14 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable14 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable15 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable15 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable2 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable2 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable3 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable3 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable4 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable4 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable5 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable5 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable6 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable6 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable7 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable7 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable8 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable8 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable9 computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable9 computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable computable,
FieldReference ref,
GenericWidget widget)
Create an instance.
|
|
ComputedHeaderElement(Computable computable,
java.lang.String fmt,
FieldReference ref,
GenericWidget widget)
Create an instance.
|
private |
ComputedHeaderElement(java.lang.Object computable,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
private |
ComputedHeaderElement(java.lang.Object computable,
java.lang.String fmt,
FieldReference[] refs,
GenericWidget widget)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
BaseDataType |
get()
Get a copy of the referenced object's current runtime value.
|
FieldReference[] |
getFieldReferences()
Get array of field references participating in the expression.
|
java.lang.String |
getFormat()
Accesses the format string associated with this frame element.
|
FormattedValue |
getFormattedValue()
Accesses the formatted value associated with this frame element.
|
GenericWidget |
getWidget()
Accesses the widget associated with this frame element.
|
boolean |
hasFormat()
Determines if the element stores a format string in addition to a data
value.
|
void |
set(BaseDataType val)
Set the referenced object's current runtime value to the given value.
|
void |
setFieldReferences(FieldReference[] refs)
Set the array of the new field references participating in the expression.
|
assignOnly, bypass, getAccumulator, statsColumn, widgetOnly, wordWrap
private java.lang.Object computable
Computable
(there are multiple versions of this interface with different number of
parameters taken) expression to be evaluated for its value as header data.private FieldReference[] refs
private GenericWidget widget
private java.lang.Class clazz
computable
.private java.lang.reflect.Method method
private java.lang.String fmt
null
.private ComputedHeaderElement(java.lang.Object computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.private ComputedHeaderElement(java.lang.Object computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable computable, java.lang.String fmt, FieldReference ref, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.ref
- Single field reference participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable computable, FieldReference ref, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.ref
- Single field reference participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable2 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable2 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable3 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable3 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable4 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable4 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable5 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable5 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable6 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable6 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable7 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable7 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable8 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable8 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable9 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable9 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable10 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable10 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable11 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable11 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable12 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable12 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable13 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable13 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable14 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable14 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable15 computable, java.lang.String fmt, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.fmt
- The format string to associate with the data value. May be
null
.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public ComputedHeaderElement(Computable15 computable, FieldReference[] refs, GenericWidget widget)
computable
- The expression to be evaluated for its value as header data.refs
- Array of field references participating in the expression.widget
- The widget associated with this element.public FieldReference[] getFieldReferences()
public void setFieldReferences(FieldReference[] refs)
refs
- Array of the new field references participating in the expression.public boolean hasFormat()
hasFormat
in class FrameElement
true
if there is a format string encoded in this
instance, false
if the format string is
null
.public FormattedValue getFormattedValue()
getFormattedValue
in class FrameElement
public java.lang.String getFormat()
getFormat
in class FrameElement
public GenericWidget getWidget()
getWidget
in class FrameElement
public BaseDataType get()
public void set(BaseDataType val)
val
- Not used.