Class PrintDataFunction

java.lang.Object
org.compiere.print.PrintDataFunction

public class PrintDataFunction extends Object
Print Data Function (Sum, Count, Average, etc) Node
Version:
$Id: PrintDataFunction.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1789279 ] DisplayType for group columns are incorect
    • Field Details

    • Constructor Details

      • PrintDataFunction

        public PrintDataFunction()
        Constructor
    • Method Details

      • addValue

        public void addValue(Serializable s)
        Add Value to Counter
        Parameters:
        s - data
      • getValue

        public Serializable getValue(char function)
        Get Function Value
        Parameters:
        function - function constant (F_*)
        Returns:
        function value
      • reset

        public void reset()
        Reset Value
      • toString

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

        public static String getFunctionSymbol(char function)
        Get Symbol of function
        Parameters:
        function - function constant (F_*)
        Returns:
        function symbol
      • getFunctionName

        public static String getFunctionName(char function)
        Get Name of function
        Parameters:
        function - function constant (F_*)
        Returns:
        function name
      • getFunctionDisplayType

        public static int getFunctionDisplayType(char function, int displayType)
        Get DisplayType of function
        Parameters:
        function - function constant (F_*)
        displayType - columns display type
        Returns:
        display type for function