Package net.sf.jasperreports.engine.base
Class JRBaseGenericPrintElement
java.lang.Object
net.sf.jasperreports.engine.base.JRBasePrintElement
net.sf.jasperreports.engine.base.JRBaseGenericPrintElement
- All Implemented Interfaces:
Serializable,JRCommonElement,JRGenericPrintElement,JRIdentifiable,JRPrintElement,JRPropertiesHolder,JRStyleContainer
A basic implementation of
JRGenericPrintElement.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, mode, origin, style, uuid, width, x, yFields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID -
Constructor Summary
ConstructorsConstructorDescriptionJRBaseGenericPrintElement(JRDefaultStyleProvider defaultStyleProvider) Creates a generic print element. -
Method Summary
Modifier and TypeMethodDescription<T> voidaccept(PrintElementVisitor<T> visitor, T arg) Accepts a print element visitor.Returns the type of this element.Returns the set of parameter names for this element.getParameterValue(String name) Returns the value of a parameter.booleanhasParameter(String name) Determines whether the element includes a parameter having a given name.voidsetGenericType(JRGenericElementType genericType) Sets the type of this element.voidsetParameterValue(String name, Object value) Sets a parameter value.Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Constructor Details
-
JRBaseGenericPrintElement
Creates a generic print element.- Parameters:
defaultStyleProvider- the default style provider to use for the element- See Also:
-
-
Method Details
-
getGenericType
Description copied from interface:JRGenericPrintElementReturns the type of this element.- Specified by:
getGenericTypein interfaceJRGenericPrintElement- Returns:
- the element type
-
setGenericType
Sets the type of this element.- Parameters:
genericType- the type of the element- See Also:
-
getParameterNames
Description copied from interface:JRGenericPrintElementReturns the set of parameter names for this element.- Specified by:
getParameterNamesin interfaceJRGenericPrintElement- Returns:
- the set of parameter names (as
Strings).
-
getParameterValue
Description copied from interface:JRGenericPrintElementReturns the value of a parameter.- Specified by:
getParameterValuein interfaceJRGenericPrintElement- Parameters:
name- the parameter name- Returns:
- the parameter value, or
nullif a parameter by the specified name does not exist.
-
hasParameter
Description copied from interface:JRGenericPrintElementDetermines whether the element includes a parameter having a given name.- Specified by:
hasParameterin interfaceJRGenericPrintElement- Parameters:
name- the parameter name- Returns:
- whether a parameter having the specified name exists in the element
-
setParameterValue
Description copied from interface:JRGenericPrintElementSets a parameter value.- Specified by:
setParameterValuein interfaceJRGenericPrintElement- Parameters:
name- the parameter namevalue- the parameter value
-
accept
Description copied from interface:JRPrintElementAccepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Specified by:
acceptin interfaceJRPrintElement- Overrides:
acceptin classJRBasePrintElement- Type Parameters:
T- the type of the argument passed to the visit operation- Parameters:
visitor- the visitor objectsarg- the argument passed to the visit operation
-