| | |
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.adapter.CheckInFragment;
|
| | | import cn.com.basic.face.discern.common.CommonVariables;
|
| | | import cn.com.basic.face.util.Constant;
|
| | |
|
| | | public class CheckInLeftInterviewee extends EasyRecyclerView {
|
| | |
|
| | | private EasyRecyclerViewAdapter mAdapter = new CheckInFragment.CheckInLeftIntervieweeAdapter();
|
| | | private CheckInFragment.CheckInLeftIntervieweeAdapter adapter = new CheckInFragment.CheckInLeftIntervieweeAdapter();
|
| | | private List list = new ArrayList();
|
| | |
|
| | | public void setAdapter(Context context) {
|
| | | setAdapter(mAdapter);
|
| | | setAdapter(adapter);
|
| | | }
|
| | |
|
| | | public CheckInLeftInterviewee(Context context) {
|
| | |
| | | setAdapter(context);
|
| | | }
|
| | |
|
| | | public void show(List list) {
|
| | | refresh(list);
|
| | | public void show(List list, boolean isSortByDept, boolean append) {
|
| | | refresh(list, isSortByDept, append);
|
| | | }
|
| | |
|
| | | public void refresh(List list) {
|
| | | this.list.clear();
|
| | | this.list.addAll(list);
|
| | | mAdapter.setList(this.list);
|
| | | this.setAdapter(mAdapter);
|
| | | public void refresh(List list, boolean isSortByDept, boolean append) {
|
| | | if (append && adapter.getList().size() > 0) {
|
| | | this.scrollToPosition(adapter.getList().size()-1);
|
| | | }
|
| | | adapter.setList(list);
|
| | | adapter.setSortByDept(isSortByDept);
|
| | | this.setAdapter(adapter);
|
| | | }
|
| | |
|
| | | public List getPrevList() {
|
| | | return adapter.getList();
|
| | | }
|
| | | }
|