Module ilusr.core

Class ModelBase

    • Constructor Detail

      • ModelBase

        public ModelBase()
    • Method Detail

      • raiseModelChanged

        public <D> void raiseModelChanged​(MethodSignature method,
                                          D data)
        Parameters:
        method - A @see MethodSignature object used to update the view.
        data - The data to send to the view with this method signature.
      • raiseModelChanged

        public <D> void raiseModelChanged​(String member,
                                          D data)
        Parameters:
        member - The name of the method to call on the view.
        data - The data to send to the view.
      • addListener

        public void addListener​(IModelListener listener)
        Specified by:
        addListener in interface IModel
        Parameters:
        listener - The listener to add.
      • removeListener

        public void removeListener​(IModelListener listener)
        Specified by:
        removeListener in interface IModel
        Parameters:
        listener - The listener to remove.