Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.view
Class SystemComboBoxPropertyDescriptor

java.lang.Object
  extended byPropertyDescriptor
      extended bycom.ibm.etools.systems.core.ui.view.SystemComboBoxPropertyDescriptor

public class SystemComboBoxPropertyDescriptor
extends PropertyDescriptor

A variation of the Eclipse-supplied ComboBoxPropertyDescriptor for displaying properties are a list. This list will be different for each selected object, hence we need the ability to change that list as each object is selected.

See Also:
Serialized Form

Field Summary
static String copyright
           
protected  String[] values
          The list of possible values to display in the combo box
 
Constructor Summary
SystemComboBoxPropertyDescriptor(Object id, String displayName)
          Creates an property descriptor with the given id, display name, but no list.
SystemComboBoxPropertyDescriptor(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.
 
Method Summary
 CellEditor createPropertyEditor(Composite parent)
          The ComboBoxPropertyDescriptor implementation of this IPropertyDescriptor method creates and returns a new ComboBoxCellEditor.
 void setValues(String[] values)
          Set the values to display in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

values

protected String[] values
The list of possible values to display in the combo box

Constructor Detail

SystemComboBoxPropertyDescriptor

public SystemComboBoxPropertyDescriptor(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 property
displayName - the name to display for the property
valuesArray - the list of possible values to display in the combo box

SystemComboBoxPropertyDescriptor

public SystemComboBoxPropertyDescriptor(Object id,
                                        String displayName)
Creates an property descriptor with the given id, display name, but no list. You must call setValues.

Parameters:
id - the id of the property
displayName - the name to display for the property
Method Detail

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.


setValues

public void setValues(String[] values)
Set the values to display in the list.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.