Package org.compiere.minigrid
Class ColumnInfo
java.lang.Object
org.compiere.minigrid.ColumnInfo
Column details for list view of data
- Version:
- $Id: ColumnInfo.java,v 1.3 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
ConstructorDescriptionColumnInfo
(String colHeader, String colSQL, Class<?> colClass) Create Column (r/o and not color column)ColumnInfo
(String colHeader, String colSQL, Class<?> colClass, boolean readOnly) Create Column (r/o and not color column)ColumnInfo
(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL) Create ColumnColumnInfo
(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL, String columnName) Create ColumnColumnInfo
(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL, String columnName, String displayColumn, String selectClause) Create ColumnColumnInfo
(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, String columnName) Create ColumnColumnInfo
(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL) Create Column (r/o and not color column)ColumnInfo
(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL, boolean readOnly) Create Column (r/o and not color column)ColumnInfo
(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL, boolean readOnly, String displayColumn, String selectClause) Create Column (r/o and not color column) -
Method Summary
Modifier and TypeMethodDescriptionint
int
Get Reference ValueClass<?>
Get Column ClassGet Column descriptionGet Column HeaderGet Column SQLGet Column NameGet Display ColumnGet Key Pair Column SQLGet Sql SELECTboolean
Is Column a ColorColumnboolean
Is Column a Key Pair Columnboolean
Is Column ReadOnlyvoid
setAD_Reference_ID
(int AD_Reference_ID) void
setAD_Reference_Value_ID
(int AD_Reference_Value_ID) Set Reference Valuevoid
setColClass
(Class<?> colClass) Set Column classvoid
setColDescription
(String colDescription) Set Column descriptionvoid
setColHeader
(String colHeader) Set Column Headervoid
setColorColumn
(boolean colorColumn) Set Color Columnvoid
Set Column SQLvoid
setColumnName
(String columnName) Set Column Namevoid
setDisplayColumn
(String displayColumn) Set Display Columnvoid
setGridField
(GridField gridField) void
setKeyPairColSQL
(String keyPairColSQL) Add ID column SQL for the displayed column.
The Class for this should be KeyNamePair.void
setReadOnly
(boolean readOnly) Set Read Onlyvoid
setSelectClause
(String selectClause) Set Sql SELECT
-
Constructor Details
-
ColumnInfo
Create Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines display
-
ColumnInfo
Create Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read only
-
ColumnInfo
Create Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displaykeyPairColSQL
- SQL select for the ID of the for the displayed column
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL, boolean readOnly) Create Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displaykeyPairColSQL
- SQL select for the ID of the for the displayed columnreadOnly
- column is read only
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL, boolean readOnly, String displayColumn, String selectClause) Create Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displaykeyPairColSQL
- SQL select for the ID of the for the displayed columnreadOnly
- column is read onlydisplayColumn
- SQL select code for display columnselectClause
- AD_InfoColumn.SelectClause
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL) Create Column- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read onlycolorColumn
- if true, value of column determines foreground colorkeyPairColSQL
- SQL select for the ID of the for the displayed column
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL, String columnName) Create Column- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read onlycolorColumn
- if true, value of column determines foreground colorkeyPairColSQL
- SQL select for the ID of the for the displayed columncolumnName
- Column Name
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL, String columnName, String displayColumn, String selectClause) Create Column- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read onlycolorColumn
- if true, value of column determines foreground colorkeyPairColSQL
- SQL select for the ID of the for the displayed columncolumnName
- Column NamedisplayColumn
- SQL select code for display columnselectClause
- AD_InfoColumn.SelectClause
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, String columnName) Create Column- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read onlycolumnName
- Column Name
-
-
Method Details
-
getColClass
Get Column Class- Returns:
- class
-
getColHeader
Get Column Header- Returns:
- header
-
getColumnName
Get Column Name- Returns:
- Column Name
-
getColSQL
Get Column SQL- Returns:
- sql
-
isReadOnly
public boolean isReadOnly()Is Column ReadOnly- Returns:
- r/o
-
setColClass
Set Column class- Parameters:
colClass
- class
-
setColHeader
Set Column Header- Parameters:
colHeader
- header
-
setColumnName
Set Column Name- Parameters:
columnName
- Column Name
-
setColSQL
Set Column SQL- Parameters:
colSQL
- sql
-
setReadOnly
public void setReadOnly(boolean readOnly) Set Read Only- Parameters:
readOnly
- r/o
-
setColorColumn
public void setColorColumn(boolean colorColumn) Set Color Column- Parameters:
colorColumn
- color
-
isColorColumn
public boolean isColorColumn()Is Column a ColorColumn- Returns:
- true if color column
-
setKeyPairColSQL
Add ID column SQL for the displayed column.
The Class for this should be KeyNamePair.- Parameters:
keyPairColSQL
-
-
getKeyPairColSQL
Get Key Pair Column SQL- Returns:
- sql
-
isKeyPairCol
public boolean isKeyPairCol()Is Column a Key Pair Column- Returns:
- column
-
setGridField
-
getGridField
-
getColDescription
Get Column description- Returns:
- Column description
-
setColDescription
Set Column description- Parameters:
colDescription
-
-
getAD_Reference_ID
public int getAD_Reference_ID() -
setAD_Reference_ID
public void setAD_Reference_ID(int AD_Reference_ID) -
getDisplayColumn
Get Display Column- Returns:
- DisplayColumn
-
setDisplayColumn
Set Display Column- Parameters:
displayColumn
-
-
getAD_Reference_Value_ID
public int getAD_Reference_Value_ID()Get Reference Value- Returns:
- the aD_Reference_Value_ID
-
setAD_Reference_Value_ID
public void setAD_Reference_Value_ID(int AD_Reference_Value_ID) Set Reference Value- Parameters:
AD_Reference_Value_ID
- the AD_Reference_Value_ID to set
-
getSelectClause
Get Sql SELECT- Returns:
- the selectClause
-
setSelectClause
Set Sql SELECT- Parameters:
selectClause
- the selectClause to set
-