Package net.sf.jasperreports.engine
Class JRPrintElementIndex
- java.lang.Object
-
- net.sf.jasperreports.engine.JRPrintElementIndex
-
public class JRPrintElementIndex extends java.lang.Object- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRPrintElementIndex(int reportIndex, int pageIndex, java.lang.String address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer[]getAddressArray()intgetPageIndex()intgetReportIndex()static JRPrintElementIndexparsePrintElementIndex(java.lang.String indexStr)Parses a String representation as obtained bytoString()back into an element index instance.java.lang.StringtoString()public Integer[] getElementIndexes() { return (Integer[]) elementIndexes.toArray(new Integer[elementIndexes.size()]); } /** Returns a String representation of this element index.
-
-
-
Method Detail
-
getReportIndex
public int getReportIndex()
-
getPageIndex
public int getPageIndex()
-
toString
public java.lang.String toString()
public Integer[] getElementIndexes() { return (Integer[]) elementIndexes.toArray(new Integer[elementIndexes.size()]); } /** Returns a String representation of this element index.The representation is obtained by appending all the indexes that compose this instance. The result is compatible with
parsePrintElementIndex(String), which can be used to recreate the elemetn index instance from a String representation.- Overrides:
toStringin classjava.lang.Object
-
getAddressArray
public java.lang.Integer[] getAddressArray()
-
parsePrintElementIndex
public static JRPrintElementIndex parsePrintElementIndex(java.lang.String indexStr)
Parses a String representation as obtained bytoString()back into an element index instance.- Parameters:
indexStr- the String representation of an element index- Returns:
- an element index instance corresponding to the String representation
-
-