Class JRPrintElementIndex

java.lang.Object
net.sf.jasperreports.engine.JRPrintElementIndex

public class JRPrintElementIndex extends Object
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Constructor Details

    • JRPrintElementIndex

      public JRPrintElementIndex(int reportIndex, int pageIndex, String address)
  • Method Details

    • getReportIndex

      public int getReportIndex()
    • getPageIndex

      public int getPageIndex()
    • toString

      public 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:
      toString in class Object
    • getAddressArray

      public Integer[] getAddressArray()
    • parsePrintElementIndex

      public static JRPrintElementIndex parsePrintElementIndex(String indexStr)
      Parses a String representation as obtained by toString() 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