public class JRBaseGenericPrintElement extends JRBasePrintElement implements JRGenericPrintElement
JRGenericPrintElement.backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, yUNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider)
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 type of this element.
|
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 |
setGenericType(JRGenericElementType genericType)
Sets the type of this element.
|
void |
setParameterValue(String name,
Object value)
Sets a parameter value.
|
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYgetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDpublic JRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider - the default style provider to use for the elementJasperPrint.getDefaultStyleProvider()public JRGenericElementType getGenericType()
JRGenericPrintElementgetGenericType in interface JRGenericPrintElementpublic void setGenericType(JRGenericElementType genericType)
genericType - the type of the elementgetGenericType()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 JRBasePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationCopyright © 2017. All rights reserved.