public class ColumnInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_TYPE_BUTTON |
static int |
COLUMN_TYPE_CCOMBO |
static int |
COLUMN_TYPE_FORMAT |
static int |
COLUMN_TYPE_ICON |
static int |
COLUMN_TYPE_NONE |
static int |
COLUMN_TYPE_TEXT |
Constructor and Description |
---|
ColumnInfo(String colname,
int coltype)
Creates a column info class for use with the TableView class.
|
ColumnInfo(String colname,
int coltype,
boolean numeric)
Creates a column info class for use with the TableView class.
|
ColumnInfo(String colname,
int coltype,
boolean num,
boolean ro)
Creates a column info class for use with the TableView class.
|
ColumnInfo(String colname,
int coltype,
int fieldTypeColumn)
Creates a column info class for use with the TableView class.
|
ColumnInfo(String colname,
int coltype,
String[] combo)
Creates a column info class for use with the TableView class.
|
ColumnInfo(String colname,
int coltype,
String[] combo,
boolean ro)
Creates a column info class for use with the TableView class.
|
public static final int COLUMN_TYPE_NONE
public static final int COLUMN_TYPE_TEXT
public static final int COLUMN_TYPE_CCOMBO
public static final int COLUMN_TYPE_BUTTON
public static final int COLUMN_TYPE_ICON
public static final int COLUMN_TYPE_FORMAT
public ColumnInfo(String colname, int coltype)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)public ColumnInfo(String colname, int coltype, String[] combo)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)combo
- The choices in the combo boxpublic ColumnInfo(String colname, int coltype, boolean numeric)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)numeric
- true if the column type is numeric. Use setValueType() to specify the type of numeric:
ValueMetaInterface.TYPE_INTEGER is the default.public ColumnInfo(String colname, int coltype, String[] combo, boolean ro)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)combo
- The choices in the combo boxro
- true if the column is read-only (you can't type in the combo box, you CAN make a choice)public ColumnInfo(String colname, int coltype, boolean num, boolean ro)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)num
- true if the column type is numeric. Use setValueType() to specify the type of numeric:
ValueMetaInterface.TYPE_INTEGER is the default.ro
- true if the column is read-only.public ColumnInfo(String colname, int coltype, int fieldTypeColumn)
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)fieldTypeColumn
- The column that contains the field type (for use when filtering the format combo dropdown)public void setToolTip(String tip)
public void setReadOnly(boolean ro)
public void setAllignement(int allign)
public void setComboValues(String[] cv)
public void setButtonText(String bt)
public String getName()
public int getType()
public String[] getComboValues()
public boolean isNumeric()
public void setNumeric(boolean numeric)
numeric
- the numeric to setpublic String getToolTip()
public int getAllignement()
public boolean isReadOnly()
public String getButtonText()
public void setSelectionAdapter(org.eclipse.swt.events.SelectionListener sb)
public org.eclipse.swt.events.SelectionListener getSelectionAdapter()
public void hideNegative()
public void showNegative()
public boolean isNegativeHidden()
public org.pentaho.di.core.row.ValueMetaInterface getValueMeta()
public void setValueMeta(org.pentaho.di.core.row.ValueMetaInterface valueMeta)
valueMeta
- the valueMeta to setpublic boolean isUsingVariables()
public void setUsingVariables(boolean usingVariables)
usingVariables
- the usingVariables to setpublic boolean isPasswordField()
public void setPasswordField(boolean password)
password
- the password to setpublic int getFieldTypeColumn()
public void setFieldTypeColumn(int fieldTypeColumn)
public ComboValuesSelectionListener getComboValuesSelectionListener()
public void setComboValuesSelectionListener(ComboValuesSelectionListener comboValuesSelectionListener)
comboValuesSelectionListener
- the comboValuesSelectionListener to setpublic FieldDisabledListener getDisabledListener()
public void setDisabledListener(FieldDisabledListener disabledListener)
disabledListener
- the disabledListener to set