App
Public Member Functions | Protected Attributes | List of all members
mhr.app.debug.DebugToolSettingsFragment Class Reference
Inheritance diagram for mhr.app.debug.DebugToolSettingsFragment:

Public Member Functions

void onAttach (Activity activity)
 
void onCreate (Bundle savedInstanceState)
 
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 
void onActivityCreated (Bundle savedInstanceState)
 
void onStart ()
 
void onResume ()
 
void onPause ()
 
void onStop ()
 
void onDestroyView ()
 
void onDestroy ()
 
void onDetach ()
 
void onClick (View v)
 

Protected Attributes

View root
 
AppMainActivity activity
 

Detailed Description

Definition at line 16 of file DebugToolSettingsFragment.java.

Member Function Documentation

void mhr.app.debug.DebugToolSettingsFragment.onActivityCreated ( Bundle  savedInstanceState)
inline

Definition at line 64 of file DebugToolSettingsFragment.java.

{
super.onActivityCreated(savedInstanceState);
/*
* tells the fragment that its activity has completed its own Activity.onCreate().
*/
activity = (AppMainActivity) getActivity();
root.findViewById(R.id.DebugToolShowDialogBtn).setOnClickListener(this);
root.findViewById(R.id.DebugToolRenderAllBtn).setOnClickListener(this);
root.findViewById(R.id.DebugToolTryExceptionFeedbackBtn).setOnClickListener(this);
root.findViewById(R.id.DebugToolUndoBtn).setOnClickListener(this);
root.findViewById(R.id.DebugToolMergeAllBtn).setOnClickListener(this);
}
void mhr.app.debug.DebugToolSettingsFragment.onAttach ( Activity  activity)
inline

Definition at line 31 of file DebugToolSettingsFragment.java.

{
super.onAttach(activity);
/*
* called once the fragment is associated with its activity.
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onClick ( View  v)
inline

Definition at line 144 of file DebugToolSettingsFragment.java.

{
int id = v.getId();
switch (id) {
case R.id.DebugToolShowDialogBtn:
activity.showDialog(new DebugToolDialogFragment());
break;
case R.id.DebugToolRenderAllBtn:
break;
case R.id.DebugToolTryExceptionFeedbackBtn:
// throw new RuntimeException("There is UI test exc");
activity.onExceptionFeedback(new RuntimeException("There is exception message"));
break;
case R.id.DebugToolUndoBtn:
activity.addCommand(new ApplyUndoPatchCommand());
break;
case R.id.DebugToolMergeAllBtn:
activity.addCommand(new MergeAllCommand());
default:
break;
}
}
void mhr.app.debug.DebugToolSettingsFragment.onCreate ( Bundle  savedInstanceState)
inline

Definition at line 39 of file DebugToolSettingsFragment.java.

{
super.onCreate(savedInstanceState);
/*
* called to do initial creation of the fragment.
*
* The system calls this when creating the fragment. Within your implementation, you should initialize essential components of the fragment that you want
* to retain when the fragment is paused or stopped, then resumed.
*/
}
View mhr.app.debug.DebugToolSettingsFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inline

Definition at line 50 of file DebugToolSettingsFragment.java.

{
// return super.onCreateView(inflater, container, savedInstanceState);
/*
* creates and returns the view hierarchy associated with the fragment.
*
* The system calls this when it's time for the fragment to draw its user interface for the first time. To draw a UI for your fragment, you must return a
* View from this method that is the root of your fragment's layout. You can return null if the fragment does not provide a UI.
*/
View v = inflater.inflate(R.layout.fragment_debug_tool_settings, container, false);
root = v;
return v;
}
void mhr.app.debug.DebugToolSettingsFragment.onDestroy ( )
inline

Definition at line 129 of file DebugToolSettingsFragment.java.

{
super.onDestroy();
/*
* called to do final cleanup of the fragment's state.
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onDestroyView ( )
inline

Definition at line 121 of file DebugToolSettingsFragment.java.

{
super.onDestroyView();
/*
* allows the fragment to clean up resources associated with its View.
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onDetach ( )
inline

Definition at line 137 of file DebugToolSettingsFragment.java.

{
super.onDetach();
/*
* called immediately prior to the fragment no longer being associated with its activity.
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onPause ( )
inline

Definition at line 102 of file DebugToolSettingsFragment.java.

{
super.onPause();
/*
* fragment is no longer interacting with the user either because its activity is being paused or a fragment operation is modifying it in the activity.
*
* The system calls this method as the first indication that the user is leaving the fragment (though it does not always mean the fragment is being destroyed).
* This is usually where you should commit any changes that should be persisted beyond the current user session (because the user might not come back).
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onResume ( )
inline

Definition at line 94 of file DebugToolSettingsFragment.java.

{
super.onResume();
/*
* makes the fragment interacting with the user (based on its containing activity being resumed).
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onStart ( )
inline

Definition at line 86 of file DebugToolSettingsFragment.java.

{
super.onStart();
/*
* makes the fragment visible to the user (based on its containing activity being started).
*/
}
void mhr.app.debug.DebugToolSettingsFragment.onStop ( )
inline

Definition at line 113 of file DebugToolSettingsFragment.java.

{
super.onStop();
/*
* fragment is no longer visible to the user either because its activity is being stopped or a fragment operation is modifying it in the activity.
*/
}

Member Data Documentation

AppMainActivity mhr.app.debug.DebugToolSettingsFragment.activity
protected

Definition at line 172 of file DebugToolSettingsFragment.java.

View mhr.app.debug.DebugToolSettingsFragment.root
protected

Definition at line 171 of file DebugToolSettingsFragment.java.


The documentation for this class was generated from the following file: