Class RColumn

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

public class RColumn extends Object
Report Column
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)
      • getColSQL

        public String getColSQL()
        Column SQL
      • setColSQL

        public void setColSQL(String colSQL)
      • getDisplaySQL

        public String getDisplaySQL()
        Column Display SQL
      • isIDcol

        public boolean isIDcol()
        This column is an ID Column (i.e. two values - int and String are read)
      • getColClass

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

        public void setColClass(Class<?> colClass)
      • getColSize

        public int getColSize()
        Column Size in px
      • setColSize

        public void setColSize(int colSize)
        Column Size in px
      • getDisplayType

        public int getDisplayType()
        Get DisplayType
      • isReadOnly

        public boolean isReadOnly()
        Column is Readonly
      • setReadOnly

        public void setReadOnly(boolean readOnly)
      • setColorColumn

        public void setColorColumn(boolean colorColumn)
        This Color Determines the Color of the row
      • isColorColumn

        public boolean isColorColumn()
      • toString

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