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 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

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