Class ViewModelList<T>

    • Constructor Detail

      • ViewModelList

        public ViewModelList​(IViewModel object,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             IEventChannel channel)
        Instantiates a new ViewModel list.
        Parameters:
        object - the object, cannot be null.
        feature - the feature, cannot be null.
        channel - the IEventChannel, cannot be null.
    • Method Detail

      • getChange

        public IChange getChange()
        Specified by:
        getChange in interface IModel
        Returns:
        change describing the modifications done to the model.
      • dispose

        public void dispose()
        Description copied from interface: IModel
        Disposes this model.
        Specified by:
        dispose in interface IModel
        Overrides:
        dispose in class ListModel<T>
      • commit

        public void commit()
        Description copied from interface: IModel
        Commits the changes to the data model.
        Specified by:
        commit in interface IModel
        Overrides:
        commit in class Model
      • getObject

        public org.eclipse.emf.ecore.EObject getObject()
        Description copied from interface: IAttribute
        Returns the object that keeps the attribute.
        Specified by:
        getObject in interface IAttribute<org.eclipse.emf.ecore.EObject,​org.eclipse.emf.ecore.EStructuralFeature>
        Returns:
        the object that keeps the attribute.
      • getProperty

        public org.eclipse.emf.ecore.EStructuralFeature getProperty()
        Description copied from interface: IAttribute
        Returns the property.
        Specified by:
        getProperty in interface IAttribute<org.eclipse.emf.ecore.EObject,​org.eclipse.emf.ecore.EStructuralFeature>
        Returns:
        the property.
      • setComponent

        public void setComponent​(IComponent<?> component)
        Description copied from interface: IModel
        Associate this model with the component.
        Specified by:
        setComponent in interface IModel
        Overrides:
        setComponent in class Model
        Parameters:
        component - the component to associate with.