Search in sources :

Example 31 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class ExamInputAdapterF method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 32 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class ProjectInputAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 33 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class ProjectInputAdapterF method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 34 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class QuizInputAdapter method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    Log.i("TESSSSSSSST", "COUNT :" + count + " VALIDATE : " + doValidate);
    Log.i("TESSSSSSSST", "SCORE :" + score[position] + "POSITION :" + position + "STUDENT :" + student.getFirstName());
    if (doValidate) {
        if (score[position] > totalScore || score[position] < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Example 35 with Student

use of com.remswork.project.alice.model.Student in project classify-system by anverliedoit.

the class StudentAdapter2 method onBindViewHolder.

@Override
public void onBindViewHolder(StudentAdapterViewHolder holder, int position) {
    count += 1;
    Student student = studentList.get(position);
    holder.setView(student, position);
    if (doValidate) {
        if (holder.getScore() > totalScore || holder.getScore() < 0) {
            holder.setStatus(false);
        } else {
            holder.setStatus(true);
        }
    }
    if (count == studentList.size()) {
        doValidate = false;
        count = 0;
    }
}
Also used : Student(com.remswork.project.alice.model.Student)

Aggregations

Student (com.remswork.project.alice.model.Student)82 GradingFactorException (com.remswork.project.alice.exception.GradingFactorException)29 CompoundButton (android.widget.CompoundButton)22 Message (com.remswork.project.alice.model.support.Message)21 Grade (com.remswork.project.alice.model.Grade)20 ArrayList (java.util.ArrayList)19 StudentException (com.remswork.project.alice.exception.StudentException)17 CardView (android.support.v7.widget.CardView)15 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)15 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)15 RecyclerView (android.support.v7.widget.RecyclerView)15 View (android.view.View)15 TextView (android.widget.TextView)15 ClassException (com.remswork.project.alice.exception.ClassException)14 Button (android.widget.Button)13 List (java.util.List)13 ToggleButton (android.widget.ToggleButton)11 Client (javax.ws.rs.client.Client)10 WebTarget (javax.ws.rs.client.WebTarget)10 Response (javax.ws.rs.core.Response)10