Package org.compiere.report.core
Class RColumn
java.lang.Object
org.compiere.report.core.RColumn
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
ConstructorDescriptionCreate 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
Modifier and TypeMethodDescriptionClass<?>
Column Display ClassColumn Headerint
Column Size in pxColumn SQLColumn Display SQLint
Get DisplayTypeboolean
boolean
isIDcol()
This column is an ID Column (i.e. two values - int and String are read)boolean
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
void
setReadOnly
(boolean readOnly) toString()
String Representation
-
Constructor Details
-
RColumn
Create Report Column- Parameters:
ctx
- contextcolumnName
- column namedisplayType
- display type
-
RColumn
Create Report Column- Parameters:
ctx
- contextcolumnName
- column namedisplayType
- display typeAD_Reference_Value_ID
- List/Table Reference
-
RColumn
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
-
RColumn
Create Info Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines display
-
-
Method Details
-
getColumnName
- Returns:
- Column Name
-
getColHeader
Column Header -
setColHeader
-
getColSQL
Column SQL -
setColSQL
-
getDisplaySQL
Column Display SQL -
isIDcol
public boolean isIDcol()This column is an ID Column (i.e. two values - int and String are read) -
getColClass
Column Display Class -
setColClass
-
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
String Representation
-