Class SimpleReportingExportable

java.lang.Object
com.groiss.reporting.export.AbstractReportingExportable
com.groiss.reporting.data.SimpleReportingExportable
All Implemented Interfaces:
ReportingExportable, Comparable<ReportingExportable>

public class SimpleReportingExportable extends AbstractReportingExportable
ReportinExportable for non DB-data Objects. Can handle any Object.
  • Constructor Details

    • SimpleReportingExportable

      public SimpleReportingExportable(Object data)
  • Method Details

    • getValue

      public Object getValue()
      Returns:
      the value of this object
    • setValue

      public void setValue(Object o)
      Description copied from interface: ReportingExportable
      Sets the value for this object
      Parameters:
      o - - the value object
    • toText

      public String toText()
      returns the toString() of the value
      Returns:
      the String representation of this Object
    • compareTo

      public int compareTo(ReportingExportable s)
      compares the 2 object if they are Comparable. if not, the toString-represantations are compared
      Parameters:
      s -
      Returns:
      see Comparable.compareTo(Object)
    • getColumnRenderer

      public String getColumnRenderer()
      Description copied from interface: ReportingExportable
      Defines Columnrenderer which implements the render function (used in ep 9.0)
      Returns:
      the dojo-module
    • toJson

      public JSONObject toJson()
      Description copied from interface: ReportingExportable
      Export Data to Json (used in ep 9.0)
      Returns:
      the data