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.
|
| 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.
|
java.util.Set<java.lang.String> |
getParameterNames()
Returns the set of parameter names for this element.
|
java.lang.Object |
getParameterValue(java.lang.String name)
Returns the value of a parameter.
|
boolean |
hasParameter(java.lang.String name)
Determines whether the element includes a parameter having a given name.
|
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Sets a parameter value.
|
getBackcolor, getDefaultLineColor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setYgetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiespublic 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 JRGenericElementType getGenericType()
getGenericType in interface JRGenericPrintElementJRTemplateGenericElement.getGenericType()public java.util.Set<java.lang.String> getParameterNames()
JRGenericPrintElementgetParameterNames in interface JRGenericPrintElementStrings).public java.lang.Object getParameterValue(java.lang.String name)
JRGenericPrintElementgetParameterValue in interface JRGenericPrintElementname - the parameter namenull if a parameter by
the specified name does not exist.public boolean hasParameter(java.lang.String name)
JRGenericPrintElementhasParameter in interface JRGenericPrintElementname - the parameter namepublic void setParameterValue(java.lang.String name,
java.lang.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 operation© 2001-2010 Jaspersoft Corporation www.jaspersoft.com