Android Open Source - Team7-301Project Forum Entry List






From Project

Back to project page Team7-301Project.

License

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.

Java Source Code

package ca.ualberta.cs.models;
/*from   w  w w . j a  v  a2 s. c  om*/
import java.util.ArrayList;
import java.util.List;

import ca.ualberta.cs.views.Observer;

/**
 * This is the model class for BrowseActivity and QuestionActivity. It provides
 * a simple set and get interface plus the notify observers routine from
 * Observable.
 * 
 */
public class ForumEntryList extends Observable<Observer>
{
  public static final int FIRST_FORUM_ENTRY = 0;
  
  private ArrayList<ForumEntry> forumEntries;

  /**
   * Create a new ForumEntryList model.
   */
  public ForumEntryList()
  {
    /*
     * Assigning a new array list hear will prevent unexpected output from
     * the getView function in the event that getView is called before a call
     * to setView is made.
     */
    this.forumEntries = new ArrayList<ForumEntry>();
  }

  /**
   * Returns the data in this model
   * 
   * @return The data in this model.
   */
  public ArrayList<ForumEntry> getView()
  {

    return forumEntries;
  }

  /**
   * Sets the data in this model. This does not call the models notifyObservers function.
   * @param list
   *            The array list of forum entries to set in this model.
   */
  public void setView(ArrayList<ForumEntry> list)
  {
    forumEntries = list;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public void setMyAuthored(ArrayList<ForumEntry> list)
  {

  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public void setReadLater(ArrayList<ForumEntry> list)
  {

  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public void setFavourites(ArrayList<ForumEntry> list)
  {

  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public boolean setRemote(ArrayList<ForumEntry> list)
  {

    return false;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public boolean setRemoteBlynd(int x, ForumEntry fe)
  {

    return false;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public ArrayList<ForumEntry> getMyAuthored()
  {

    ArrayList<ForumEntry> list = null;
    return list;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public ArrayList<ForumEntry> getReadLater()
  {

    ArrayList<ForumEntry> list = null;
    return list;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public ArrayList<ForumEntry> getFavourites()
  {

    ArrayList<ForumEntry> list = null;
    return list;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public ArrayList<ForumEntry> getRemote(String a, String b, String c)
  {

    ArrayList<ForumEntry> list = null;
    return list;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public boolean appendToRemote(ForumEntry fe)
  {

    return true;
  }

  /**
   * Deprecated. Do not use.
   * 
   * @param list
   */
  public ForumEntry getRemoteBlyd(int x)
  {

    ForumEntry fe = null;
    return fe;
  }
}




Java Source Code List

ca.ualberta.cs.controllers.AuthorController.java
ca.ualberta.cs.controllers.BrowseController.java
ca.ualberta.cs.controllers.ForumEntryController.java
ca.ualberta.cs.controllers.SearchController.java
ca.ualberta.cs.f14t07_application.Hits.java
ca.ualberta.cs.f14t07_application.LogoActivity.java
ca.ualberta.cs.f14t07_application.Post.java
ca.ualberta.cs.intent_singletons.BrowseRequestSingleton.java
ca.ualberta.cs.intent_singletons.ContextSingleton.java
ca.ualberta.cs.intent_singletons.EntrySingleton.java
ca.ualberta.cs.intent_singletons.ForumEntrySingleton.java
ca.ualberta.cs.models.Answer.java
ca.ualberta.cs.models.AuthorModel.java
ca.ualberta.cs.models.DataManager.java
ca.ualberta.cs.models.Entry.java
ca.ualberta.cs.models.ForumEntryList.java
ca.ualberta.cs.models.ForumEntry.java
ca.ualberta.cs.models.JsonDriver.java
ca.ualberta.cs.models.Observable.java
ca.ualberta.cs.models.Question.java
ca.ualberta.cs.models.Reply.java
ca.ualberta.cs.remote_server.NetworkChecker.java
ca.ualberta.cs.remote_server.SearchHit.java
ca.ualberta.cs.remote_server.SearchResponse.java
ca.ualberta.cs.remote_server.SimpleSearchCommand.java
ca.ualberta.cs.views.AnswerActivity.java
ca.ualberta.cs.views.AnswerListAdapter.java
ca.ualberta.cs.views.AskActivity.java
ca.ualberta.cs.views.BrowseActivity.java
ca.ualberta.cs.views.HelpActivity.java
ca.ualberta.cs.views.MainScreenActivity.java
ca.ualberta.cs.views.Observer.java
ca.ualberta.cs.views.QuestionActivity.java
ca.ualberta.cs.views.ReplyListAdapter.java