public class UserSummary extends DataClass
ListGrid.canAddSummaryFields
behavior.factoryCreated, factoryProperties, readOnly
Constructor and Description |
---|
UserSummary() |
UserSummary(com.google.gwt.core.client.JavaScriptObject jsObj) |
UserSummary(java.lang.String text) |
UserSummary(java.lang.String text,
java.util.Map summaryVars) |
Modifier and Type | Method and Description |
---|---|
static UserSummary |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.util.Map |
getSummaryVars()
Map from the all-capital letter names used as summary variables in the
UserSummary
String to the fieldNames these variables should represent in the context where the summary is evaluated. |
java.lang.String |
getText()
Summary to be evaluated.
|
void |
setSummaryVars(java.util.Map summaryVars)
Map from the all-capital letter names used as summary variables in the
UserSummary
String to the fieldNames these variables should represent in the context where the summary is evaluated. |
void |
setText(java.lang.String text)
Summary to be evaluated.
|
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getReadOnly, isFactoryCreated, logConfiguration, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated, setReadOnly
public UserSummary()
public UserSummary(com.google.gwt.core.client.JavaScriptObject jsObj)
public UserSummary(java.lang.String text)
public UserSummary(java.lang.String text, java.util.Map summaryVars)
public static UserSummary getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setSummaryVars(java.util.Map summaryVars)
UserSummary
String to the fieldNames these variables should represent in the context where the summary is evaluated. When used
in ListGridField.userSummary
context, field names
are evaluated against the grid record.
When used in FormItem.textFormula
or ListGridField.editorTextFormula
this property is
not used for summary mapping. Instead, field names are evaluated directly against the current rule context
.
summaryVars
- Default value is nullpublic java.util.Map getSummaryVars()
UserSummary
String to the fieldNames these variables should represent in the context where the summary is evaluated. When used
in ListGridField.userSummary
context, field names
are evaluated against the grid record.
When used in FormItem.textFormula
or ListGridField.editorTextFormula
this property is
not used for summary mapping. Instead, field names are evaluated directly against the current rule context
.
public void setText(java.lang.String text)
There are two contexts where a UserSummary is used: ListGridField.userSummary
and FormItem.textFormula
or ListGridField.editorTextFormula
. For the grid field
summary all variables used by the summary must be all-capital letter names surrounded by braces and escaped with a #
sign (eg #{A}). These are derived from field values for the record in question - see summaryVars
.
In the second usage context variables are
dot-separated (.) names representing the nested hierarchy path to the desired value within the rule context
. No mapping with summaryVars
is needed.
text
- Default value is nullpublic java.lang.String getText()
There are two contexts where a UserSummary is used: ListGridField.userSummary
and FormItem.textFormula
or ListGridField.editorTextFormula
. For the grid field
summary all variables used by the summary must be all-capital letter names surrounded by braces and escaped with a #
sign (eg #{A}). These are derived from field values for the record in question - see summaryVars
.
In the second usage context variables are
dot-separated (.) names representing the nested hierarchy path to the desired value within the rule context
. No mapping with summaryVars
is needed.