public class ComboBoxCellEditor
extends org.eclipse.jface.viewers.CellEditor
Do not instantiate or extend this class. Use CellEditorFactory to instantiate this class.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
ComboBoxCellEditor()
Deprecated.
This constructor is for internal use only. Use CellEditorFactory to instantiate this class.
|
ComboBoxCellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items)
Deprecated.
This constructor is for internal use only. Use CellEditorFactory to instantiate this class.
|
ComboBoxCellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items, int style)
Deprecated.
This constructor is for internal use only. Use CellEditorFactory to instantiate this class.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Control | createControl(org.eclipse.swt.widgets.Composite parent)
This method creates the Combo for this combo cell editor under the given parent control.
|
protected java.lang.Object | doGetValue()
The ComboBoxCellEditor implementation of this CellEditor framework method returns the zero-based index of the current selection.
|
protected void | doSetFocus()
This method sets the focus to the cell editor's control.
|
protected void | doSetValue(java.lang.Object value)
The ComboBoxCellEditor implementation of this CellEditor framework method accepts a zero-based index of a selection.
|
protected void | focusLost()
This method processes a focus lost event that occurred in this cell editor.
|
java.lang.String[] | getItems()
This method returns the list of choices for the combo box
|
org.eclipse.jface.viewers.CellEditor.LayoutData | getLayoutData()
The ComboBoxCellEditor implementation of this CellEditor framework method sets the minimum width of the cell to display the text and the arrow.
|
java.lang.String[] | getValues()
This method returns the list of values for the combo box
|
protected void | keyReleaseOccured(org.eclipse.swt.events.KeyEvent keyEvent)
This method processes a key release event that occurred in this cell editor.
|
void | setItems(java.lang.String[] items)
This method sets the list of choices for the combo box
|
void | setValues(java.lang.String[] keyValues)
This method sets the list of values for the combo box
|
public static final java.lang.String COPYRIGHT
public ComboBoxCellEditor()
public ComboBoxCellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items)
public ComboBoxCellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items, int style)
public java.lang.String[] getItems()
public void setItems(java.lang.String[] items)
public java.lang.String[] getValues()
public void setValues(java.lang.String[] keyValues)
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
protected java.lang.Object doGetValue()
protected void doSetFocus()
public org.eclipse.jface.viewers.CellEditor.LayoutData getLayoutData()
protected void doSetValue(java.lang.Object value)
protected void focusLost()
This implementation applies the current value and deactivates the cell editor.
protected void keyReleaseOccured(org.eclipse.swt.events.KeyEvent keyEvent)
This implementation cancels editing when the ESC key is pressed.