|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.jface.viewers.CellEditor
|
+--org.eclipse.jface.viewers.ComboBoxCellEditor
A cell editor that presents a list of items in a combo box. The cell editor's value is the zero-based index of the selected item.
This class may be instantiated; it is not intended to be subclassed.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.jface.viewers.CellEditor |
CellEditor.LayoutData |
| Field Summary |
| Fields inherited from class org.eclipse.jface.viewers.CellEditor |
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
| Constructor Summary | |
ComboBoxCellEditor(Composite parent,
String[] items)
Creates a new cell editor with a combo containing the given list of choices and parented under the given control. |
|
| Method Summary | |
protected Control |
createControl(Composite parent)
Creates the control for this cell editor under the given parent control. |
protected Object |
doGetValue()
The ComboBoxCellEditor implementation of
this CellEditor framework method returns
the zero-based index of the current selection. |
protected void |
doSetFocus()
Sets the focus to the cell editor's control. |
protected void |
doSetValue(Object value)
The ComboBoxCellEditor implementation of
this CellEditor framework method
accepts a zero-based index of a selection. |
CellEditor.LayoutData |
getLayoutData()
The ComboBoxCellEditor implementation of
this CellEditor framework method sets the
minimum width of the cell to 30 pixels to make sure the
arrow button is visible even when the list contains long
strings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComboBoxCellEditor(Composite parent,
String[] items)
parent - the parent controlitems - the list of strings for the combo box| Method Detail |
protected Control createControl(Composite parent)
CellEditorThis framework method must be implemented by concrete subclasses.
createControl in class CellEditorparent - the parent control
null if this cell editor has no controlprotected Object doGetValue()
ComboBoxCellEditor implementation of
this CellEditor framework method returns
the zero-based index of the current selection.
doGetValue in class CellEditorIntegerCellEditor.getValue()protected void doSetFocus()
CellEditorThis framework method must be implemented by concrete subclasses.
doSetFocus in class CellEditorCellEditor.setFocus()public CellEditor.LayoutData getLayoutData()
ComboBoxCellEditor implementation of
this CellEditor framework method sets the
minimum width of the cell to 30 pixels to make sure the
arrow button is visible even when the list contains long
strings.
getLayoutData in class CellEditorprotected void doSetValue(Object value)
ComboBoxCellEditor implementation of
this CellEditor framework method
accepts a zero-based index of a selection.
doSetValue in class CellEditorvalue - the zero-based index of the selection wrapped
as an IntegerCellEditor.setValue(java.lang.Object)
|
Eclipse Platform 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||