Back to project page TasksReminder.
The source code is released under:
MIT License
If you think the Android project TasksReminder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// // DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.0.1. ///*from w w w. ja v a 2 s . c o m*/ package com.sampa.tasksreminder; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.TextView; import com.sampa.tasksreminder.R.id; import org.androidannotations.api.view.HasViews; import org.androidannotations.api.view.OnViewChangedListener; import org.androidannotations.api.view.OnViewChangedNotifier; public final class ShowTaskActivity_ extends ShowTaskActivity implements HasViews, OnViewChangedListener { private final OnViewChangedNotifier onViewChangedNotifier_ = new OnViewChangedNotifier(); @Override public void onCreate(Bundle savedInstanceState) { OnViewChangedNotifier previousNotifier = OnViewChangedNotifier.replaceNotifier(onViewChangedNotifier_); init_(savedInstanceState); super.onCreate(savedInstanceState); OnViewChangedNotifier.replaceNotifier(previousNotifier); } private void init_(Bundle savedInstanceState) { OnViewChangedNotifier.registerOnViewChangedListener(this); } @Override public void setContentView(int layoutResID) { super.setContentView(layoutResID); onViewChangedNotifier_.notifyViewChanged(this); } @Override public void setContentView(View view, LayoutParams params) { super.setContentView(view, params); onViewChangedNotifier_.notifyViewChanged(this); } @Override public void setContentView(View view) { super.setContentView(view); onViewChangedNotifier_.notifyViewChanged(this); } public static ShowTaskActivity_.IntentBuilder_ intent(Context context) { return new ShowTaskActivity_.IntentBuilder_(context); } public static ShowTaskActivity_.IntentBuilder_ intent(Fragment supportFragment) { return new ShowTaskActivity_.IntentBuilder_(supportFragment); } @Override public void onViewChanged(HasViews hasViews) { titleText = ((TextView) hasViews.findViewById(id.titleText)); descriptionText = ((TextView) hasViews.findViewById(id.descriptionText)); deleteTaskButton = ((Button) hasViews.findViewById(id.deleteTaskButton)); description = ((TextView) hasViews.findViewById(id.description)); endTask = ((TextView) hasViews.findViewById(id.endTask)); title = ((TextView) hasViews.findViewById(id.title)); endTaskText = ((TextView) hasViews.findViewById(id.endTaskText)); cancelButton = ((Button) hasViews.findViewById(id.cancelButton)); { View view = hasViews.findViewById(id.cancelButton); if (view!= null) { view.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { ShowTaskActivity_.this.cancel(); } } ); } } { View view = hasViews.findViewById(id.deleteTaskButton); if (view!= null) { view.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { ShowTaskActivity_.this.deleteTask(); } } ); } } init(); } public static class IntentBuilder_ { private Context context_; private final Intent intent_; private Fragment fragmentSupport_; public IntentBuilder_(Context context) { context_ = context; intent_ = new Intent(context, ShowTaskActivity_.class); } public IntentBuilder_(Fragment fragment) { fragmentSupport_ = fragment; context_ = fragment.getActivity(); intent_ = new Intent(context_, ShowTaskActivity_.class); } public Intent get() { return intent_; } public ShowTaskActivity_.IntentBuilder_ flags(int flags) { intent_.setFlags(flags); return this; } public void start() { context_.startActivity(intent_); } public void startForResult(int requestCode) { if (fragmentSupport_!= null) { fragmentSupport_.startActivityForResult(intent_, requestCode); } else { if (context_ instanceof Activity) { ((Activity) context_).startActivityForResult(intent_, requestCode); } else { context_.startActivity(intent_); } } } } }