Record Class ReportFormatRequest

java.lang.Object
java.lang.Record
org.idempiere.ui.zk.report.ReportFormatRequest
Record Components:
reportEngine - report engine shown in the viewer
windowId - AD_Window_ID the report was started from, 0 if none
compact - true if the selector is shown in the narrow-screen toolbar popup

public record ReportFormatRequest(ReportEngine reportEngine, int windowId, boolean compact) extends Record
Context for creating a report viewer format selector.
  • Constructor Details

    • ReportFormatRequest

      public ReportFormatRequest(ReportEngine reportEngine, int windowId, boolean compact)
      Creates an instance of a ReportFormatRequest record class.
      Parameters:
      reportEngine - the value for the reportEngine record component
      windowId - the value for the windowId record component
      compact - the value for the compact record component
  • Method Details

    • printFormat

      public MPrintFormat printFormat()
      Returns:
      print format shown in the viewer when the selector is created
    • tableId

      public int tableId()
      Returns:
      AD_Table_ID of the print format, 0 if there is none
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • reportEngine

      public ReportEngine reportEngine()
      Returns the value of the reportEngine record component.
      Returns:
      the value of the reportEngine record component
    • windowId

      public int windowId()
      Returns the value of the windowId record component.
      Returns:
      the value of the windowId record component
    • compact

      public boolean compact()
      Returns the value of the compact record component.
      Returns:
      the value of the compact record component