|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRTemplatePrintElement
net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement
public class JRTemplateGenericPrintElement
Implementation of JRGenericPrintElement that uses
a JRTemplateGenericElement instance to
store common attributes.
JRTemplateGenericPrintElement,
Serialized Form| Field Summary |
|---|
| Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement |
|---|
template |
| Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement |
|---|
UNSET_SOURCE_ELEMENT_ID |
| Constructor Summary | |
|---|---|
JRTemplateGenericPrintElement(JRTemplateGenericElement template)
Deprecated. provide a source Id via JRTemplateGenericPrintElement(JRTemplateGenericElement, int) |
|
JRTemplateGenericPrintElement(JRTemplateGenericElement template,
int sourceElementId)
Creates a generic print element. |
|
| Method Summary | ||
|---|---|---|
|
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor. |
|
JRGenericElementType |
getGenericType()
Returns the generic type specified by the element template. |
|
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 |
setParameterValue(String name,
Object value)
Sets a parameter value. |
|
| Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement |
|---|
getBackcolor, getDefaultLineColor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate |
| 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 JRTemplateGenericPrintElement(JRTemplateGenericElement template)
JRTemplateGenericPrintElement(JRTemplateGenericElement, int)
template - the template to use for the element
public JRTemplateGenericPrintElement(JRTemplateGenericElement template,
int sourceElementId)
template - the template to use for the elementsourceElementId - the Id of the source element| Method Detail |
|---|
public JRGenericElementType getGenericType()
getGenericType in interface JRGenericPrintElementJRTemplateGenericElement.getGenericType()public Set<String> getParameterNames()
JRGenericPrintElement
getParameterNames in interface JRGenericPrintElementStrings).public Object getParameterValue(String name)
JRGenericPrintElement
getParameterValue in interface JRGenericPrintElementname - the parameter name
null if a parameter by
the specified name does not exist.public boolean hasParameter(String name)
JRGenericPrintElement
hasParameter in interface JRGenericPrintElementname - the parameter name
public void setParameterValue(String name,
Object value)
JRGenericPrintElement
setParameterValue in interface JRGenericPrintElementname - the parameter namevalue - the parameter value
public <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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||