RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemComboBoxCellEditor

java.lang.Object
  extended byorg.eclipse.jface.viewers.CellEditor
      extended byorg.eclipse.rse.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.


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
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 org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.