Package org.compiere.minigrid
Class ColumnInfo
- java.lang.Object
-
- org.compiere.minigrid.ColumnInfo
-
public class ColumnInfo extends Object
Info Column Details- Version:
- $Id: ColumnInfo.java,v 1.3 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke
-
-
Constructor Summary
Constructors Constructor Description ColumnInfo(String colHeader, String colSQL, Class<?> colClass)
Create Info Column (r/o and not color column)ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly)
Create Info Column (r/o and not color column)ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL)
Create Info ColumnColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, boolean colorColumn, String keyPairColSQL, String columnName)
Create Info ColumnColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly, String columnName)
Create Info ColumnColumnInfo(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL)
Create Info Column (r/o and not color column)ColumnInfo(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL, boolean readOnly)
Create Info Column (r/o and not color column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAD_Reference_ID()
Class<?>
getColClass()
Get Col ClassString
getColDescription()
String
getColHeader()
Get Col HeaderString
getColSQL()
Get Col SQLString
getColumnName()
Get Column NameGridField
getGridField()
String
getKeyPairColSQL()
Get Key Pair Col SQLboolean
isColorColumn()
ColorColumnboolean
isKeyPairCol()
Key Pair Colboolean
isReadOnly()
ReadOnlyvoid
setAD_Reference_ID(int AD_Reference_ID)
void
setColClass(Class<?> colClass)
Set ColClassvoid
setColDescription(String colDescription)
void
setColHeader(String colHeader)
Set Col Headervoid
setColorColumn(boolean colorColumn)
Set Color Columnvoid
setColSQL(String colSQL)
Set Col SQLvoid
setColumnName(String columnName)
Set Column Namevoid
setGridField(GridField gridField)
void
setKeyPairColSQL(String keyPairColSQL)
Add ID column SQL for the displayed column The Class for this should be KeyNamePairvoid
setReadOnly(boolean readOnly)
Set Read Only
-
-
-
Constructor Detail
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass)
Create Info Column (r/o and not color column)- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines display
-
ColumnInfo
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, boolean readOnly)
Create Info 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
public ColumnInfo(String colHeader, String colSQL, Class<?> colClass, String keyPairColSQL)
Create Info 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 Info 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, boolean readOnly, boolean colorColumn, String keyPairColSQL)
Create Info 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 Info 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, String columnName)
Create Info Column- Parameters:
colHeader
- Column HeadercolSQL
- SQL select code for columncolClass
- class of column - determines displayreadOnly
- column is read onlycolumnName
- Column Name
-
-
Method Detail
-
getColClass
public Class<?> getColClass()
Get Col Class- Returns:
- class
-
getColHeader
public String getColHeader()
Get Col Header- Returns:
- header
-
getColumnName
public String getColumnName()
Get Column Name- Returns:
- Column Name
-
getColSQL
public String getColSQL()
Get Col SQL- Returns:
- sql
-
isReadOnly
public boolean isReadOnly()
ReadOnly- Returns:
- r/o
-
setColClass
public void setColClass(Class<?> colClass)
Set ColClass- Parameters:
colClass
- class
-
setColHeader
public void setColHeader(String colHeader)
Set Col Header- Parameters:
colHeader
- header
-
setColumnName
public void setColumnName(String columnName)
Set Column Name- Parameters:
columnName
- Column Name
-
setColSQL
public void setColSQL(String colSQL)
Set Col 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()
ColorColumn- Returns:
- true if color column
-
setKeyPairColSQL
public void setKeyPairColSQL(String keyPairColSQL)
Add ID column SQL for the displayed column The Class for this should be KeyNamePair- Parameters:
keyPairColSQL
-
-
getKeyPairColSQL
public String getKeyPairColSQL()
Get Key Pair Col SQL- Returns:
- sql
-
isKeyPairCol
public boolean isKeyPairCol()
Key Pair Col- Returns:
- column
-
setGridField
public void setGridField(GridField gridField)
-
getGridField
public GridField getGridField()
-
getColDescription
public String getColDescription()
-
setColDescription
public void setColDescription(String colDescription)
-
getAD_Reference_ID
public int getAD_Reference_ID()
-
setAD_Reference_ID
public void setAD_Reference_ID(int AD_Reference_ID)
-
-