Class ViewModelValue<T>

    • Constructor Detail

      • ViewModelValue

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

      • 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
      • set

        public void set​(T value)
        Specified by:
        set in interface IValue<T>
        Overrides:
        set in class Value<T>
        Parameters:
        value - the value to set.
      • 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 Value<T>
      • 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.
      • getObject

        public IViewModel 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.