Package org.pentaho.di.ui.core.widget
Class ColumnInfo
java.lang.Object
org.pentaho.di.ui.core.widget.ColumnInfo
Used to define the behaviour and the content of a Table column in a TableView object.
- Since:
- 27-05-2003
- Author:
- Matt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionColumnInfo
(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, boolean num, boolean ro, int width) 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. -
Method Summary
Modifier and TypeMethodDescriptionint
String[]
int
getName()
org.eclipse.swt.events.SelectionListener
org.eclipse.swt.events.SelectionListener
int
getType()
org.pentaho.di.core.row.ValueMetaInterface
int
getWidth()
void
boolean
boolean
boolean
boolean
boolean
boolean
void
setAllignement
(int allign) void
setAutoResize
(boolean resize) If should be resized to accommodate contents.void
setButtonText
(String bt) void
setCombovalsSupplier
(Supplier<String[]> combovalsSupplier) void
setComboValues
(String[] cv) void
setComboValuesSelectionListener
(ComboValuesSelectionListener comboValuesSelectionListener) void
setDisabledListener
(FieldDisabledListener disabledListener) void
setFieldTypeColumn
(int fieldTypeColumn) void
setNumeric
(boolean numeric) void
setPasswordField
(boolean password) void
setReadOnly
(boolean ro) void
void
setSelectionAdapter
(org.eclipse.swt.events.SelectionListener sb) void
setTextVarButtonSelectionListener
(org.eclipse.swt.events.SelectionListener textVarButtonSelectionListener) void
setToolTip
(String tip) void
setUsingVariables
(boolean usingVariables) void
setValueMeta
(org.pentaho.di.core.row.ValueMetaInterface valueMeta) boolean
void
toString()
-
Field Details
-
COLUMN_TYPE_NONE
public static final int COLUMN_TYPE_NONE- See Also:
-
COLUMN_TYPE_TEXT
public static final int COLUMN_TYPE_TEXT- See Also:
-
COLUMN_TYPE_CCOMBO
public static final int COLUMN_TYPE_CCOMBO- See Also:
-
COLUMN_TYPE_BUTTON
public static final int COLUMN_TYPE_BUTTON- See Also:
-
COLUMN_TYPE_ICON
public static final int COLUMN_TYPE_ICON- See Also:
-
COLUMN_TYPE_FORMAT
public static final int COLUMN_TYPE_FORMAT- See Also:
-
COLUMN_TYPE_TEXT_BUTTON
public static final int COLUMN_TYPE_TEXT_BUTTON- See Also:
-
-
Constructor Details
-
ColumnInfo
Creates a column info class for use with the TableView class.- Parameters:
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)
-
ColumnInfo
Creates a column info class for use with the TableView class. The type of column info to be created is : COLUMN_TYPE_CCOMBO- Parameters:
colname
- The column namecoltype
- The column type (see: COLUMN_TYPE_...)combo
- The choices in the combo box
-
ColumnInfo
Creates a column info class for use with the TableView class.- Parameters:
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.
-
ColumnInfo
Creates a column info class for use with the TableView class. The type of column info to be created is : COLUMN_TYPE_CCOMBO- Parameters:
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)
-
ColumnInfo
Creates a column info class for use with the TableView class.- Parameters:
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.
-
ColumnInfo
Creates a column info class for use with the TableView class.- Parameters:
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.width
- The column width
-
ColumnInfo
Creates a column info class for use with the TableView class. The type of column info to be created is : COLUMN_TYPE_FORMAT- Parameters:
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)
-
-
Method Details
-
toString
-
setToolTip
-
setReadOnly
public void setReadOnly(boolean ro) -
setAllignement
public void setAllignement(int allign) -
setComboValues
-
setCombovalsSupplier
-
setButtonText
-
getName
-
getType
public int getType() -
getComboValues
-
isNumeric
public boolean isNumeric()- Returns:
- the numeric
-
setNumeric
public void setNumeric(boolean numeric) - Parameters:
numeric
- the numeric to set
-
getToolTip
-
getAllignement
public int getAllignement() -
isReadOnly
public boolean isReadOnly() -
getButtonText
-
setSelectionAdapter
public void setSelectionAdapter(org.eclipse.swt.events.SelectionListener sb) -
getSelectionAdapter
public org.eclipse.swt.events.SelectionListener getSelectionAdapter() -
hideNegative
public void hideNegative() -
showNegative
public void showNegative() -
isNegativeHidden
public boolean isNegativeHidden() -
getValueMeta
public org.pentaho.di.core.row.ValueMetaInterface getValueMeta()- Returns:
- the valueMeta
-
setValueMeta
public void setValueMeta(org.pentaho.di.core.row.ValueMetaInterface valueMeta) - Parameters:
valueMeta
- the valueMeta to set
-
isUsingVariables
public boolean isUsingVariables()- Returns:
- the usingVariables
-
setUsingVariables
public void setUsingVariables(boolean usingVariables) - Parameters:
usingVariables
- the usingVariables to set
-
isPasswordField
public boolean isPasswordField()- Returns:
- the password
-
setPasswordField
public void setPasswordField(boolean password) - Parameters:
password
- the password to set
-
getFieldTypeColumn
public int getFieldTypeColumn() -
setFieldTypeColumn
public void setFieldTypeColumn(int fieldTypeColumn) -
getComboValuesSelectionListener
- Returns:
- the comboValuesSelectionListener
-
setComboValuesSelectionListener
public void setComboValuesSelectionListener(ComboValuesSelectionListener comboValuesSelectionListener) - Parameters:
comboValuesSelectionListener
- the comboValuesSelectionListener to set
-
getDisabledListener
- Returns:
- the disabledListener
-
setDisabledListener
- Parameters:
disabledListener
- the disabledListener to set
-
getTextVarButtonSelectionListener
public org.eclipse.swt.events.SelectionListener getTextVarButtonSelectionListener() -
setTextVarButtonSelectionListener
public void setTextVarButtonSelectionListener(org.eclipse.swt.events.SelectionListener textVarButtonSelectionListener) -
setRenderTextVarButtonCallback
-
shouldRenderTextVarButton
public boolean shouldRenderTextVarButton() -
getWidth
public int getWidth() -
isAutoResize
public boolean isAutoResize()- Returns:
- if should be resized to accommodate contents
-
setAutoResize
public void setAutoResize(boolean resize) If should be resized to accommodate contents. Default istrue
.
-