| |
|
| org.pentaho.designstudio.controls.CustomComboBoxCellEditor
CustomComboBoxCellEditor | public class CustomComboBoxCellEditor extends CellEditor (Code) | | |
Field Summary | |
protected CCombo | comboBox The custom combo box control. | int | selection The zero-based index of the selected item. |
Constructor Summary | |
public | CustomComboBoxCellEditor() Creates a new cell editor with no control and no st of choices. | public | CustomComboBoxCellEditor(Composite parent, String[] items) Creates a new cell editor with a combo containing the given
list of choices and parented under the given control. | public | CustomComboBoxCellEditor(Composite parent, String[] items, int style) Creates a new cell editor with a combo containing the given
list of choices and parented under the given control. |
comboBox | protected CCombo comboBox(Code) | | The custom combo box control.
|
selection | int selection(Code) | | The zero-based index of the selected item.
|
CustomComboBoxCellEditor | public CustomComboBoxCellEditor(Composite parent, String[] items)(Code) | | Creates a new cell editor with a combo containing the given
list of choices and parented under the given control. The cell
editor value is the zero-based index of the selected item.
Initially, the cell editor has no cell validator and
the first item in the list is selected.
Parameters: parent - the parent control Parameters: items - the list of strings for the combo box |
CustomComboBoxCellEditor | public CustomComboBoxCellEditor(Composite parent, String[] items, int style)(Code) | | Creates a new cell editor with a combo containing the given
list of choices and parented under the given control. The cell
editor value is the zero-based index of the selected item.
Initially, the cell editor has no cell validator and
the first item in the list is selected.
Parameters: parent - the parent control Parameters: items - the list of strings for the combo box Parameters: style - the style bits since: 2.1 |
applyEditorValueAndDeactivate | void applyEditorValueAndDeactivate()(Code) | | Applies the currently selected value and deactiavates the cell editor
|
createControl | protected Control createControl(Composite parent)(Code) | | |
doGetValue | protected Object doGetValue()(Code) | | The ComboBoxCellEditor implementation of
this CellEditor framework method returns
the zero-based index of the current selection.
the zero-based index of the current selection wrappedas an Integer |
doSetFocus | protected void doSetFocus()(Code) | | |
doSetValue | protected void doSetValue(Object value)(Code) | | The ComboBoxCellEditor implementation of
this CellEditor framework method
accepts a zero-based index of a selection.
Parameters: value - the zero-based index of the selection wrappedas an Integer |
focusLost | protected void focusLost()(Code) | | |
getItems | public String[] getItems()(Code) | | Returns the list of choices for the combo box
the list of choices for the combo box |
getLayoutData | public LayoutData getLayoutData()(Code) | | The ComboBoxCellEditor implementation of
this CellEditor framework method sets the
minimum width of the cell. The minimum width is 10 characters
if comboBox is not null or disposed
eles it is 60 pixels to make sure the arrow button and some text is visible.
The list of CCombo will be wide enough to show its longest item.
|
keyReleaseOccured | protected void keyReleaseOccured(KeyEvent keyEvent)(Code) | | |
setItems | public void setItems(String[] items)(Code) | | Sets the list of choices for the combo box
Parameters: items - the list of choices for the combo box |
|
|
|