public class JRTemplateGenericPrintElement extends JRTemplatePrintElement implements JRGenericPrintElement
JRGenericPrintElement
that uses
a JRTemplateGenericElement
instance to
store common attributes.JRTemplateGenericPrintElement
,
Serialized Formtemplate
Constructor and Description |
---|
JRTemplateGenericPrintElement(JRTemplateGenericElement template)
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 |
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, getMode, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getTemplate, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setMode, setMode, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getKey, getOrigin, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
getBackcolor, getForecolor, getMode, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, setBackcolor, setForecolor, setMode, setMode, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
public JRTemplateGenericPrintElement(JRTemplateGenericElement template)
template
- the template to use for the elementpublic JRGenericElementType getGenericType()
getGenericType
in interface JRGenericPrintElement
JRTemplateGenericElement.getGenericType()
public java.util.Set getParameterNames()
JRGenericPrintElement
getParameterNames
in interface JRGenericPrintElement
String
s).public java.lang.Object getParameterValue(java.lang.String name)
JRGenericPrintElement
getParameterValue
in interface JRGenericPrintElement
name
- the parameter namenull
if a parameter by
the specified name does not exist.public boolean hasParameter(java.lang.String name)
JRGenericPrintElement
hasParameter
in interface JRGenericPrintElement
name
- the parameter namepublic void setParameterValue(java.lang.String name, java.lang.Object value)
JRGenericPrintElement
setParameterValue
in interface JRGenericPrintElement
name
- the parameter namevalue
- the parameter valuepublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElement
The element calls the method that corresponds to the element type on the visitor.
accept
in interface JRPrintElement
accept
in class JRTemplatePrintElement
T
- 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