public class UltimasMedicionesFragment extends android.app.Fragment implements ViewFunctions, ViewFunctions.UltimasMedicionesFunctions
Esta clase forma parte de la aplicacion TFG-Goniometer, desarrollada para el Trabajo de Fin de Grado - Grado en Ingenieria Informatica (Universidad de Valladolid)
UltimasMedicionesPresenter
,
Toolbar
,
RecyclerView
android.app.Fragment.InstantiationException, android.app.Fragment.SavedState
ViewFunctions.MedicionFunctions, ViewFunctions.NuevaMedicionFunctions, ViewFunctions.NuevoPacienteFunctions, ViewFunctions.PerfilPacienteFunctions, ViewFunctions.SobreAppFunctions, ViewFunctions.UltimasMedicionesFunctions
Modifier and Type | Field and Description |
---|---|
(package private) UltimasMedicionesPresenter |
presenter |
Constructor and Description |
---|
UltimasMedicionesFragment() |
Modifier and Type | Method and Description |
---|---|
void |
displayError()
Metodo que muestra un mensaje de error cuando se ha intentado eliminar una medicion de la
Base de Datos.
|
void |
displayResult(android.support.v7.app.AlertDialog dialog)
Metodo que simplemente muestra el AlertDialog que ha recibido como parametro.
|
void |
displaySuccess()
Metodo que muestra un mensaje de exito cuando se ha logrado eliminar correctamente una
medicion de la Base de Datos.
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Metodo llamado para instanciar el Fragment con su layout asociada
(R.layout.ultimas_mediciones_fragment, en este caso).
|
void |
onDestroy()
Perform any final cleanup before an activity is destroyed.
|
void |
setAdapter(android.support.v7.widget.RecyclerView.Adapter adapter)
Metodo que se encarga de re-asignar el RecyclerView.Adapter
(MedicionListAdapter, en este caso) al RecyclerView del Fragment.
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, toString, unregisterForContextMenu
@Inject UltimasMedicionesPresenter presenter
@Nullable public android.view.View onCreateView(android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
in class android.app.Fragment
inflater
- The LayoutInflater object that can be used to inflate any view in the
fragment.container
- If non-null, this is the parent view that the fragment's UI should be
attached to. The fragment should not add the view itself, but this can be
used to generate the LayoutParams of the view.savedInstanceState
- If non-null, this fragment is being re-constructed from a previous
saved state as given here. Return the View for the fragment's UI,
or null.public void displaySuccess()
displaySuccess
in interface ViewFunctions
public void displayError()
displayError
in interface ViewFunctions
public void displayResult(android.support.v7.app.AlertDialog dialog)
displayResult
in interface ViewFunctions.UltimasMedicionesFunctions
dialog
- AlertDialog a mostrarpublic void setAdapter(android.support.v7.widget.RecyclerView.Adapter adapter)
setAdapter
in interface ViewFunctions.UltimasMedicionesFunctions
adapter
- RecyclerView.Adapter a asignarpublic void onDestroy()
onDestroy
in class android.app.Fragment