Search in sources :

Example 11 with TeacherHelper

use of com.lieverandiver.thesisproject.helper.TeacherHelper in project classify-system by anverliedoit.

the class SliderSettingFragment method displayEvenDelay.

public void displayEvenDelay() {
    new Thread(new Runnable() {

        @Override
        public void run() {
            teacherHelper = new TeacherHelper(getContext());
            final Teacher teacher = teacherHelper.loadUser().get();
            handler.post(new Runnable() {

                @Override
                public void run() {
                    textName.setText(teacher.getLastName() + " " + teacher.getFirstName() + " " + teacher.getMiddleName().toCharArray()[0] + ".");
                    textNameLabel.setText("Tap here to view");
                    layout.setVisibility(View.VISIBLE);
                    progressBar.setVisibility(View.INVISIBLE);
                }
            });
        }
    }).start();
}
Also used : Teacher(com.remswork.project.alice.model.Teacher) TeacherHelper(com.lieverandiver.thesisproject.helper.TeacherHelper)

Aggregations

TeacherHelper (com.lieverandiver.thesisproject.helper.TeacherHelper)11 ArrayAdapter (android.widget.ArrayAdapter)4 GradingFactorException (com.remswork.project.alice.exception.GradingFactorException)4 Teacher (com.remswork.project.alice.model.Teacher)4 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)2 RecyclerView (android.support.v7.widget.RecyclerView)2 View (android.view.View)2 Button (android.widget.Button)2 CompoundButton (android.widget.CompoundButton)2 SeekBar (android.widget.SeekBar)2 TextView (android.widget.TextView)2 ClassException (com.remswork.project.alice.exception.ClassException)2 Class (com.remswork.project.alice.model.Class)2 Formula (com.remswork.project.alice.model.Formula)2 Schedule (com.remswork.project.alice.model.Schedule)2 Subject (com.remswork.project.alice.model.Subject)2 ClassServiceImpl (com.remswork.project.alice.service.impl.ClassServiceImpl)2 FormulaServiceImpl (com.remswork.project.alice.service.impl.FormulaServiceImpl)2 SubjectServiceImpl (com.remswork.project.alice.service.impl.SubjectServiceImpl)2 ArrayList (java.util.ArrayList)2