Class PrintDataGroup

java.lang.Object
org.compiere.print.PrintDataGroup

public class PrintDataGroup extends Object
Group By Management
Version:
$Id: PrintDataGroup.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
  • Field Details

  • 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

      public Object groupChange(int AD_PrintFormatItem_ID, Object value, boolean force)
      Check for Group Change
      Parameters:
      AD_PrintFormatItem_ID - group column
      value - column value
      force -
      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 - column
      function - 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 - column
      function - function constant (F_*)
      Returns:
      true if column has a function
    • addValue

      public void addValue(int functionColumnId, Serializable functionValue)
      Add Value to groups
      Parameters:
      functionColumnId - function column
      functionValue - value
    • getValue

      public Serializable getValue(int groupId, int functionColumnId, char function)
      Get Value
      Parameters:
      groupId - group column (or TOTAL)
      functionColumnId - function column
      function - 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

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

      public String toString(boolean withData)
      String Representation
      Parameters:
      withData - with data
      Returns:
      info