Back to project page DVBViewerController.
The source code is released under:
Apache License
If you think the Android project DVBViewerController listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.bennir.DVBViewerController.wizard.model; //from w w w . j a v a 2s . c om import android.content.Context; import android.support.v4.app.Fragment; import de.bennir.DVBViewerController.wizard.ui.TimerInfoFragment; import java.util.ArrayList; public class TimerInfoPage extends Page { public static final String NAME_DATA_KEY = "name"; public static final String PRIORITY_DATA_KEY = "priority"; public static final String ENABLED_DATA_KEY = "enabled"; private Context mContext; public TimerInfoPage(ModelCallbacks callbacks, String title, Context context) { super(callbacks, title); mData.putBoolean(ENABLED_DATA_KEY, true); mContext = context; } @Override public Fragment createFragment() { return TimerInfoFragment.create(getKey()); } @Override public void getReviewItems(ArrayList<ReviewItem> dest) { dest.add(new ReviewItem("Name", mData.getString(NAME_DATA_KEY), getKey(), -2)); dest.add(new ReviewItem("Priority", mData.getString(PRIORITY_DATA_KEY), getKey(), -2)); dest.add(new ReviewItem("Enabled", mData.getBoolean(ENABLED_DATA_KEY), getKey(), -2, mContext)); } @Override public boolean isCompleted() { return true; } }