|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.CellEditor
org.eclipse.gmf.runtime.common.ui.services.properties.extended.ExtendedComboBoxCellEditor
public class ExtendedComboBoxCellEditor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
CellEditor.LayoutData |
| Field Summary | |
|---|---|
protected java.util.List |
list
This keeps track of the list of model objects. |
| Fields inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
| Constructor Summary | |
|---|---|
ExtendedComboBoxCellEditor(Composite parent,
java.util.List list,
ILabelProvider labelProvider,
int style)
Convenience constructor for ExtendedComboBoxCellEditor |
|
ExtendedComboBoxCellEditor(Composite parent,
java.lang.String[] items,
int style)
Creates a new cell editor with a combo containing the given list of choices and parented under the given control. |
|
ExtendedComboBoxCellEditor(Composite parent,
java.lang.String[] items,
java.lang.String emptyItem,
int style)
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)
|
static java.lang.String[] |
createItems(java.util.List list,
ILabelProvider labelProvider)
Create a list of String items. |
java.lang.Object |
doGetValue()
|
protected void |
doSetFocus()
|
void |
doSetValue(java.lang.Object value)
|
CellEditor.LayoutData |
getLayoutData()
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 |
| Field Detail |
|---|
protected java.util.List list
| Constructor Detail |
|---|
public ExtendedComboBoxCellEditor(Composite parent,
java.util.List list,
ILabelProvider labelProvider,
int style)
parent - the parent controllist - the list of strings for the combo boxlabelProvider - -
label rpovider to create an array of strings from the liststyle - the style
public ExtendedComboBoxCellEditor(Composite parent,
java.lang.String[] items,
int style)
parent - the parent controlitems - the list of strings for the combo boxstyle - the style
public ExtendedComboBoxCellEditor(Composite parent,
java.lang.String[] items,
java.lang.String emptyItem,
int style)
parent - the parent controlitems - the list of strings for the combo boxemptyItem - the combo box item which maps to an empty string in the text
boxstyle - the style| Method Detail |
|---|
public static java.lang.String[] createItems(java.util.List list,
ILabelProvider labelProvider)
String items.
list - labelProvider -
String itemsprotected Control createControl(Composite parent)
createControl in class CellEditorCellEditor.createControl(org.eclipse.swt.widgets.Composite)protected void doSetFocus()
doSetFocus in class CellEditorCellEditor.doSetFocus()public CellEditor.LayoutData getLayoutData()
getLayoutData in class CellEditorpublic java.lang.Object doGetValue()
doGetValue in class CellEditorpublic void doSetValue(java.lang.Object value)
doSetValue in class CellEditor
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.