Class EmfColumn<T,V,R extends IEMFColumn<T,V,R>>

All Implemented Interfaces:
IColumn<T,V,R>, IEditableColumn<T,V,R>, IEMFColumn<T,V,R>
Direct Known Subclasses:
TableColumn, TreeColumn, ViewerColumnDescriptor

public abstract class EmfColumn<T,V,R extends IEMFColumn<T,V,R>> extends EditableColumn<T,V,R> implements IEMFColumn<T,V,R>
Class that implements the special set of functions for editing EObject data.
Author:
Ionov Ivan
  • Constructor Details

    • EmfColumn

      protected EmfColumn(Class<R> cl, org.eclipse.jface.viewers.ColumnViewer columnViewer, org.eclipse.swt.widgets.Composite parent, Function<T,V> valueExtractor)
  • Method Details

    • emfAutoCompleteComboEditor

      public EMFAutoCompleteComboEditingSupport.ElementsBuilder<T,V,R> emfAutoCompleteComboEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install auto complete combobox-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfAutoCompleteComboEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfAutoCompleteTextEditor

      public EMFAutoCompleteTextEditingSupport.ElementsBuilder<T,V,R> emfAutoCompleteTextEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install auto complete text-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfAutoCompleteTextEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfComboEditor

      public EMFComboEditingSupport.ElementsBuilder<T,V,R> emfComboEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install combobox-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfComboEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfCheckBoxEditor

      public EMFCheckBoxEditingSupport.EditedFeatureBuilder<T,V,R> emfCheckBoxEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install check-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfCheckBoxEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfDynamicAutoCompleteComboEditor

      public EMFDynamicAutoCompleteComboEditingSupport.ElementsBuilder<T,V,R> emfDynamicAutoCompleteComboEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install dynamic auto complete combobox-based editing onto a column. Used only with EMF (EObject).
      If the number of values ​​in the combo box exceeds a certain specified value, the combo box will be hidden and text will be shown instead. The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfDynamicAutoCompleteComboEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfEnumComboEditor

      public EMFEnumComboEditingSupport.ElementsBuilder<T,V,R> emfEnumComboEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install enum combo-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfEnumComboEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfTextEditor

      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install text-based editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfTextEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfTextIdEditor

      public EMFTextIdEditingSupport.ElementsBuilder<T,V,R> emfTextIdEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install text-based editing onto a column. Used only with EMF (EObject).
      There is a built-in check for uniqueness of the entered value. The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfTextIdEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfObjectSelectionDialogEditor

      public EMFObjectSelectionDialogEditingSupport.ElementsBuilder<T,V,R> emfObjectSelectionDialogEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install object selection dialog editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfObjectSelectionDialogEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfColorEditor

      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install color editing onto a column. Used only with EMF (EObject).
      By default, the label in this cell will always be an empty string. Also, by default, the color value in this cell will be set to the background. The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfColorEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • timeSeriesEditor

      public TimeSeriesEditingSupport.EditedFeatureBuilder<T,V,R> timeSeriesEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install TimeSeries editing onto a column.
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      timeSeriesEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • distributionEditor

      public DistributionEditingSupport.EditedFeatureBuilder<T,V,R> distributionEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install Distribution editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      distributionEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • realDistributionEditor

      public RealDistributionEditingSupport.EditedFeatureBuilder<T,V,R> realDistributionEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install RealDistribution editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      realDistributionEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfLocalDateTimeEditor

      public EMFLocalDateTimeEditingSupport.EditedFeatureBuilder<T,V,R> emfLocalDateTimeEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install LocalDateTime editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfLocalDateTimeEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfLocalTimeEditor

      public EMFLocalTimeEditingSupport.EditedFeatureBuilder<T,V,R> emfLocalTimeEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install LocalTime editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfLocalTimeEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfMultiObjectsSelectionDialogEditor

      public <W> EMFMultiObjectsSelectionDialogEditingSupport.ElementsBuilder<T,V,W,R> emfMultiObjectsSelectionDialogEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install multi objects selection dialog editing onto a column. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfMultiObjectsSelectionDialogEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • emfMultiToolListDialogEditor

      public <W extends org.eclipse.emf.ecore.EObject> EMFMultiToolListDialogEditingSupport.CreateNewObjectBuilder<T,V,W,R> emfMultiToolListDialogEditor()
      Description copied from interface: IEMFColumn
      Returns a builder object that can be used to install the dialog box in which you can create, delete, and edit lists of objects. Used only with EMF (EObject).
      The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.
      Specified by:
      emfMultiToolListDialogEditor in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      a builder object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEditedFeature

      public org.eclipse.emf.ecore.EStructuralFeature getEditedFeature()
      Description copied from interface: IEMFColumn
      Return EStructuralFeature.
      Specified by:
      getEditedFeature in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
    • editedFeature

      public R editedFeature(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
      Description copied from interface: IEMFColumn
      Set the feature pointing to the field that is being edited
      Specified by:
      editedFeature in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      this column
    • getDataFillerManager

      public DataFillerManager<T,V> getDataFillerManager()
      Description copied from interface: IEMFColumn
      Return DataFillerManager
      Specified by:
      getDataFillerManager in interface IEMFColumn<T,V,R extends IEMFColumn<T,V,R>>
      Returns:
      DataFillerManager The class responsible for setting up the functionality of quickly setting the same values ​​in a column