Package net.sf.jasperreports.engine.fill
Class DefaultPrintElementOriginator
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.DefaultPrintElementOriginator
-
- All Implemented Interfaces:
PrintElementOriginator
public class DefaultPrintElementOriginator extends Object implements PrintElementOriginator
DefaultPrintElementOriginator
implementation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_MAXIMUM_ELEMENTS_NUMBER_REACHED
-
Constructor Summary
Constructors Constructor Description DefaultPrintElementOriginator(int sourceElementId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
generatePrintElementId()
Generates a numerical Id that together withPrintElementOriginator.getSourceElementId()
uniquely identifies a print element.int
getSourceElementId()
Returns a numerical Id associated to the source fill element.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_MAXIMUM_ELEMENTS_NUMBER_REACHED
public static final String EXCEPTION_MESSAGE_KEY_MAXIMUM_ELEMENTS_NUMBER_REACHED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSourceElementId
public int getSourceElementId()
Description copied from interface:PrintElementOriginator
Returns a numerical Id associated to the source fill element.- Specified by:
getSourceElementId
in interfacePrintElementOriginator
- Returns:
- the Id of the source fill element
- See Also:
JRPrintElement.getSourceElementId()
-
generatePrintElementId
public int generatePrintElementId()
Description copied from interface:PrintElementOriginator
Generates a numerical Id that together withPrintElementOriginator.getSourceElementId()
uniquely identifies a print element.- Specified by:
generatePrintElementId
in interfacePrintElementOriginator
- Returns:
- a print Id
- See Also:
JRPrintElement.getPrintElementId()
-
-