|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.ui.core.widget.ColumnInfo
public class ColumnInfo
Used to define the behaviour and the content of a Table column in a TableView object.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)Method Detail |
---|
public String toString()
toString
in class Object
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(SelectionListener sb)
public SelectionListener getSelectionAdapter()
public void hideNegative()
public void showNegative()
public boolean isNegativeHidden()
public ValueMetaInterface getValueMeta()
public void setValueMeta(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |