|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBasePrintElement net.sf.jasperreports.engine.base.JRBaseGenericPrintElement
public class JRBaseGenericPrintElement
A basic implementation of JRGenericPrintElement
.
Field Summary |
---|
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
---|
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, y |
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement |
---|
UNSET_SOURCE_ELEMENT_ID |
Constructor Summary | |
---|---|
JRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider)
Creates a generic print element. |
Method Summary | ||
---|---|---|
|
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. |
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
---|
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setSourceElementId, setStyle, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement |
---|
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable |
---|
getUUID |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Constructor Detail |
---|
public JRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider
- the default style provider to use for the elementJasperPrint.getDefaultStyleProvider()
Method Detail |
---|
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 name
null
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 name
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |