@@ -0,0 +1,2271 @@
+/*%0A * Copyright 2015 Quality and Usability Lab, Telekom Innvation Laboratories, TU Berlin..%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage de.tel.moccha.activities.fragments.course;%0A%0Aimport android.content.Context;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.widget.Toast;%0Aimport de.tel.moccha.activities.fragments.adapters.course.CourseCategoryListAdapter;%0Aimport de.tel.moccha.entities.course.CourseCategory;%0Aimport de.tel.moccha.entities.course.University;%0Aimport de.zell.android.util.adapters.EntityListAdapter;%0Aimport de.zell.android.util.db.Entity;%0Aimport de.zell.android.util.fragments.EntityListFragment;%0Aimport de.zell.android.util.fragments.FragmentReplacer;%0A%0A/**%0A *%0A * @author Christopher Zell %3Czelldon91@googlemail.com%3E%0A */%0Apublic class CourseCategoryListFragment extends EntityListFragment %7B%0A%0A  @Override%0A  protected void onEntityClick(Entity e) %7B%0A    CourseCategory category = (CourseCategory) e;%0A    Bundle b = new Bundle();%0A    b.putString(MainCourseCategoryFragment.ARG_ENTITY_URL, category.getUrl());%0A    b.putString(MainCourseCategoryFragment.ARG_FRG_TITLE, category.getName());%0A    Fragment frg = new MainCourseCategoryFragment();%0A    frg.setArguments(b);%0A    FragmentReplacer.replace(getActivity().getSupportFragmentManager(),%0A                             frg,%0A                             FragmentReplacer.MAIN_CONTENT);%0A    Toast.makeText(getActivity(), e.getID().toString(), Toast.LENGTH_LONG).show();%0A  %7D%0A%0A  @Override%0A  protected void onSectionClick(Object o) %7B%0A    //do nothing%0A  %7D%0A  %0A  @Override%0A  protected void loadEntities() %7B%0A    //do nothing%0A  %7D%0A%0A  @Override%0A  protected EntityListAdapter getEntityListAdapter(Context ctx) %7B%0A    return new CourseCategoryListAdapter(ctx);%0A  %7D%0A%7D%0A

create new course category list fragment which displays the course of studies