Class DynamicAutoCompleteComboBoxEditingSupport<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.AutoCompleteComboBoxEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.DynamicAutoCompleteComboBoxEditingSupport<T,V>
- Type Parameters:
T- type of row valueV- type of column value (cell value)
- Direct Known Subclasses:
EMFDynamicAutoCompleteComboBoxEditingSupport
public class DynamicAutoCompleteComboBoxEditingSupport<T,V>
extends AutoCompleteComboBoxEditingSupport<T,V>
Class is used to enable editing a table cell via a combo box with a list of values and via a auto complete with a list of values.
After pressing CTRL-Space a combo box with a list of values appears.
If the value of maxComboBoxElementsCount exceeds the number of elements in the combo box, the cell is edited by auto complete and the combo box.
If the value of maxComboBoxElementsCount is less the number of elements in the combo box, the cell is edited only by auto complete.
- 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
ConstructorsConstructorDescriptionDynamicAutoCompleteComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jface.viewers.CellEditorgetCellEditorInternal(T element) protected org.eclipse.jface.fieldassist.IControlContentAdapterprotected ObjectgetValueInternal(T element) protected voidinitializeCellEditorValueInternal(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell, T element) protected voidsetValueInternal(T element, V value) Methods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.AutoCompleteComboBoxEditingSupport
createAutoCompleteFieldMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport
createComboBoxCellEditor, enableNullElement, setComparator, setElements, setElements, setFilter, setMaxComboBoxElementsCount, setNameExtractor, setSelectionListener, setValueExtractor, 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
-
DynamicAutoCompleteComboBoxEditingSupport
public DynamicAutoCompleteComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
setValueInternal
- Overrides:
setValueInternalin classComboBoxEditingSupport<T,V>
-
getValueInternal
- Overrides:
getValueInternalin classComboBoxEditingSupport<T,V>
-
getContentAdapter
protected org.eclipse.jface.fieldassist.IControlContentAdapter getContentAdapter()- Overrides:
getContentAdapterin classAutoCompleteComboBoxEditingSupport<T,V>
-
getCellEditorInternal
- Overrides:
getCellEditorInternalin classAutoCompleteComboBoxEditingSupport<T,V>
-
initializeCellEditorValueInternal
protected void initializeCellEditorValueInternal(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell, T element) - Overrides:
initializeCellEditorValueInternalin classComboBoxEditingSupport<T,V>
-