Package org.compiere.print
Class PrintDataGroup
java.lang.Object
org.compiere.print.PrintDataGroup
Group By Management
- Version:
- $Id: PrintDataGroup.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(int AD_PrintFormatItem_ID, char function) Add Function Columnvoid
addGroupColumn
(int AD_PrintFormatItem_ID) Add Group Columnvoid
addValue
(int functionColumnId, Serializable functionValue) Add Value to groupschar[]
getFunctions
(int groupId) Get calculated functions of columnint
Get Grouyp Column Count.getValue
(int groupId, int functionColumnId, char function) Get ValuegroupChange
(int AD_PrintFormatItem_ID, Object value, boolean force) Check for Group Changeboolean
isFunctionColumn
(int AD_PrintFormatItem_ID) Column has a functionboolean
isFunctionColumn
(int AD_PrintFormatItem_ID, char function) Column has a functionboolean
isGroupColumn
(int AD_PrintFormatItem_ID) Column has a functionvoid
reset
(int groupId, int functionColumnId) Reset Function valuestoString()
String RepresentationtoString
(boolean withData) String Representation
-
Field Details
-
DELIMITER
Column-Function Delimiter- See Also:
-
TOTAL
public static final int TOTALGrand Total Indicator- See Also:
-
-
Constructor Details
-
PrintDataGroup
public PrintDataGroup()Constructor
-
-
Method Details
-
addGroupColumn
public void addGroupColumn(int AD_PrintFormatItem_ID) Add Group Column- Parameters:
AD_PrintFormatItem_ID
- group column
-
getGroupColumnCount
public int getGroupColumnCount()Get Grouyp Column Count. TOTAL is included as a column- Returns:
- number of groups
-
isGroupColumn
public boolean isGroupColumn(int AD_PrintFormatItem_ID) Column has a function- Parameters:
AD_PrintFormatItem_ID
- column or TOTAL- Returns:
- true if column has function
-
groupChange
Check for Group Change- Parameters:
AD_PrintFormatItem_ID
- group columnvalue
- column value- Returns:
- null if no group change otherwise old value
-
addFunction
public void addFunction(int AD_PrintFormatItem_ID, char function) Add Function Column- Parameters:
AD_PrintFormatItem_ID
- columnfunction
- function
-
isFunctionColumn
public boolean isFunctionColumn(int AD_PrintFormatItem_ID) Column has a function- Parameters:
AD_PrintFormatItem_ID
- column- Returns:
- true if column has function
-
getFunctions
public char[] getFunctions(int groupId) Get calculated functions of column- Parameters:
groupId
- group column or TOTAL- Returns:
- array of functions
-
isFunctionColumn
public boolean isFunctionColumn(int AD_PrintFormatItem_ID, char function) Column has a function- Parameters:
AD_PrintFormatItem_ID
- columnfunction
- function- Returns:
- true if column has function
-
addValue
Add Value to groups- Parameters:
functionColumnId
- function columnfunctionValue
- value
-
getValue
Get Value- Parameters:
groupId
- group column (or TOTAL)functionColumnId
- function columnfunction
- function- Returns:
- value
-
reset
public void reset(int groupId, int functionColumnId) Reset Function values- Parameters:
groupId
- group column (or TOTAL)functionColumnId
- function column
-
toString
String Representation -
toString
String Representation- Parameters:
withData
- with data- Returns:
- info
-