public class JRBaseGenericPrintElement extends JRBasePrintElement implements JRGenericPrintElement
JRGenericPrintElement
.backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, y
UNSET_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.
|
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 |
setGenericType(JRGenericElementType genericType)
Sets the type of this element.
|
void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Sets a parameter value.
|
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setY
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
public JRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider
- the default style provider to use for the elementJasperPrint.getDefaultStyleProvider()
public JRGenericElementType getGenericType()
JRGenericPrintElement
getGenericType
in interface JRGenericPrintElement
public void setGenericType(JRGenericElementType genericType)
genericType
- the type of the elementgetGenericType()
public java.util.Set<java.lang.String> 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 JRBasePrintElement
T
- the type of the argument passed to the visit operationvisitor
- the visitor objectsarg
- the argument passed to the visit operation© 2001-2014 TIBCO Software Inc. www.jaspersoft.com