Class RColumn

java.lang.Object
org.compiere.report.core.RColumn

public class RColumn extends Object
Report column model
Version:
$Id: RColumn.java,v 1.3 2006/08/10 01:00:13 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1778373 ] AcctViewer: data is not sorted proper
    • Constructor Details

      • RColumn

        public RColumn(Properties ctx, String columnName, int displayType)
        Create Report Column
        Parameters:
        ctx - context
        columnName - column name
        displayType - display type
      • RColumn

        public RColumn(Properties ctx, String columnName, int displayType, int AD_Reference_Value_ID)
        Create Report Column
        Parameters:
        ctx - context
        columnName - column name
        displayType - display type
        AD_Reference_Value_ID - List/Table Reference
      • RColumn

        public RColumn(Properties ctx, String columnName, int displayType, String sql)
        Create Report Column
        Parameters:
        ctx - context
        columnName - column name
        displayType - display type
        sql - sql (if null then columnName is used). Will be overwritten if TableDir or Search
      • RColumn

        public RColumn(Properties ctx, String columnName, int displayType, String sql, int AD_Reference_Value_ID, String refColumnName)
        Create Report Column
        Parameters:
        ctx - context
        columnName - column name
        displayType - display type
        sql - sql (if null then columnName is used).
        AD_Reference_Value_ID - List/Table Reference
        refColumnName - UserReference column name Will be overwritten if TableDir or Search
      • RColumn

        public RColumn(String colHeader, String colSQL, Class<?> colClass)
        Create Info Column (r/o and not color column)
        Parameters:
        colHeader - Column Header
        colSQL - SQL select code for column
        colClass - class of column - determines display
    • Method Details

      • getColumnName

        public String getColumnName()
        Returns:
        Column Name
      • getColHeader

        public String getColHeader()
        Column Header
      • setColHeader

        public void setColHeader(String colHeader)
        Set column header
        Parameters:
        colHeader -
      • getColSQL

        public String getColSQL()
        Get Column SQL
        Returns:
        column SQL
      • setColSQL

        public void setColSQL(String colSQL)
        Set column SQL
        Parameters:
        colSQL -
      • getDisplaySQL

        public String getDisplaySQL()
        Get Column Display SQL
        Returns:
        Column Display SQL
      • isIDcol

        public boolean isIDcol()
        Is column an ID Column (i.e. two values - int and String are read)
        Returns:
        true if column is an ID column
      • getColClass

        public Class<?> getColClass()
        Get Column Display Class
        Returns:
        Column Display Class
      • setColClass

        public void setColClass(Class<?> colClass)
        Set Column Display Class
        Parameters:
        colClass -
      • getColSize

        public int getColSize()
        Get Column Size in px
        Returns:
        Column Size in px
      • setColSize

        public void setColSize(int colSize)
        Set Column Size in px
        Parameters:
        colSize -
      • getDisplayType

        public int getDisplayType()
        Get Column DisplayType
        Returns:
        Column DisplayType
      • isReadOnly

        public boolean isReadOnly()
        Is Column Readonly
        Returns:
        true if column is read only
      • setReadOnly

        public void setReadOnly(boolean readOnly)
        Set is column read only
        Parameters:
        readOnly -
      • setColorColumn

        public void setColorColumn(boolean colorColumn)
        Set is this column determines the color of the row
        Parameters:
        colorColumn -
      • isColorColumn

        public boolean isColorColumn()
        Is this column determines the color of the row
        Returns:
        true if this column determines the color of the row
      • toString

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