Android Open Source - iEtueri Course






From Project

Back to project page iEtueri.

License

The source code is released under:

GNU General Public License

If you think the Android project iEtueri 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 courses;
//from  ww w  . ja  v a2  s.  co m
/**
 * This class is a container of course
 * 
 * @author Javier Luque Sanabria
 */
public class Course {
  /** Id of course */
  private int id;

  /** Name of the course */
  private String courseName;

  /** Number of subjects in the course */
  private int numberOfSubjects;

  /** Average of all subjects in the course */
  private double average;

  /** Init Date of the course */
  private String initDate;

  /** End date of the course */
  private String endDate;

  /** subjects ids */
  private String subjectsIds;

  /** Constructor */
  public Course(String courseName, String initDate, String endDate) {
    this.courseName = courseName;
    this.initDate = initDate;
    this.endDate = endDate;
    this.numberOfSubjects = 0;
    this.average = 0.0f;
  }

  public Course(String courseName, int numberOfSubjects, double average) {
    this.courseName = courseName;
    this.numberOfSubjects = numberOfSubjects;
    this.average = average;
  }

  public Course(String courseName, int numberOfSubjects, double average, String initDate, String endDate) {
    this.courseName = courseName;
    this.initDate = initDate;
    this.endDate = endDate;
    this.numberOfSubjects = numberOfSubjects;
    this.average = average;
  }

  public Course(int id, String courseName, int numberOfSubjects, double average, String initDate, String endDate,
      String subjectsIds) {
    this.setId(id);
    this.courseName = courseName;
    this.initDate = initDate;
    this.endDate = endDate;
    this.numberOfSubjects = numberOfSubjects;
    this.average = average;
    this.setSubjectsIds(subjectsIds);
  }

  /* Get and set courseName methods */
  public String getCourseName() {
    return courseName;
  }

  public void setCourseName(String courseName) {
    this.courseName = courseName;
  }

  /* Get and set number of subjects */
  public int getNumberOfSubjects() {
    return numberOfSubjects;
  }

  public void setNumberOfSubjects(int numberOfSubjects) {
    this.numberOfSubjects = numberOfSubjects;
  }

  /* Get and set the average */
  public double getAverage() {
    return average;
  }

  public void setAverage(double average) {
    this.average = average;
  }

  /* Get and set the init date of the course */
  public String getInitDate() {
    return initDate;
  }

  public void setInitDate(String initDate) {
    this.initDate = initDate;
  }

  /* Get and set the end date of the course */
  public String getEndDate() {
    return endDate;
  }

  public void setEndDate(String endDate) {
    this.endDate = endDate;
  }

  /* Get and set the sbjects ids */
  public String getSubjectsIds() {
    return subjectsIds;
  }

  public void setSubjectsIds(String subjectsIds) {
    this.subjectsIds = subjectsIds;
  }

  /* Get and set the id of the course */
  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

}




Java Source Code List

courses.CourseDetailFragment.java
courses.Course.java
courses.CoursesAdapter.java
courses.CoursesFragment.java
courses.NewCourseFragment.java
exams.Exam.java
exams.ExamsAdapter.java
exams.ExamsFragment.java
exams.NewExamFragment.java
homework.HomeworkAdapter.java
homework.HomeworkFragment.java
homework.Homework.java
homework.NewHomeworkFragment.java
navigationdrawer.DrawerListAdapter.java
navigationdrawer.DrawerList.java
navigationdrawer.MainActivity.java
navigationdrawer.NavigationDrawerCallbacks.java
navigationdrawer.NavigationDrawerController.java
navigationdrawer.NavigationDrawerFragment.java
navigationdrawer.OpenBrowser.java
schedule.CalendarManager.java
schedule.Event.java
schedule.EventsManager.java
schedule.FindEvents.java
schedule.RefreshScheduleEventsData.java
schedule.ScheduleFragment.java
schedule.ScheduleTodayAdapter.java
subject.DetailSubjectFragment.java
subject.NewSubjectFragment.java
subject.SubjectFragment.java
subject.SubjectListAdapter.java
subject.Subject.java
today.NewEventRepetitionDialogFragment.java
today.NewEventTodayFragment.java
today.TodayFragment.java
utility.DatabaseContract.java
utility.DatabaseHelper.java
utility.DatePickerDialogFragment.java
utility.OnBackPressed.java
utility.OnClickButtonXml.java
utility.PriorityDialogFragment.java
utility.TimePickerDialogFragment.java