Package org.compiere.report.core
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 Summary
Constructors Constructor Description RColumn(String colHeader, String colSQL, Class<?> colClass)
Create Info Column (r/o and not color column)RColumn(Properties ctx, String columnName, int displayType)
Create Report ColumnRColumn(Properties ctx, String columnName, int displayType, int AD_Reference_Value_ID)
Create Report ColumnRColumn(Properties ctx, String columnName, int displayType, String sql)
Create Report ColumnRColumn(Properties ctx, String columnName, int displayType, String sql, int AD_Reference_Value_ID, String refColumnName)
Create Report Column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getColClass()
Column Display ClassString
getColHeader()
Column Headerint
getColSize()
Column Size in pxString
getColSQL()
Column SQLString
getColumnName()
String
getDisplaySQL()
Column Display SQLint
getDisplayType()
Get DisplayTypeboolean
isColorColumn()
boolean
isIDcol()
This column is an ID Column (i.e. two values - int and String are read)boolean
isReadOnly()
Column is Readonlyvoid
setColClass(Class<?> colClass)
void
setColHeader(String colHeader)
void
setColorColumn(boolean colorColumn)
This Color Determines the Color of the rowvoid
setColSize(int colSize)
Column Size in pxvoid
setColSQL(String colSQL)
void
setReadOnly(boolean readOnly)
String
toString()
String Representation
-
-
-
Constructor Detail
-
RColumn
public RColumn(Properties ctx, String columnName, int displayType)
Create Report Column- Parameters:
ctx
- contextcolumnName
- column namedisplayType
- display type
-
RColumn
public RColumn(Properties ctx, String columnName, int displayType, int AD_Reference_Value_ID)
Create Report Column- Parameters:
ctx
- contextcolumnName
- column namedisplayType
- display typeAD_Reference_Value_ID
- List/Table Reference
-
RColumn
public RColumn(Properties ctx, String columnName, int displayType, String sql)
Create Report Column- Parameters:
ctx
- contextcolumnName
- column namedisplayType
- display typesql
- 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
- contextcolumnName
- column namedisplayType
- display typesql
- sql (if null then columnName is used).AD_Reference_Value_ID
- List/Table ReferencerefColumnName
- UserReference column name Will be overwritten if TableDir or Search
-
-
Method Detail
-
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()
-
-