public class JRTemplateGenericPrintElement extends JRTemplatePrintElement implements JRGenericPrintElement
JRGenericPrintElement that uses
a JRTemplateGenericElement instance to
store common attributes.JRTemplateGenericPrintElement,
Serialized FormtemplateUNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRTemplateGenericPrintElement(JRTemplateGenericElement template)
Deprecated.
provide a source Id via
JRTemplateGenericPrintElement(JRTemplateGenericElement, int) |
JRTemplateGenericPrintElement(JRTemplateGenericElement template,
int sourceElementId)
Creates a generic print element.
|
JRTemplateGenericPrintElement(JRTemplateGenericElement template,
int sourceElementId,
int parameterCount)
Creates a generic print element.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
JRGenericElementType |
getGenericType()
Returns the generic type specified by the element template.
|
Set<String> |
getParameterNames()
Returns the set of parameter names for this element.
|
Object |
getParameterValue(String name)
Returns the value of a parameter.
|
boolean |
hasParameter(String name)
Determines whether the element includes a parameter having a given name.
|
void |
setParameterValue(String name,
Object value)
Sets a parameter value.
|
getBackcolor, getDefaultLineColor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, setWidth, setX, setY, updateElementTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYgetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDpublic JRTemplateGenericPrintElement(JRTemplateGenericElement template)
JRTemplateGenericPrintElement(JRTemplateGenericElement, int)template - the template to use for the elementpublic JRTemplateGenericPrintElement(JRTemplateGenericElement template, int sourceElementId)
template - the template to use for the elementsourceElementId - the Id of the source elementpublic JRTemplateGenericPrintElement(JRTemplateGenericElement template, int sourceElementId, int parameterCount)
template - the template to use for the elementsourceElementId - the Id of the source elementparameterCount - the number of parameters that the element will havepublic JRGenericElementType getGenericType()
getGenericType in interface JRGenericPrintElementJRTemplateGenericElement.getGenericType()public Set<String> getParameterNames()
JRGenericPrintElementgetParameterNames in interface JRGenericPrintElementStrings).public Object getParameterValue(String name)
JRGenericPrintElementgetParameterValue in interface JRGenericPrintElementname - the parameter namenull if a parameter by
the specified name does not exist.public boolean hasParameter(String name)
JRGenericPrintElementhasParameter in interface JRGenericPrintElementname - the parameter namepublic void setParameterValue(String name, Object value)
JRGenericPrintElementsetParameterValue in interface JRGenericPrintElementname - the parameter namevalue - the parameter valuepublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRTemplatePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationCopyright © 2012. All Rights Reserved.