Class EnumComboBoxEditingSupport<T,V>
java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.EnumComboBoxEditingSupport<T,V>
- Type Parameters:
T- type of row valueV- type of column value (cell value)
- Direct Known Subclasses:
EMFEnumComboBoxEditingSupport
Class is used to select from a enum of values in a cell.
Creates a combo box in the cell where a new cell value can be selected
- Author:
- Ionov Ivan
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport
maxComboBoxElementsCount, nameExtractor, notSetLiteral, readOnlyComboBox, selectionListener, sortedElements, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEditCell, parent, viewer -
Constructor Summary
ConstructorsConstructorDescriptionEnumComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent) -
Method Summary
Methods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport
createComboBoxCellEditor, enableNullElement, getCellEditorInternal, getValueInternal, initializeCellEditorValueInternal, setComparator, setElements, setElements, setFilter, setMaxComboBoxElementsCount, setNameExtractor, setSelectionListener, setValueExtractor, setValueInternal, sortAndFilterElementsMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEdit, canEditInternal, getCellEditor, getValue, initializeCellEditorValue, setCanEditCell, setValueMethods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, saveCellEditorValue
-
Constructor Details
-
EnumComboBoxEditingSupport
public EnumComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
setElements
Set up the value elements- Parameters:
enums- Array of elements to be shown in the combo box- Returns:
- this object
-