Package org.compiere.print
Class PrintDataElement
java.lang.Object
org.compiere.print.PrintDataElement
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
ConstructorDescriptionPrintDataElement
(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, boolean isPKey, boolean isPageBreak, String format) PrintDataElement
(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, boolean isPKey, boolean isPageBreak, String format, String foreignColumnName) Print Data Element ConstructorPrintDataElement
(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, String pattern) Print Data Element ConstructorPrintDataElement
(int AD_PrintFormatItem_ID, String columnName, Serializable value, int displayType, String pattern, String foreignColumnName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equalsint
Get Nameint
Get Display TypeGet ForeignNameGet Function ValuegetValue()
Get Node ValueGet Node Data Value as StringgetValueDisplay
(Language language) Get Node Value DisplayGet Node Value Keyint
hashCode()
HashCodeboolean
hasKey()
Value Has Keyboolean
isDate()
Is Value a dateboolean
isID()
Is Value an IDboolean
isNull()
Is Value Nullboolean
Is Value numericboolean
Column value forces page breakboolean
isPKey()
Is Value the primary key of rowboolean
isYesNo()
Is Value booleanvoid
setDisplayType
(int displayType) Set Display Typevoid
setForeignColumnName
(String foreignColumnName) Set ForeignNamevoid
setM_formatPattern
(String pattern) void
setValue
(Serializable value) Set Node ValuetoString()
String representationString representation with key info
-
Field Details
-
XML_TAG
XML Element Name- See Also:
-
XML_ATTRIBUTE_NAME
XML Attribute Name- See Also:
-
XML_ATTRIBUTE_KEY
XML Attribute Key- See Also:
-
XML_ATTRIBUTE_PRINTFORMATITEM_ID
XML Attribute PrintFormatItem Id- See Also:
-
-
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
- namevalue
- display valuedisplayType
- optional displayTypeisPKey
- is primary keyisPageBreak
- if true force page breakforeignColumnName
- 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
- namevalue
- display valuepattern
- Number/date format patterndisplayType
- 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
Get Name- Returns:
- name
-
getForeignColumnName
Get ForeignName- Returns:
- name
-
setForeignColumnName
Set ForeignName- Parameters:
foreignColumnName
-
-
getValue
Get Node Value- Returns:
- value
-
setValue
Set Node Value- Parameters:
value
-
-
getFunctionValue
Get Function Value- Returns:
- length or numeric value
-
getValueDisplay
Get Node Value Display- Parameters:
language
- optional language - if null numbers/dates are not formatted- Returns:
- display value optionally formatted
-
getValueAsString
Get Node Data Value as String- Returns:
- data value
-
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 -
equals
Equals -
toString
String representation -
hasKey
public boolean hasKey()Value Has Key- Returns:
- true if value has a key
-
toStringX
String representation with key info- Returns:
- info
-
getM_formatPattern
-
setM_formatPattern
-