com.groiss.reporting.data
Class SimpleReportingExportable

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

public class SimpleReportingExportable
extends java.lang.Object
implements ReportingExportable

ReportinExportable for non DB-data Objects. Can handle any Object.


Constructor Summary
SimpleReportingExportable(java.lang.Object data)
           
 
Method Summary
 int compareTo(ReportingExportable s)
          compares the 2 object if they are Comparable.
 boolean equals(ReportingExportable o)
           
 java.lang.Object getValue()
          returns the Value
 void setValue(java.lang.Object o)
          Sets the value for this object
 java.lang.Object toHtml()
          return type is eighter a implementation of Component or a String
 java.lang.String toText()
          returns the toString() of the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReportingExportable

public SimpleReportingExportable(java.lang.Object data)
Method Detail

getValue

public java.lang.Object getValue()
returns the Value

Specified by:
getValue in interface ReportingExportable
Returns:
the value of this object

setValue

public void setValue(java.lang.Object o)
Description copied from interface: ReportingExportable
Sets the value for this object

Specified by:
setValue in interface ReportingExportable
Parameters:
o - - the value object

toText

public java.lang.String toText()
returns the toString() of the value

Specified by:
toText in interface ReportingExportable
Returns:
the String represantation of this Object

compareTo

public int compareTo(ReportingExportable s)
compares the 2 object if they are Comparable. if not, the toString-represantations are compared

Specified by:
compareTo in interface ReportingExportable
Specified by:
compareTo in interface java.lang.Comparable<ReportingExportable>
Parameters:
s -
Returns:
see Comparable.compareTo(Object)

toHtml

public java.lang.Object toHtml()
Description copied from interface: ReportingExportable
return type is eighter a implementation of Component or a String

Specified by:
toHtml in interface ReportingExportable
Returns:
the HTML represantation of this Object.

equals

public boolean equals(ReportingExportable o)


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.