Package org.compiere.report.core
Class RColumn
java.lang.Object
org.compiere.report.core.RColumn
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 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<?>
Get Column Display ClassColumn Headerint
Get Column Size in pxGet Column SQLGet Column Display SQLint
Get Column DisplayTypeboolean
Is this column determines the color of the rowboolean
isIDcol()
Is column an ID Column (i.e. two values - int and String are read)boolean
Is Column Readonlyvoid
setColClass
(Class<?> colClass) Set Column Display Classvoid
setColHeader
(String colHeader) Set column headervoid
setColorColumn
(boolean colorColumn) Set is this column determines the color of the rowvoid
setColSize
(int colSize) Set Column Size in pxvoid
Set column SQLvoid
setReadOnly
(boolean readOnly) Set is column read onlytoString()
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
Set column header- Parameters:
colHeader
-
-
getColSQL
Get Column SQL- Returns:
- column SQL
-
setColSQL
Set column SQL- Parameters:
colSQL
-
-
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
Get Column Display Class- Returns:
- Column Display Class
-
setColClass
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
String Representation
-