Package org.idempiere.ui.zk.report
Record Class ReportFormatEntry
java.lang.Object
java.lang.Record
org.idempiere.ui.zk.report.ReportFormatEntry
- Record Components:
key- AD_PrintFormat_ID, orKEY_NEW/KEY_COPYfor the create actionsname- translated display namedescription- translated description of the print format, null if none or for the create actionsclientId- AD_Client_ID of the print format, 0 for System and for the create actionskind- what the entry stands for
public record ReportFormatEntry(int key, String name, String description, int clientId, ReportFormatEntry.Kind kind)
extends Record
Print format offered in the report viewer format selector.
The viewer builds the entries after the role checks. A selector can reorder, group and decorate them
but cannot add one.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReportFormatEntry(int key, String name, String description, int clientId, ReportFormatEntry.Kind kind) Creates an instance of aReportFormatEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclientId()Returns the value of theclientIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFormat()intkey()Returns the value of thekeyrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KEY_NONE
public static final int KEY_NONEKey reported when no entry is selected- See Also:
-
KEY_NEW
public static final int KEY_NEWKey of the entry that creates a new print format- See Also:
-
KEY_COPY
public static final int KEY_COPYKey of the entry that copies the current print format- See Also:
-
-
Constructor Details
-
ReportFormatEntry
public ReportFormatEntry(int key, String name, String description, int clientId, ReportFormatEntry.Kind kind) Creates an instance of aReportFormatEntryrecord class.- Parameters:
key- the value for thekeyrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentclientId- the value for theclientIdrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
isFormat
public boolean isFormat()- Returns:
- true if the entry is a print format the report can switch to
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
public int key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
clientId
public int clientId()Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-