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 applicable functions of a group columnint
Get Group 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) Is function columnboolean
isFunctionColumn
(int AD_PrintFormatItem_ID, char function) Is Column has a functionboolean
isGroupColumn
(int AD_PrintFormatItem_ID) Is group columnvoid
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 Group Column Count. TOTAL is included as a column.- Returns:
- number of groups
-
isGroupColumn
public boolean isGroupColumn(int AD_PrintFormatItem_ID) Is group column- Parameters:
AD_PrintFormatItem_ID
- column or TOTAL- Returns:
- true if it is a group column
-
groupChange
Check for Group Change- Parameters:
AD_PrintFormatItem_ID
- group columnvalue
- column valueforce
-- 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) Is function column- Parameters:
AD_PrintFormatItem_ID
- column- Returns:
- true if it is a function column
-
getFunctions
public char[] getFunctions(int groupId) Get applicable functions of a group column- Parameters:
groupId
- group column or TOTAL- Returns:
- array of applicable functions
-
isFunctionColumn
public boolean isFunctionColumn(int AD_PrintFormatItem_ID, char function) Is Column has a function- Parameters:
AD_PrintFormatItem_ID
- columnfunction
- function constant (F_*)- Returns:
- true if column has a function
-
addValue
Add Value to groups- Parameters:
functionColumnId
- function columnfunctionValue
- value
-
getValue
Get Value- Parameters:
groupId
- group column (or TOTAL)functionColumnId
- function columnfunction
- function constant (F_*)- 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
-