Class PrintDataElement

java.lang.Object
org.compiere.print.PrintDataElement
All Implemented Interfaces:
Serializable

public class PrintDataElement extends Object implements Serializable
Print Data Element
Version:
$Id: PrintDataElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

  • Constructor Details

    • PrintDataElement

      public PrintDataElement(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, boolean isPKey, boolean isPageBreak, String format, String foreignColumnName)
      Print Data Element Constructor
      Parameters:
      AD_PrintFormatItem_ID -
      columnName - name
      value - display value
      displayType - optional displayType
      isPKey - is primary key
      isPageBreak - if true force page break
      foreignColumnName - name foreign
    • PrintDataElement

      public PrintDataElement(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, String pattern, String foreignColumnName)
    • PrintDataElement

      public PrintDataElement(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, String pattern)
      Print Data Element Constructor
      Parameters:
      AD_PrintFormatItem_ID -
      columnName - name
      value - display value
      pattern - Number/date format pattern
      displayType - optional displayType
    • PrintDataElement

      public PrintDataElement(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, boolean isPKey, boolean isPageBreak, String format)
  • Method Details

    • getAD_PrintFormatItem_ID

      public int getAD_PrintFormatItem_ID()
      Returns:
      AD_PrintFormatItem_ID
    • getColumnName

      public String getColumnName()
      Get Name
      Returns:
      name
    • getForeignColumnName

      public String getForeignColumnName()
      Get ForeignName
      Returns:
      name
    • setForeignColumnName

      public void setForeignColumnName(String foreignColumnName)
      Set ForeignName
      Parameters:
      foreignColumnName -
    • getValue

      public Object getValue()
      Get Node Value
      Returns:
      value
    • setValue

      public void setValue(Serializable value)
      Set Node Value
      Parameters:
      value -
    • getFunctionValue

      public Serializable getFunctionValue()
      Get Function Value
      Returns:
      length or numeric value
    • getValueDisplay

      public String getValueDisplay(Language language)
      Get Node Value Display
      Parameters:
      language - optional language - if null numbers/dates are not formatted
      Returns:
      display value optionally formatted
    • getValueAsString

      public String getValueAsString()
      Get Node Data Value as String
      Returns:
      data value
    • getValueKey

      public String getValueKey()
      Get Node Value Key
      Returns:
      key
    • isNull

      public boolean isNull()
      Is Value Null
      Returns:
      true if value is null
    • getDisplayType

      public int getDisplayType()
      Get Display Type
      Returns:
      Display Type
    • setDisplayType

      public void setDisplayType(int displayType)
      Set Display Type
    • isNumeric

      public boolean isNumeric()
      Is Value numeric
      Returns:
      true if value is a numeric
    • isDate

      public boolean isDate()
      Is Value a date
      Returns:
      true if value is a date
    • isID

      public boolean isID()
      Is Value an ID
      Returns:
      true if value is an ID
    • isYesNo

      public boolean isYesNo()
      Is Value boolean
      Returns:
      true if value is a boolean
    • isPKey

      public boolean isPKey()
      Is Value the primary key of row
      Returns:
      true if value is the PK
    • isPageBreak

      public boolean isPageBreak()
      Column value forces page break
      Returns:
      true if page break
    • hashCode

      public int hashCode()
      HashCode
      Overrides:
      hashCode in class Object
      Returns:
      hash code
    • equals

      public boolean equals(Object compare)
      Equals
      Overrides:
      equals in class Object
      Parameters:
      compare - compare object
      Returns:
      true if equals
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object
      Returns:
      info
    • hasKey

      public boolean hasKey()
      Value Has Key
      Returns:
      true if value has a key
    • toStringX

      public String toStringX()
      String representation with key info
      Returns:
      info
    • getM_formatPattern

      public String getM_formatPattern()
    • setM_formatPattern

      public void setM_formatPattern(String pattern)