Interface IModel

    • Method Detail

      • isOnline

        boolean isOnline()
        Returns:
        true if this model is online, false otherwise.
      • commit

        void commit()
        Commits the changes to the data model.
      • discard

        void discard()
        Discards the changes stored in the model buffer since last commit() operation.
      • getChange

        IChange getChange()
        Returns:
        change describing the modifications done to the model.
      • createWorkingCopy

        IModel createWorkingCopy()
        Returns:
        the model working copy or null if working copies is not supported by the model.
      • getComponent

        IComponent<?> getComponent()
        Returns:
        the component associated with the model or null if no association established.
      • setComponent

        void setComponent​(IComponent<?> component)
        Associate this model with the component.
        Parameters:
        component - the component to associate with.
      • addModelListener

        void addModelListener​(IModelListener listener)
        Adds the model listener.
        Parameters:
        listener - the listener to add.
      • removeModelListener

        void removeModelListener​(IModelListener listener)
        Removes the model listener.
        Parameters:
        listener - the listener to remove.
      • dispose

        void dispose()
        Disposes this model.