Remote Systems
v6.4.1

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

java.lang.Object
  extended byCellEditor
      extended bycom.ibm.etools.systems.core.ui.view.SystemComboBoxCellEditor

public class SystemComboBoxCellEditor
extends CellEditor

A slight variation of the Eclipse-supplied ComboBoxCellEditor class, which allows the input array to be changed dynamically.

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.

See Also:
Serialized Form

Field Summary
static String copyright
           
 
Constructor Summary
SystemComboBoxCellEditor(Composite parent)
          Creates a new cell editor with a combo containing the given list of choices and parented under the given control.
SystemComboBoxCellEditor(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)
           
protected  Object doGetValue()
          The ComboBoxCellEditor implementation of this CellEditor framework method returns the zero-based index of the current selection.
protected  void doSetFocus()
           
protected  void doSetValue(Object value)
          The ComboBoxCellEditor implementation of this CellEditor framework method accepts a zero-based index of a selection.
 void setItems(String[] items)
          Change the input items
 
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
Constructor Detail

SystemComboBoxCellEditor

public SystemComboBoxCellEditor(Composite parent,
                                String[] items)
Creates a new cell editor with a combo containing the given list of choices and parented under the given control. The cell editor value is the zero-based index of the selected item. Initially, the cell editor has no cell validator and the first item in the list is selected.

Parameters:
parent - the parent control
items - the list of strings for the combo box

SystemComboBoxCellEditor

public SystemComboBoxCellEditor(Composite parent)
Creates a new cell editor with a combo containing the given list of choices and parented under the given control. The cell editor value is the zero-based index of the selected item. Initially, the cell editor has no cell validator and the first item in the list is selected.

Parameters:
parent - the parent control //@param whether or not this is readonly
Method Detail

setItems

public void setItems(String[] items)
Change the input items


createControl

protected Control createControl(Composite parent)

doGetValue

protected Object doGetValue()
The ComboBoxCellEditor implementation of this CellEditor framework method returns the zero-based index of the current selection.

Returns:
the zero-based index of the current selection wrapped as an Integer

doSetFocus

protected void doSetFocus()

doSetValue

protected void doSetValue(Object value)
The ComboBoxCellEditor implementation of this CellEditor framework method accepts a zero-based index of a selection.

Parameters:
value - the zero-based index of the selection wrapped as an Integer

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.