Android Open Source - Assignment1 Counter List Model






From Project

Back to project page Assignment1.

License

The source code is released under:

GNU General Public License

If you think the Android project Assignment1 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 com.example.kwicento_count;
/*w  w  w.  j av  a 2 s. c  o m*/
import java.io.Serializable;
import java.util.ArrayList;

public class CounterListModel implements Serializable{

  private static final long serialVersionUID = 1L;
  protected ArrayList<Counter> currentCounters;
  
  public CounterListModel()
  {
    currentCounters = new ArrayList<Counter>();  
  }
  
  public ArrayList<Counter> getCurrentCounters() {
    return currentCounters;
  }
  public void setCurrentCounters(ArrayList<Counter> currentCounters) {
    this.currentCounters = currentCounters;
  }
      
  public void addNewCounter(Counter c)
  {
    currentCounters.add(c);
  }
  
  public void deleteCounter(Counter c)
  {
    currentCounters.remove(c);
  }
  
}




Java Source Code List

com.example.kwicento_count.CounterListModel.java
com.example.kwicento_count.CounterListScreen.java
com.example.kwicento_count.CounterScreen.java
com.example.kwicento_count.Counter.java
com.example.kwicento_count.Counts.java
com.example.kwicento_count.CreatingNewCounter.java
com.example.kwicento_count.EditingCounterScreen.java
com.example.kwicento_count.HomeScreen.java
com.example.kwicento_count.Serialization.java