public class JRTemplateGenericElement extends JRTemplateElement
JRTemplateGenericPrintElement
,
Serialized FormdefaultStyleProvider, origin, parentStyle
Modifier | Constructor and Description |
---|---|
|
JRTemplateGenericElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRElement element,
JRGenericElementType genericType)
Creates a generic print element template.
|
protected |
JRTemplateGenericElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRGenericElement element) |
|
JRTemplateGenericElement(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRGenericElementType genericType)
Creates a generic print element template.
|
Modifier and Type | Method and Description |
---|---|
JRGenericElementType |
getGenericType()
Returns the type of the generic elements that use this template.
|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map.
|
boolean |
isIdentical(Object object)
Determines if this instance is identical to another object.
|
void |
setGenericType(JRGenericElementType genericType)
Sets the type of the generic elements that use this template.
|
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdentical
protected JRTemplateGenericElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGenericElement element)
public JRTemplateGenericElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGenericElementType genericType)
origin
- the origin of the elements that will use the templatedefaultStyleProvider
- the style provider to be used for the elementsgenericType
- the type of the generic elementspublic JRTemplateGenericElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRElement element, JRGenericElementType genericType)
origin
- the origin of the elements that will use the templatedefaultStyleProvider
- the style provider to be used for the elementselement
- an element to copy basic elements fromgenericType
- the type of the generic elementspublic JRGenericElementType getGenericType()
public void setGenericType(JRGenericElementType genericType)
genericType
- the generic typepublic int getHashCode()
Deduplicable
Deduplicable.isIdentical(Object)
,
i.e. if two objects are identical they should have the same hash code.public boolean isIdentical(Object object)
Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.