Class ComboboxGUICellEditor
- java.lang.Object
-
- org.eclipse.jface.viewers.CellEditor
-
- org.eclipse.jface.viewers.ComboBoxCellEditor
-
- net.ssehub.easy.producer.ui.confModel.ComboboxGUICellEditor
-
- All Implemented Interfaces:
IRefreshableEditor,IUpdateProvider
class ComboboxGUICellEditor extends org.eclipse.jface.viewers.ComboBoxCellEditor implements IUpdateProvider
Implements an updatable combobox cell editor.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static intDROP_DOWN_ON_KEY_ACTIVATIONstatic intDROP_DOWN_ON_MOUSE_ACTIVATIONstatic intDROP_DOWN_ON_PROGRAMMATIC_ACTIVATIONstatic intDROP_DOWN_ON_TRAVERSE_ACTIVATIONprivate IUpdateListenerlistenerprivate ComboboxGUIVariablevariable
-
Constructor Summary
Constructors Constructor Description ComboboxGUICellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items, ComboboxGUIVariable variable)Creates the combobox editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent arg0)voiddispose()IDecisionVariablegetVariable()Returns the underlying decision variable.voidrefresh()Refreshes the contents of the editor.voidsetActivationStyle(int arg0)voidsetUpdateListener(IUpdateListener listener)Defines the update listener.-
Methods inherited from class org.eclipse.jface.viewers.ComboBoxCellEditor
createControl, doGetValue, doSetFocus, doSetValue, focusLost, getItems, getLayoutData, keyReleaseOccured, setItems
-
Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, getControl, getDoubleClickTimeout, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
-
-
-
-
Field Detail
-
variable
private ComboboxGUIVariable variable
-
listener
private IUpdateListener listener
-
DROP_DOWN_ON_MOUSE_ACTIVATION
public static final int DROP_DOWN_ON_MOUSE_ACTIVATION
- See Also:
- Constant Field Values
-
DROP_DOWN_ON_KEY_ACTIVATION
public static final int DROP_DOWN_ON_KEY_ACTIVATION
- See Also:
- Constant Field Values
-
DROP_DOWN_ON_PROGRAMMATIC_ACTIVATION
public static final int DROP_DOWN_ON_PROGRAMMATIC_ACTIVATION
- See Also:
- Constant Field Values
-
DROP_DOWN_ON_TRAVERSE_ACTIVATION
public static final int DROP_DOWN_ON_TRAVERSE_ACTIVATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ComboboxGUICellEditor
public ComboboxGUICellEditor(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items, ComboboxGUIVariable variable)Creates the combobox editor.- Parameters:
parent- the parent compositeitems- the combobox itemsvariable- the creating variable
-
-
Method Detail
-
setUpdateListener
public void setUpdateListener(IUpdateListener listener)
Description copied from interface:IUpdateProviderDefines the update listener. The update listener will be disposed automatically .- Specified by:
setUpdateListenerin interfaceIUpdateProvider- Parameters:
listener- the update listener
-
refresh
public void refresh()
Description copied from interface:IRefreshableEditorRefreshes the contents of the editor.- Specified by:
refreshin interfaceIRefreshableEditor- Specified by:
refreshin interfaceIUpdateProvider
-
dispose
public void dispose()
- Overrides:
disposein classorg.eclipse.jface.viewers.CellEditor
-
getVariable
public IDecisionVariable getVariable()
Description copied from interface:IUpdateProviderReturns the underlying decision variable.- Specified by:
getVariablein interfaceIUpdateProvider- Returns:
- the decision variable
-
activate
public void activate(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent arg0)
- Overrides:
activatein classorg.eclipse.jface.viewers.CellEditor
-
setActivationStyle
public void setActivationStyle(int arg0)
-
-