Class BooleanCellEditor

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor

        org.eclipse.jface.viewers.CellEditor.LayoutData
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanCellEditor​(org.eclipse.swt.widgets.Composite parent)
      A constructor which takes only a parent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()
      void activate​(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent activationEvent)  
      protected org.eclipse.swt.widgets.Control createControl​(org.eclipse.swt.widgets.Composite parent)
      protected java.lang.Object doGetValue()
      protected void doSetFocus()
      protected void doSetValue​(java.lang.Object value)
      int getColumnWidthWeight()
      The returned value is used for layouting the table columns.
      protected java.util.Map<java.lang.Integer,​java.lang.String> getCopyMap​(org.eclipse.swt.widgets.Widget widget)
      Get the copy map of the given widget.
      java.lang.String getFormatedString​(java.lang.Object value)
      This returns the String which will be shown in the table when no cell editor is open.
      org.eclipse.swt.graphics.Image getImage​(java.lang.Object value)
      This returns the Image which will be shown in the table when no cell editor is open.
      int getMinWidth()
      Returns the minimum width of the cell editor.
      org.eclipse.core.databinding.UpdateValueStrategy getModelToTargetStrategy​(org.eclipse.core.databinding.DataBindingContext databindingContext)
      This UpdateValueStrategy will be used as the model to target strategy during data binding.
      org.eclipse.core.databinding.UpdateValueStrategy getTargetToModelStrategy​(org.eclipse.core.databinding.DataBindingContext databindingContext)
      This UpdateValueStrategy will be used as the target to model strategy during data binding.
      org.eclipse.core.databinding.property.value.IValueProperty getValueProperty()
      Returns the IValueProperty for this cell editor which is used by the table to create an IObservableValue.
      void instantiate​(org.eclipse.emf.ecore.EStructuralFeature feature, ViewModelContext viewModelContext)
      Instantiates this cell editor.
      protected void setCopyTextMarker​(org.eclipse.jface.viewers.ViewerCell cell, java.lang.Object value)
      Sets the copy text marker for the given cell and value.
      void setEditable​(boolean editable)
      Sets editable state of the cell editor.
      void updateCell​(org.eclipse.jface.viewers.ViewerCell cell, java.lang.Object value)
      Update the label and image for the given cell.
      • Methods inherited from class org.eclipse.jface.viewers.CellEditor

        addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, 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

      • BooleanCellEditor

        public BooleanCellEditor​(org.eclipse.swt.widgets.Composite parent)
        A constructor which takes only a parent.
        Parameters:
        parent - the Composite to use as a parent.
    • Method Detail

      • getValueProperty

        public org.eclipse.core.databinding.property.value.IValueProperty getValueProperty()
        Returns the IValueProperty for this cell editor which is used by the table to create an IObservableValue.
        Specified by:
        getValueProperty in interface ECPCellEditor
        Returns:
        the IValueProperty for this cell editor
        See Also:
        ECPCellEditor.getValueProperty()
      • getColumnWidthWeight

        public int getColumnWidthWeight()
        The returned value is used for layouting the table columns. The value is a relative column weight. A column containing text has a weight of 100. Please consider this when defining you weight. E.g if you return 200 your column will be twice the width of a text column.
        Specified by:
        getColumnWidthWeight in interface ECPCellEditor
        Returns:
        the relative column width
        See Also:
        ECPCellEditor.getColumnWidthWeight()
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(java.lang.Object value)
        This returns the Image which will be shown in the table when no cell editor is open.
        Specified by:
        getImage in interface ECPCellEditor
        Parameters:
        value - the Object to get the Image for
        Returns:
        the image
        See Also:
        ECPCellEditor.getImage(java.lang.Object)
      • activate

        public void activate()
        Overrides:
        activate in class org.eclipse.jface.viewers.CellEditor
        See Also:
        CheckboxCellEditor.activate()
      • createControl

        protected org.eclipse.swt.widgets.Control createControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in class org.eclipse.jface.viewers.CellEditor
        See Also:
        CellEditor.createControl(org.eclipse.swt.widgets.Composite)
      • doGetValue

        protected java.lang.Object doGetValue()
        Specified by:
        doGetValue in class org.eclipse.jface.viewers.CellEditor
        See Also:
        CellEditor.doGetValue()
      • doSetFocus

        protected void doSetFocus()
        Specified by:
        doSetFocus in class org.eclipse.jface.viewers.CellEditor
        See Also:
        CellEditor.doSetFocus()
      • doSetValue

        protected void doSetValue​(java.lang.Object value)
        Specified by:
        doSetValue in class org.eclipse.jface.viewers.CellEditor
        See Also:
        CellEditor.doSetValue(java.lang.Object)
      • activate

        public void activate​(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent activationEvent)
        Overrides:
        activate in class org.eclipse.jface.viewers.CellEditor
      • setCopyTextMarker

        protected void setCopyTextMarker​(org.eclipse.jface.viewers.ViewerCell cell,
                                         java.lang.Object value)
        Sets the copy text marker for the given cell and value.
        Parameters:
        cell - the ViewerCell.
        value - the Object value.
      • getCopyMap

        protected java.util.Map<java.lang.Integer,​java.lang.String> getCopyMap​(org.eclipse.swt.widgets.Widget widget)
        Get the copy map of the given widget. If it does not exist it will be created.
        Parameters:
        widget - the Widget to check.
        Returns:
        the copy map.