org.eclipse.ui.views.properties
Class ComboBoxPropertyDescriptor
java.lang.Object
|
+--org.eclipse.ui.views.properties.PropertyDescriptor
|
+--org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
- All Implemented Interfaces:
- IPropertyDescriptor
- public class ComboBoxPropertyDescriptor
- extends PropertyDescriptor
Descriptor for a property that has a value which should be edited
with a combo box cell editor.
This class may be instantiated; it is not intended to be subclassed.
Example:
String[] values = {"Top left", "Top right", "Bottom left", "Bottom right"};
IPropertyDescriptor pd = new ComboBoxPropertyDescriptor("origin", "Origin", values);
Constructor Summary |
ComboBoxPropertyDescriptor(Object id,
String displayName,
String[] valuesArray)
Creates an property descriptor with the given id, display name, and list
of value labels to display in the combo box cell editor. |
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor |
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isCompatibleWith, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxPropertyDescriptor
public ComboBoxPropertyDescriptor(Object id,
String displayName,
String[] valuesArray)
- Creates an property descriptor with the given id, display name, and list
of value labels to display in the combo box cell editor.
- Parameters:
id
- the id of the propertydisplayName
- the name to display for the propertyvaluesArray
- the list of possible values to display in the combo box
createPropertyEditor
public CellEditor createPropertyEditor(Composite parent)
- The
ComboBoxPropertyDescriptor
implementation of this
IPropertyDescriptor
method creates and returns a new
ComboBoxCellEditor
.
The editor is configured with the current validator if there is one.
- Overrides:
createPropertyEditor
in class PropertyDescriptor
- Following copied from interface:
org.eclipse.ui.views.properties.IPropertyDescriptor
- Parameters:
parent
- the parent widget for the cell editor- Returns:
- the cell editor for this property, or
null
if this
property cannot be edited
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.