Back to project page Team7-301Project.
The source code is released under:
Apache License
If you think the Android project Team7-301Project listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.ualberta.cs.views; /* w w w. j a v a 2 s .c o m*/ import java.util.ArrayList; import ca.ualberta.cs.models.ForumEntry; /** * Interface all views must implement. This interface defines an update function for the view. * The code for this interface is based heavily on Abram Hindle's "MVC and Android" slides. * @author bbruner * * @param <T> This must be the data type of the model the view uses. */ public interface Observer<T> { /** * Called when ever data in the model changes. * @param model This is a copy of the model class where the data was changed. */ public void update(T model); }