Class CommandInterfaceEditingSupport<T>

java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com._1c.g5.v8.dt.form.internal.ui.providers.cmi.CommandInterfaceEditingSupport<T>
Record Components:
T - is a editing value type
Direct Known Subclasses:
AutoPositionEditingSupport, AutoVisibilityEditingSupport, VisibilityEditingSupport

public abstract class CommandInterfaceEditingSupport<T> extends EditingSupport
This editing support for Commond interface viewer of the form editor
  • Field Details

  • Constructor Details

    • CommandInterfaceEditingSupport

      protected CommandInterfaceEditingSupport(ColumnViewer viewer, IBmEditingContext editingContext, IModelObjectFactory factory)
      Initialize all abstract variables.
      Parameters:
      viewer - the viewer. The null is not support.
      support - the bm editing support. The null is not support.
      factory - the form model factory The null is not support.
  • Method Details

    • initializeCellEditorValue

      protected void initializeCellEditorValue(CellEditor cellEditor, ViewerCell cell)
      Overrides:
      initializeCellEditorValue in class EditingSupport
    • deactive

      protected void deactive()
      This method calls when the editing support was deactivating
    • canEdit

      protected boolean canEdit(Object element)
      Specified by:
      canEdit in class EditingSupport
    • getValue

      protected Object getValue(Object element)
      Specified by:
      getValue in class EditingSupport
    • setValue

      protected void setValue(Object element, Object value)
      Specified by:
      setValue in class EditingSupport
    • doGetValue

      protected abstract T doGetValue(GroupItem<?> item)
      This method get value for edits
      Parameters:
      item - the Form Command interface item
      Returns:
      returns a editing value
    • getTask

      protected abstract IBmTask<?> getTask(GroupItem<?> item, T value)
      Craetes a bm task
      Parameters:
      item - the Form Command interface item
      value - was a editing value
      Returns:
      the bm task